- Github - https://github.com/jasondenizac
- StackOverflow Careers - http://careers.stackoverflow.com/denizac
- LinkedIn - http://www.linkedin.com/in/jasondenizac
- Lanyrd - http://lanyrd.com/profile/lejden/
- Coderwall - http://coderwall.com/denizac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function boiseHackers(you){ | |
var meetup = { | |
when: new Date("Mar 14 2012 5:00 PM"), | |
where: "Java Downtown" | |
}; | |
if(you.doing > you.talking) | |
{ | |
alert("@BoiseHackers is meeting at " + meetup.where + " at " + meetup.when.toLocaleTimeString() + " on " + meetup.when.toLocaleDateString()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global require, window */ | |
require.config({ | |
shim: { | |
'underscore': { | |
deps: ['underscore.js'], | |
exports: function () { | |
return this._.noConflict(); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private string myString; | |
public string MyString{ | |
get{ | |
return myString ?? (myString = doSomething()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[].slice.call(document.querySelectorAll('p.row')).forEach( | |
function(L) { | |
var y = '$'+ +/\$(\d+)/.exec(L.innerText)[1]*12+' - ', | |
yL = document.createElement('span'); | |
yL.innerText = y; | |
L.insertBefore(yL, L.firstChild); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[/*global define: false */ | |
define( | |
[${1:'app', 'backbone', 'lodash'}], | |
function (${2:App, B, _}) { | |
'use strict'; | |
${3} | |
});]]></content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global define: false, window: false */ | |
define(['jquery'], function ($) { | |
'use strict'; | |
return function () { | |
/* Begin monkey-patch Tap event support into $ */ | |
var x = 0, | |
y = 0, | |
threshold = 40, | |
// Sometimes there is lag between the last update and touchend. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global define:false */ | |
define(['backbone','underscore','deferred'], function (B, _, flow) { | |
/** | |
* @constructor | |
*/ | |
var AsyncCollection = B.Collection.extend({ | |
initialize: function () { | |
// if the initialize function is overriden in an | |
// extended class of AsyncCollection, ensure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var reflection = { | |
getCallStack: function getCallStack() { | |
var old = Error.prepareStackTrace, e = {}; | |
Error.prepareStackTrace = function (e, cs) { return cs; }; | |
if (Error.captureStackTrace) { | |
Error.captureStackTrace(e, getCallStack); | |
e = e.stack; | |
e.shift(); | |
Error.prepareStackTrace = old; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"cmd": ["tsc", "$file"], | |
"file_regex": "^(.*)\\(([0-9]*),([0-9]*)", | |
"selector": "source.ts" | |
} |
OlderNewer