Skip to content

Instantly share code, notes, and snippets.

@theshortcut
theshortcut / SketchSystems.spec
Last active August 23, 2018 09:20
phoneNumber
phoneNumber
noPhone*
CREATED_PHONE -> unverifiedPhone
unverifiedPhone
VERIFIED_PHONE -> verifiedPhone
verifiedPhone
DELETED_PHONE -> noPhone
modal
CANCEL -> closed

Keybase proof

I hereby claim:

  • I am theshortcut on github.
  • I am clayferris (https://keybase.io/clayferris) on keybase.
  • I have a public key ASBS0WaHCSPTqVw2sGtn_-cEdMim1mQTLMyX7UAD8OgrYgo

To claim this, I am signing this object:

@theshortcut
theshortcut / functions.php
Created August 4, 2011 20:21
unknownstudios sample
<?php
add_action( 'init', 'create_post_type' );
function create_post_type() {
register_post_type( 'featured_artist',
array(
'labels' => array(
'name' => __( 'Featured Artists' ),
'singular_name' => __( 'Featured Artist' )
),
'public' => true,
fs = require 'fs'
{spawn, exec} = require 'child_process'
task 'build', 'build Milestones from source', ->
compiledString = ''
data = spawn 'coffee', ['-p', '--no-wrap', 'src/']
data.stdout.on 'data', (buffer) ->
compiledString += buffer.toString()
data.on 'exit', ->
fs.writeFile 'app.js', compiledString
@theshortcut
theshortcut / slider.css
Created June 29, 2010 20:54
simple jquery slider
#slider { width: 930px; height: 300px; overflow: hidden; position: relative; }
#wrapper { width: 9999px; position: absolute; top: 0px; left: 0px; }
#wrapper a { display: block; float: left; margin: 0; padding: 0; }
#wrapper a img { width: 930px; height: 300px; margin: 0; padding: 0; border: 0; }
#slider_next, #slider_prev { position: absolute; top: 100px; padding: 10px 25px 15px 25px; line-height: 48px; cursor: pointer; font-size: 48px; color: white; background: rgba(0, 0, 0, 0.5); -moz-border-radius: 0px 5px 5px 0px; -webkit-border-radius: 0px 5px 5px 0px; border-radius: 0px 5px 5px 0px; text-shadow: 0px 0px 5px #000; }
#slider_next { right: 0; -moz-border-radius: 5px 0px 0px 5px; -webkit-border-radius: 5px 0px 0px 5px; border-radius: 5px 0px 0px 5px; }
@theshortcut
theshortcut / style.css
Created June 10, 2010 04:52
Helvetireader fix for #current-entry
.entry .collapsed {
padding: 5px 1px !important;
}
.entry .collapsed .entry-main .entry-secondary {
height: 16px !important;
}
#current-entry.entry .collapsed {
padding: 4px 0px !important;
@theshortcut
theshortcut / fcshserver.sh
Created February 16, 2010 18:15
simple shell script frontend to fcsh
#!/bin/bash
#fires up fcsh, runs initial compile and watches tmp/rebuild.txt
#any updates to tmp/rebuild.txt will cause a recompile
#initialization
fcsh="/c/flex/sdks/4.0.0/bin/fcsh.exe"
sources="l:/Flash_Libraries/Clay l:/Flash_Libraries/greensock-tweening-platform-as3 l:/Flash_Libraries/MonsterDebugger"
built="false"
function send_to_fcsh {
@theshortcut
theshortcut / gist:269584
Created January 5, 2010 18:36
bash function to update vimbundles with hg or git
update-vimbundles() {
pushd ~/.vimbundles >/dev/null;
for filename in *; do
pushd $filename >/dev/null;
if [ -d .git ]; then
echo "git pull on $filename";
git pull;
echo ""
elif [ -d .hg ]; then
echo "hg pull on $filename";