Skip to content

Instantly share code, notes, and snippets.

View davidcalhoun's full-sized avatar
🐢
may be slow to respond; PRs welcomed

David Calhoun davidcalhoun

🐢
may be slow to respond; PRs welcomed
View GitHub Profile
@davidcalhoun
davidcalhoun / sass-less.md
Created August 31, 2011 19:52
SASS/LESS

Thoughts on using SASS or LESS

@davidcalhoun
davidcalhoun / js-best-practices.md
Created September 7, 2011 18:33
JavaScript best practices

JavaScript Best Practices

Code conventions

Closing/opening brackets

Although this isn't a problem in other languages, because of semicolon insertion, there could be problems if you don't place the bracket on the opening line:

// no:
function()
{
@davidcalhoun
davidcalhoun / css-best-practices.md
Created September 7, 2011 20:22
CSS Best Practices
@davidcalhoun
davidcalhoun / festivals.md
Created October 23, 2011 21:32
Festivals and events in Japan

Kyoto

  • Kasagake (horse archery) at Kamigamo (third Sunday in October)
@davidcalhoun
davidcalhoun / mixin.md
Created October 26, 2011 16:49
Mixin example

Mixin definition (Ken Burns)

mixin kenburns(config)
	section
	  .c-kenburns(style='margin: 0 auto')
	    - each img in config.imgs
	      img(src='#{img}')
@davidcalhoun
davidcalhoun / expat.md
Created November 2, 2011 16:41
Reasons for leaving
@davidcalhoun
davidcalhoun / user-select.js
Created January 6, 2012 19:48
Force user-select bookmarklet
javascript:(function(){var a=document.createElement("style");a.innerHTML="*{-webkit-user-select:auto !important;}";document.getElementsByTagName("head")[0].appendChild(a)})();
@davidcalhoun
davidcalhoun / app-icons.md
Created July 13, 2012 01:03
Application icons (OSX)

================== Step 1: Find a browser icon

/Applications/Safari.app/Contents/Resources/compass.icns

/Applications/Firefox.app/Contents/Resources/firefox.icns

/Applications/FirefoxNightly.app/Contents/Resources/firefox.icns

/Applications/Google Chrome.app/Contents/Resources/app.icns

@davidcalhoun
davidcalhoun / gist:7901683
Created December 10, 2013 22:39
unfiltered frontend links for December 10
[ 'No mobile strategy yet? Might wanna get on it. "Mobile browsers top 20% for web use around the world" | http://t.co/vZk9zmUuPj #mobile',
'RT @kawanoshinobu: Build Tizen HTML5 Apps w/ Sencha Architect & Sencha Touch by @me_stoe #html5 #senchaarchitect http://t.co/3oCVXwfnDY',
'MT @strataconf How does data shape tech innovations, ethical dilemmas & policing? Discuss w/ @acroll on Jan 7 http://t.co/CsHUDYybv7',
'RT @cfjedimaster: Speaking of Brackets, @edge_code was updated today as well. Details at the Edge Code Blog: http://t.co/3KgGG9J5kn',
'http://t.co/OiV21Y9zEC — Make <dialog> autofocus the first focusable control if there isn\'t one with autofocus=\'\'.',
'Google now lets you create your own Street View maps http://t.co/RwhwfUlql2',
'RT @Shealan: HOLY SHIT. All these years and I never knew about the double wrap!? http://t.co/hYfrBvzNah',
'No more smaller burger option. @ Brickhouse Cafe http://t.co/rEW1kL1il2',
'Os auto-retratos mais bonitos do ano no Sua Melhor Foto 2013.