Skip to content

Instantly share code, notes, and snippets.

View danomanion's full-sized avatar

LaminarRainbow danomanion

View GitHub Profile
@carson-katri
carson-katri / cloth.py
Created December 1, 2022 13:18
Verlet integration in Geometry Script
from geometry_script import *
# Constants
SAMPLES = 3
# Inputs
class ClothInputs(InputGroup):
gravity: Vector = (0, 0, -0.5)
friction: Vector = (0.999, 0.999, 0.999)
stick_length: Float = 0.1
@danomanion
danomanion / Tiny-PWA.png
Last active May 28, 2019 23:06
public images
Tiny-PWA.png
<div id="appFunction">
<h2>Returned data as a function.</h2>
<ul>
<li v-for="item in items">
{{ item }}
</li>
</ul>
</div>
<div id="appObject">
@danomanion
danomanion / index.html
Created March 7, 2019 15:33
List - JS / HTML
<div id="container">
</div>
@danomanion
danomanion / index.html
Last active March 7, 2019 15:35
Vue.js
<div id="app">
<ul>
<li v-for="item in items">
{{ item }}
</li>
</ul>
</div>
@aaronott
aaronott / index.txt
Created May 4, 2018 13:22
blackhole_links
<?php
$max_num_links = 7;
$page = "/";
if (isset($_SERVER['REQUEST_URI'])) {
$page = htmlentities(rtrim($_SERVER['REQUEST_URI'], "/"));
}
?>
<h1>Hidden links</h1>
<h2><?php echo $page; ?></h2>
Framework CSS size/gzipped #Elements Custom CSS #CSS Written/Unique Dev Elements
Bootstrap 68kb/12kb 49 0 classes 0 properties 48/34 4.5/5 5/5
Bulma 73kb/10kb 53 2 classes 2 properties 56/37 4.5/5 4.5/5
Foundation 30kb/7kb 56 4 classes 4 properties 46/21 4/5 3.5/5
Milligram 10kb/3kb 49 7 classes 17 properties 34/19 4.5/5 3.5/5
Pure 17kb/4kb 48 7 classes 7 properties 39/27 4/5 3.5/5
SemanticUI 146kb/20kb 47 2 classes 2 properties 90/39 4/5 5/5
UIKit 33kb/6kb 51 0 classes 0 properties 52/31 4.5/5 5/5
@jessejanderson
jessejanderson / intro-to-otp-in-elixir-resources.md
Last active June 15, 2023 05:03
Intro to OTP in Elixir - Resources
#!/bin/sh
DBNAME=<database>
DBUSER=<dbuser>
DBPASS=<good-strong-password?>
DBHOST=localhost
DESTDIR=/path/to/backup/dir
NAME=<site-name>
RETENTION=2
let MMIN=($RETENTION*60*24)-30
#!/bin/sh
SOURCEDIR=/path/to/docroot
DESTDIR=/path/to/backup/dir
NAME=<site-name>
RETENTION=2
let MMIN=($RETENTION*60*24)-180
DATE=`date +%Y-%m-%d-%H-%M`
EXCLUDE=""