Skip to content

Instantly share code, notes, and snippets.

Avatar

Dano Manion danomanion

  • CGI Toys
  • Englewood, Colorado
  • Twitter @danomanion
View GitHub Profile
View index.html
<div id="appFunction">
<h2>Returned data as a function.</h2>
<ul>
<li v-for="item in items">
{{ item }}
</li>
</ul>
</div>
<div id="appObject">
View index.html
<div id="container">
</div>
View index.html
<div id="app">
<ul>
<li v-for="item in items">
{{ item }}
</li>
</ul>
</div>
@aaronott
aaronott / index.txt
Created May 4, 2018
blackhole_links
View index.txt
<?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>
View css-framework-table.csv
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 Nov 17, 2022
Intro to OTP in Elixir - Resources
View intro-to-otp-in-elixir-resources.md
View db_backup.sh
#!/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
View docroot_backup.sh
#!/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=""
@mparker17
mparker17 / 7-docker-compose.yml
Last active May 8, 2017
Docker-compose templates for D7, D8
View 7-docker-compose.yml
#
# Minimal Drupal 7.x development environment.
#
# Use:
# 1. Place a copy of this file at your Drupal site root.
# 2. Start the web stack: `USER_ID=$(id -u) docker-compose up -d`
# 3. Set up `settings.local.php` (note that the host is 'db' and the username,
# password, and schema are in the environment variables for the database
# container below).
# 4. If you have a database dump to import, place it in your Drupal site root,