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
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>
@zephraph
zephraph / SassMeister-input-HTML.html
Created Jan 19, 2016
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="EditorialPromo media">
<header class="EditorialPromo media-headline">
Editorial Promo
</header>
</div>
@zephraph
zephraph / t3.template
Last active Dec 16, 2015
Could this potentially be linted?
View t3.template
Box.Application.add${ _.capitalize(type) }('${name}', (${type === 'service' ? 'application' : 'context'}) => {
/**
* __ __ ___ ___
* |__) |__) | \ / /\ | |__
* | | \ | \/ /--\ | |___
*
*/
<% if (type !== 'service') { %>
You can’t perform that action at this time.