Skip to content

Instantly share code, notes, and snippets.

View erquhart's full-sized avatar

Shawn Erquhart erquhart

  • USA
View GitHub Profile
@erquhart
erquhart / foundation.css
Created August 16, 2012 18:52
Foundation Base Stylesheet
.c-1, .c-2, .c-3, .c-4, .c-5, .c-6, .c-7, .c-8, .c-9, .c-10, .c-11, .c-12 { float: left; }
.c-1, .c-2, .c-3, .c-4, .c-5, .c-6, .c-7, .c-8, .c-9, .c-10, .c-11, .c-12 { position: relative; min-height: 1px; padding: 0 15px; }
.c-1 { width: 8.33333%; }
.c-2 { width: 16.66667%; }
.c-3 { width: 25%; }
@erquhart
erquhart / init.js
Last active August 29, 2015 14:08
Galen Framework initialization
var GRID_URL = 'http://localhost:4444/wd/hub';
var GRID_URL_SAUCELABS = 'http://[email protected]:80/wd/hub';
var GRID_URL_BROWSERSTACK = 'http://[email protected]/wd/hub';
var domains = {
local: 'obfuscated-url',
dev: 'obfuscated-url',
prod: 'obfuscated-url'
};
@erquhart
erquhart / gist:c4f2eb05d85830aec4f6
Last active August 29, 2015 14:11
Non-dry Galen spec snippet
@@ import ../../../meta/vars.spec
======================================================================================
mobile-nav-item-header css ul.mmenu-opened .main-link.active
mobile-nav-item-header-1 css ul.mmenu-opened li:nth-child(2) > .main-link.active
mobile-nav-item-header-2 css ul.mmenu-opened li:nth-child(3) > .main-link.active
mobile-nav-item-header-3 css ul.mmenu-opened li:nth-child(4) > .main-link.active
mobile-nav-item-list css ul.mmenu-opened .mmenu-super-submenu:not(.ng-hide)
======================================================================================
INFO global: Vagrant version: 1.8.6
INFO global: Ruby version: 2.2.5
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_OLD_ENV_HOME="/Users/serquhart"
INFO global: VAGRANT_OLD_ENV_PWD="/Users/serquhart/code/charter/vagrant"
INFO global: VAGRANT_OLD_ENV_LANG="en_US.UTF-8"
INFO global: VAGRANT_OLD_ENV_PS1="\\[\\033]0;\\w\\007\\]\\[\e[1m\\]\\n\\[\e[38;5;166m\\]\\u\\[\e[97m\\] in \\[\e[38;5;64m\\]\\w$(prompt_git \"\\[\e[97m\\] on \\[\e[38;5;61m\\]\" \"\\[\e[38;5;33m\\]\")\\n\\[\e[97m\\]$ \\[\e(B\e[m\\]"
INFO global: VAGRANT_OLD_ENV_LOGNAME="serquhart"
INFO global: VAGRANT_OLD_ENV_SSH_AUTH_SOCK="/private/tmp/com.apple.launchd.iu1OfmRNrx/Listeners"
INFO global: VAGRANT_OLD_ENV_TERM_PROGRAM="iTerm.app"
@erquhart
erquhart / erq
Last active November 7, 2016 19:37
#!/bin/bash
# terminate script on first nonzero exit code
set -e
# color vars
# http://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux
LIGHT_GRAY='\033[0;37m'
LIGHT_CYAN='\033[1;36m'
DEFAULT_COLOR=$LIGHT_GRAY
function flatten(arr) {
return arr.reduce((acc, val) => acc.concat(Array.isArray(val) ? flatten(val) : val), []);
}
@erquhart
erquhart / remark-stringify-nested-ul-mdast.json
Last active June 29, 2017 18:35
Sample nested list MDAST
{
"type": "root",
"children": [
{
"type": "list",
"ordered": false,
"start": null,
"loose": false,
"children": [
{
@erquhart
erquhart / data.json
Last active August 16, 2018 09:57
Staticgen.org development caching
{"BrandonRomano/static-lite":{"17550":{"size":69,"stargazers_count":25,"watchers_count":25,"forks_count":5,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":25,"network_count":5,"subscribers_count":4}},"Frozen-Flask/Frozen-Flask":{"17550":{"size":323,"stargazers_count":510,"watchers_count":510,"forks_count":47,"open_issues_count":15,"forks":47,"open_issues":15,"watchers":510,"network_count":47,"subscribers_count":18}},"tightenco/jigsaw":{"17550":{"size":1678,"stargazers_count":730,"watchers_count":730,"forks_count":84,"open_issues_count":22,"forks":84,"open_issues":22,"watchers":730,"network_count":84,"subscribers_count":34}},"JavaEden/Orchid":{"17550":{"size":19747,"stargazers_count":5,"watchers_count":5,"forks_count":2,"open_issues_count":27,"forks":2,"open_issues":27,"watchers":5,"network_count":2,"subscribers_count":1}},"wiztools/stagen":{"17550":{"size":151,"stargazers_count":38,"watchers_count":38,"forks_count":19,"open_issues_count":1,"forks":19,"open_issues":1,"watchers":38,"network_count":19
@erquhart
erquhart / cache.json
Created February 14, 2018 07:35
HEADLESSCMS.ORG DATA CACHE
{
"timestamp": 1518593744342,
"data": [
{
"followers": 3637,
"twitter": "appernetic"
},
{
"followers": 2,
"twitter": "bowtie_io"
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
import React from 'react';
import { css, Global } from '@emotion/core';
/**
* Font Stacks
*/