Skip to content

Instantly share code, notes, and snippets.

/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@sike
sike / reset.css
Created March 27, 2013 09:16
reset.css
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@sike
sike / private.xml
Created March 23, 2013 15:28
private.xml
<?xml version="1.0"?>
<root>
<list>
<appdef>
<appname>PREVIEW</appname>
<equal>com.apple.Preview</equal>
</appdef>
<appdef>
<appname>SAFARI</appname>
<equal>com.apple.Safari</equal>
@sike
sike / sync for dropbox
Created January 29, 2013 10:04
sync outside folder to dropbox
ln -s /path/to/desired-folder ~/Dropbox/desired-folder
@sike
sike / jQuery plugin template
Created November 6, 2012 09:29
jquery.plugin.js
(function($) {
// plugin name
$.fn.productList = function(options) {
var _this = this;
// plugin options
var settings = $.extend({
// default settings
'param' : 'value'
}, options);
@sike
sike / .tmux.conf
Created October 23, 2012 02:21
tmux config
unbind C-b
set -g prefix C-a
setw -g mode-keys vi
# split window like vim
# vim's defination of a horizontal/vertical split is revised from tumx's
bind s split-window -h
bind v split-window -v
# move arount panes wiht hjkl, as one would in vim after C-w
bind h select-pane -L
@sike
sike / bash.scpt
Created October 10, 2012 06:59 — forked from noamross/bash.scpt
Run bash script from quicksilver
using terms from application "Quicksilver"
on process text _bashcom
do shell script "/bin/bash -ic '" & _bashcom & "'"
end process text
end using terms from
@sike
sike / css-stats-ack.sh
Created October 7, 2012 07:32 — forked from pjkix/css-stats-ack.sh
shell script to generate some css file statistics
#!/bin/bash
## v1.0.6
## this script will gernerate css stats
### example output
# CSS STATS
# ----------
# Floats: 132
@sike
sike / gist:3800011
Created September 28, 2012 13:56 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@sike
sike / gist:3797651
Created September 28, 2012 02:41
VPN: shortcut trigger for quicksilver
tell application "System Events"
tell current location of network preferences
set Modemdailup to service "VPN2"
if exists Modemdailup then disconnect Modemdailup
set Modemdailup2 to service "VPN3"
if exists Modemdailup2 then disconnect Modemdailup2
end tell
end tell
// tell application "System Events"