Skip to content

Instantly share code, notes, and snippets.

View Sulcalibur's full-sized avatar
🕺
Pop 'n' Lock

Suleiman Leadbitter Sulcalibur

🕺
Pop 'n' Lock
View GitHub Profile
@xtian
xtian / html5boilerplate.jade
Last active December 23, 2023 15:05
HTML5 Boilerplate in jade
!!! 5
html(class='no-js')
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge')
title
meta(name='description', content='')
meta(name='viewport', content='width=device-width, initial-scale=1')
@jgallen23
jgallen23 / bookmarklet.js
Created July 26, 2011 00:57
The Hit List Bookmarklet
javascript:var addTask=function(a,b,c,d,e){window.location="thehitlist:///"+c+"/tasks?method=POST&title="+encodeURIComponent(a)+"&url="+encodeURIComponent(b)+"&startDate="+d+"&priority="+e};addTask(document.title,window.location,"inbox","t")
@philippbosch
philippbosch / workon.scpt
Created August 11, 2011 10:22
«Work On» Alfred extension
on alfred_script(q)
tell application "iTerm"
activate
try
set _term to last terminal
on error
set _term to (make new terminal)
end try
@bzerangue
bzerangue / _grid.sass
Created December 6, 2011 23:32
Zurb Foundation Sass Code - More Dynamic, grid will adjust based on the number of columns and gutter size
// .sass syntax
// NOTE: This Sass stylesheet is dependent on the Custom Sass Function, convert-number-to-word,
// which is available here, https://gist.github.com/1439296
/* Arfully Masterminded by ZURB
/* Grid :: This is the mobile-friendly, responsive grid that lets Foundation work much of its magic.
// Using Default Number of Columns that Foundation starts off with, 12 columns
@dzuelke
dzuelke / flagged_mails_to_thl.applescript
Created January 29, 2012 22:46
AppleScript to import flagged messages from Mail into The Hit List
#!/usr/bin/osascript
on run
if not (application "Mail" is running and application "The Hit List" is running) then
return
end if
tell application "Mail"
repeat with _account in imap accounts
set _inbox to _account's mailbox "INBOX"
set _messages to (a reference to (every message of _inbox whose flagged status is true))
-- We must use this workaround, because the reference will self-update once we unflag a message, and that will get us just one of two flagged messages imported
@myobie
myobie / mountain-lion-brew-setup.markdown
Created February 18, 2012 20:14
Get Mountain Lion and Homebrew to Be Happy

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

<?php
// get the post UID from the URL
$uid = param('post');
if(!$uid) die(a::json(array(
'status' => 'error',
'msg' => 'The post could not be found',
)));
@erikreagan
erikreagan / mac-apps.md
Created August 4, 2012 19:18
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

@soffes
soffes / perferences.json
Created August 22, 2012 05:35
My Sublime Text 2 config
{
"bold_folder_labels": true,
"color_scheme": "Packages/User/Espresso Soda.tmTheme",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".DS_Store",
".gitkeep",
"dump.rdb"
],
tell application "Safari" to set recipeurl to URL of front document
tell application "Safari" to set recipetitle to name of front document
set ingredients to (do shell script "curl http://recipedistiller.com/recipe/classify/?recipeurl=" & recipeurl & " | textutil -convert txt -stdin -stdout | grep '.' | sed 's/ • DELETE//g'")
set my text item delimiters to "VIEW RECIPE"
set ingredients to text item 2 of ingredients
set my text item delimiters to "©"
set ingredients to text item 1 of ingredients