Skip to content

Instantly share code, notes, and snippets.

Human Alien

doghot achingachris

Human Alien
View GitHub Profile
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="" 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>
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">
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-->
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 (
<title>Freelancer Portfolio</title>
<meta name='description' content='Generated by create next app' />
<meta name='viewport' content='width=device-width, initial-scale=1' />
View index.html
<body id="page-top">
<!-- Navigation-->
class="navbar navbar-expand-lg bg-secondary text-uppercase fixed-top"
<div class="container">
<a class="navbar-brand" href="#page-top">Start Bootstrap</a>
class="navbar-toggler text-uppercase font-weight-bold bg-primary text-white rounded"
achingachris / php artisan commands
Created February 10, 2023 06:24
php artisan commands
View php artisan commands
Here is a list of some of the most common php artisan commands:
php artisan serve: Starts a development server at http://localhost:8000
php artisan make:controller: Creates a new controller class
php artisan make:model: Creates a new Eloquent model class
php artisan make:migration: Creates a new migration file
php artisan migrate: Runs any pending migrations
php artisan migrate:rollback: Rolls back the last batch of migrations
php artisan make:seeder: Creates a new seeder class
php artisan db:seed: Runs the database seeder and seeds the database with sample data
achingachris /
Created February 6, 2023 18:54 — forked from bradtraversy/
Laravel Valet install on mac

Laravel Valet Setup (Mac)

This will get you setup with Laravel & Valet on your Mac. Quentin Watt has a good video tutorial on getting setup here as well

Install Homebrew

Go to and copy the command and run in your terminal

It will be something like this...

/bin/bash -c "$(curl -fsSL"

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

View js-usage.json
"year": 2022,
"completion": {
"total": 39471,
"count": 30432,
"percentage_survey": 77.1
"facets": [
"id": "default",
View country_js.json
"year": 2022,
"completion": {
"total": 39471,
"percentage_survey": 67.9,
"count": 26770
"facets": [
"id": "default",