Skip to content

Instantly share code, notes, and snippets.

View aarongustafson's full-sized avatar
👋
he/him/his

Aaron Gustafson aarongustafson

👋
he/him/his
View GitHub Profile
@aarongustafson
aarongustafson / gist:9600892
Created March 17, 2014 15:01
Command line stuff I can never remember
# Laravel
php -dmemory_limit=1G /usr/local/bin/composer install
php -dmemory_limit=1G /usr/local/bin/composer update
php -dmemory_limit=1G /usr/local/bin/composer require SOMETHING
php artisan package:install lucadegasperi/oauth2-server-laravel
# Git - Remove a folder without deleting locally
git rm -r --cached folder_name
# heroku
@aarongustafson
aarongustafson / gruntfile.js
Created April 9, 2014 20:09
PatternLab Gruntfile
module.exports = function(grunt){
require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
compass: {
dev: {
options: {
config: 'config.rb'
@aarongustafson
aarongustafson / SassMeister-input.scss
Created May 1, 2014 02:49
Generated by SassMeister.com.
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
// Hacking made easy
// ---
// A couple of Sass functions
// To ease the pain of dealing
// With special values for IE
...
// test for font-face version to load via Data URI'd CSS
// Basically, load WOFF unless it's android's default browser, which needs TTF, or ie8-, which needs eot
var fonts = ns.files.css.fontsWOFF,
ua = win.navigator.userAgent;
// android webkit browser, non-chrome
if( ua.indexOf( "Android" ) > -1 && ua.indexOf( "like Gecko" ) > -1 && ua.indexOf( "Chrome" ) === -1 ){
fonts = ns.files.css.fontsTTF;
}
@aarongustafson
aarongustafson / audio-cnc.html
Created June 27, 2014 20:40
Audio markup from Code & Creativity
<audio controls>
<source src="//e.ed-cdn.com/audio/Steph-Troeth_Everyday-Storytelling.ogg" type="audio/ogg">
<source src="//e.ed-cdn.com/audio/Steph-Troeth_Everyday-Storytelling.mp3" type="audio/mpeg">
<ul>
<li><a href="//e.ed-cdn.com/audio/Steph-Troeth_Everyday-Storytelling.ogg">Ogg Vorbis</a></li>
<li><a href="//e.ed-cdn.com/audio/Steph-Troeth_Everyday-Storytelling.mp3">MP3</a></li>
</ul>
</audio>
@aarongustafson
aarongustafson / ATL-bs.html
Created September 14, 2014 21:48
Some junk the ATL airport WiFi injected into HTML documents.
<style type="text/css"> #cbtzaorlrxsk { display:none; color:#111; background:#ffffff; text-align:center; border-bottom: 1px solid #666; z-index:10000; position:fixed; width:100%; top:0; } #uuvohxej { display:none; color:#111; background:#fff; border-right: 1px solid #666; z-index:10000; position:fixed; height:100%; left:0; } #pjewsjkezjyvt { display:none; color:#111; background:#fff; border-left: 1px solid #666; z-index:10000; position:fixed; height:100%; right:0; } #unrhenifgwrgnuj { display:none; color:#111; background:#ffffff; text-align:center; border-top: 1px solid #666; z-index:10000; position:fixed; width:100%; bottom:0; } #drfbaxpb { } </style><script language="JavaScript" type="text/javascript"> var c = 0; function waitForPageRender() { c = c + 1; var t=setTi
@aarongustafson
aarongustafson / webmention_count.html
Created November 18, 2014 22:25
Jekyll Webmention.io Plugin examples
{% webmention_count YOUR_URL %}
@aarongustafson
aarongustafson / css-filter.html
Last active August 29, 2015 14:16
Lines in the Sand
<link rel="stylesheet" href="simple.css">
<link rel="stylesheet" href="complex.css" media="only screen">
.container {
width: 500px;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
/* Set up points to which scrolling will snap */
-ms-scroll-snap-points-x: snapInterval(0px, 100%);
/* Require that scrolling always end at a snap point */
-ms-scroll-snap-type: mandatory;
}
@aarongustafson
aarongustafson / equal.css
Last active August 29, 2015 14:17
Quantity Queries - some bits and bobs from Haydon Pickering’s article (http://alistapart.com/article/quantity-queries-for-css).
li:nth-last-child(6):first-child,
li:nth-last-child(6):first-child ~ li {
color: green;
}