Instantly share code, notes, and snippets.

View cache.json
{
"timestamp": 1518593744342,
"data": [
{
"followers": 3637,
"twitter": "appernetic"
},
{
"followers": 2,
"twitter": "bowtie_io"
View data.json
{"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
View remark-stringify-nested-ul-mdast.json
{
"type": "root",
"children": [
{
"type": "list",
"ordered": false,
"start": null,
"loose": false,
"children": [
{
View flatten.js
function flatten(arr) {
return arr.reduce((acc, val) => acc.concat(Array.isArray(val) ? flatten(val) : val), []);
}
View erq
#!/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
View debug.log
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"
View gist:c4f2eb05d85830aec4f6
@@ 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)
======================================================================================
View init.js
var GRID_URL = 'http://localhost:4444/wd/hub';
var GRID_URL_SAUCELABS = 'http://obfuscated-credentials@ondemand.saucelabs.com:80/wd/hub';
var GRID_URL_BROWSERSTACK = 'http://obfuscated-credentials@hub.browserstack.com/wd/hub';
var domains = {
local: 'obfuscated-url',
dev: 'obfuscated-url',
prod: 'obfuscated-url'
};
View foundation.css
.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%; }