Skip to content

Instantly share code, notes, and snippets.

Justin Bennett zephraph

Block or report user

Report or block zephraph

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zephraph
zephraph / clean.sh
Last active May 15, 2019
A shell script to clean up all node_modules in projects that haven't been touched in a couple weeks.
View clean.sh
#!/bin/bash
DAYS_SINCE_LAST_CHANGE=14
SEARCH_PATH="./Git"
TOTAL_BYTES_REMOVED=0
Mb=1000000
Kb=1000
node_modules=$(find $SEARCH_PATH -name "node_modules" -type d -prune)
View SketchSystems.spec
TabTimerState
NotStarted
tabActivated -> SetTimer
TabTimerTicking
tabDeactivated -> TimerPaused
timerExpired -> TimerWaitingToReset
timerReset -> TabTimerTicking
deactivateTimers -> NotStarted
TimerPaused
tabActivated -> TabTimerTicking
View gist:56186b0460512051a1b9b38cd06c80ce
### Keybase proof
I hereby claim:
* I am zephraph on github.
* I am zephraph (https://keybase.io/zephraph) on keybase.
* I have a public key ASD1RxP1w5y9jQgHhB6PxWD5KmyzeRSyO0CG2C4gMdiAFQo
To claim this, I am signing this object:
@zephraph
zephraph / pre-commit
Last active Mar 11, 2018
Git hook for automatically switching between work/oss accounts depending on the directory
View pre-commit
#!/usr/bin/python
# This file should live at ~/.git/hooks
import os
from subprocess import call
if "git/work" in cwd:
print "Using work account"
call("git config user.name <Your name>", shell=True)
@zephraph
zephraph / streamify.js
Created Aug 19, 2016
Streamify the things
View streamify.js
const streamify = (tree) =>
pipe(
keys,
filter(key => tree.hasOwnProperty(key)),
map(key => ({
[`${key}$`]: typeof tree[key] === 'function' && typeof tree[key].then === 'function'
? (...args) => K.fromPromise(tree[key].apply(null, args))
: typeof tree[key] === 'object'
? streamify(tree[key])
: tree[key]
@zephraph
zephraph / SassMeister-input-HTML.html
Created Feb 13, 2016
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="capsule">
<header class="capsule__header">
<h1 class="capsule__headline">What We're Loving Now</h1>
<a class="capsule__cta" href="#">See More!</a>
<p class="capsule__description">A few of the things we like</p>
</header>
<section class="capsule__content">
@zephraph
zephraph / SassMeister-input-HTML.html
Created Feb 13, 2016
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="capsule">
<header class="capsule__header">
<h1 class="capsule__headline">What We're Loving Now</h1>
<a class="capsule__cta" href="#">See More!</a>
<p class="capsule__description">A few of the things we like</p>
</header>
<section class="capsule__content">
@zephraph
zephraph / SassMeister-input-HTML.html
Created Jan 28, 2016
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="EditorialPromo EditorialPromo--3up">
<header class="Header">
<h1 class="Header-headline">What We're Loving Now</h1>
<a class="Header-cta" href="#">See More!</a>
<p class="Header-description">A few of the things we like</p>
</header>
<ul class="MediaList">
@zephraph
zephraph / SassMeister-input-HTML.html
Last active Jan 26, 2016
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="EditorialPromo">
<header class="EditorialPromo-headline">
Editorial Promo
</header>
</div>
@zephraph
zephraph / SassMeister-input-HTML.html
Created Jan 26, 2016
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="EditorialPromo media">
<header class="EditorialPromo media-headline">
Editorial Promo
</header>
</div>
You can’t perform that action at this time.