Skip to content

Instantly share code, notes, and snippets.

View achingachris's full-sized avatar
✈️
Flight24

C A achingachris

✈️
Flight24
View GitHub Profile
View models.py
import uuid
from django.db import models
from django.contrib.auth.models import AbstractUser
from django.utils.translation import gettext_lazy as _
class User(AbstractUser):
class Types(models.TextChoices):
STAFF = "STAFF", "Staff"
MEMBER = "MEMBER", "Member"
View gist:288668c2cff1cae1f2419bc01b63c15b
import { Component } from '@angular/core';
import { JokesService } from './jokes.service';
import { pwa } from 'pwafire';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
@achingachris
achingachris / app.component.ts
Created November 24, 2023 11:36
using pwa fire
View app.component.ts
import { Component } from '@angular/core';
import { JokesService } from './jokes.service';
import { pwa } from 'pwafire';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent {
View test-and-run.yml
name: Test and Build Next.JS
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
View anothrt.md

Certainly! Here's the updated table with the verbs arranged such that -ir verbs appear first, followed by -er verbs:

Verb English Translation Yo Él/Ella/Usted Nosotros/Nosotras Vosotros/Vosotras Ellos/Ellas/Ustedes
escribir to write escribo escribes escribe escribimos escribís escriben
abrir to open abro abres abre abrimos abrís abren
vivir to live vivo vives vive vivimos vivís viven
comprender to understand comprendo comprendes comprende comprendemos comprendéis comprenden
correr to run corro corres corre corremos
View spain.md

Certainly! Here's a table conjugating 10 regular Spanish -er and -ir verbs in the present tense:

Verb Yo Él/Ella/Usted Nosotros/Nosotras Vosotros/Vosotras Ellos/Ellas/Ustedes
beber bebo bebes bebe bebemos bebéis beben
comer como comes come comemos coméis comen
correr corro corres corre corremos corréis corren
aprender aprendo aprendes aprende aprendemos aprendéis aprenden
escribir escribo escribes escribe escribimos escribís escriben
leer leo lees lee leemos leéis leen
View product_list.html
<section class="py-5">
<div class="container px-4 px-lg-5 my-5">
<div class="row gx-4 gx-lg-5 align-items-center">
<div class="col-md-6"><img class="card-img-top mb-5 mb-md-0" src="https://dummyimage.com/600x700/dee2e6/6c757d.jpg" alt="..." /></div>
<div class="col-md-6">
<div class="small mb-1">SKU: BST-498</div>
<h1 class="display-5 fw-bolder">Shop item template</h1>
<div class="fs-5 mb-5">
<span class="text-decoration-line-through">$45.00</span>
<span>$40.00</span>
@achingachris
achingachris / index.html
Created April 19, 2023 14:09
List all Products
View index.html
<section class="py-5">
<div class="container px-4 px-lg-5 mt-5">
<div
class="row gx-4 gx-lg-5 row-cols-2 row-cols-md-3 row-cols-xl-4 justify-content-center"
>
<div class="col mb-5">
<div class="card h-100">
<!-- Product image-->
<img
class="card-img-top"
View data_structures_task.py
import networkx as nx
import matplotlib.pyplot as plt
from collections import defaultdict
class Graph:
def __init__(self, vertices):
self.graph = defaultdict(list)
self.V = vertices
self.nx_graph = nx.DiGraph()
View index.jsx
import Head from 'next/head'
import Image from 'next/image'
export default function Home() {
return (
<>
<Head>
<title>Freelancer Portfolio</title>
<meta name='description' content='Generated by create next app' />
<meta name='viewport' content='width=device-width, initial-scale=1' />