Skip to content

Instantly share code, notes, and snippets.

View rebase
$ git rebase -i HEAD~4
pick 01d1124 Adding license
pick 6340aaa Moving license into its own file
pick ebfd367 Jekyll has become self-aware.
pick 30e0ccb Changed the tagline in the binary, too.
# Rebase 60709da..30e0ccb onto 60709da
#
# Commands:
@hellosmithy
hellosmithy / serialize_data_override.js
Created Jul 28, 2014
Marionette `serializeData` override
View serialize_data_override.js
serializeData: function() {
// call the original
var data = Marionette.View.prototype.serializeData.apply(this, arguments);
// add new data
data.whatever = myChannel.request('whatever');
return data;
}
@hellosmithy
hellosmithy / unload.js
Created Jul 1, 2014
Mobile Safari image unload
View unload.js
// Credit to: http://www.fngtps.com/2010/mobile-safari-image-resource-limit-workaround/
var img = document.getElementById('previous');
img.parentNode.removeChild(img);
img.src = 'data:image/gif;base64,' +
'R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=';
window.timeout(function() {
img = null;
}, 60000);
View SublimeLinter.sublime-settings
{
"user": {
"debug": false,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"linters": {
"annotations": {
View gist:aaee0c7ea4edc6b36af6
git config --global alias.search 'log -S'
@hellosmithy
hellosmithy / search-ignore.txt
Created Jun 3, 2014
SublimeText search ignore pattern
View search-ignore.txt
-deploy/*/**, -node_modules/*/**, -source/vendor/*/**, -dist/*/**, -flash/*/**
@hellosmithy
hellosmithy / .editorconfig
Created Jun 2, 2014
Default Editor Config
View .editorconfig
# http://editorconfig.org
root = true
[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
@hellosmithy
hellosmithy / SublimeText_Packages.md
Last active Nov 26, 2015
Useful SublimeText3 Packages
View SublimeText_Packages.md
@hellosmithy
hellosmithy / no-cors
Created Dec 12, 2013
Open Chrome with CORS disabled for testing
View no-cors
open -a Google\ Chrome --args --disable-web-security
@hellosmithy
hellosmithy / box-sizing.styl
Created Nov 21, 2012
* { box-sizing: border-box } FTW (Stylus)
View box-sizing.styl
// Vendor mix-in for box-sizing
// assumes use of vendor interpolation
// http://learnboost.github.com/stylus/docs/interpolation.html
box-sizing()
vendor('box-sizing', arguments)
// apply a natural box layout model to all elements
*
You can’t perform that action at this time.