This file contains hidden or 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
$(this).bind('mouseover focusin mouseleave blur', function(e){ | |
e.stopImmediatePropagation(); | |
}) | |
.attr('title','') | |
.tooltip({ | |
content: function(){ return IG.Tmpl.partials["schedules_quick_add"]; }, | |
position: { | |
my: 'left bottom', | |
at: 'left top', | |
of: $(this), |
This file contains hidden or 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
@mixin font-face( | |
$name, | |
$font-files, | |
$eot: false, | |
$weight: false, | |
$style: false | |
) { | |
$iefont: unquote("#{$eot}?iefix"); | |
@font-face { | |
font-family: quote($name); |
This file contains hidden or 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
//This is JavaScript object is an example of what I need returned from the server. | |
{ | |
events: [ | |
{ | |
id: 1, userid: 1 | |
}, | |
{ | |
id: 2, userid: 1 | |
}, |
This file contains hidden or 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
javascript:(function(){var%20$commits=$('.commits-condensed%20td.message'),title=$.trim($commits.last().text())+'...',pullBody='';$commits.each(function(){pullBody+=$.trim($(this).text())+'%20%20';});$('.title.required').val(title);$('#pull_body').val(pullBody);$('.form-actions .button.primary').removeAttr('disabled');})(); |
This file contains hidden or 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
ಠ_ಠ | |
ಠ~ಠ | |
ಠoಠ | |
ಠxಠ | |
ಠ.ಠ |
This file contains hidden or 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 jsColor = {}; | |
(function(self){ | |
self.hexToRgb = function(hex) { | |
if (hex[0]=="#") hex=hex.substr(1); | |
if (hex.length==3) { | |
var temp=hex; hex=''; | |
temp = /^([a-f0-9])([a-f0-9])([a-f0-9])$/i.exec(temp).slice(1); | |
for (var i=0;i<3;i++) hex+=temp[i]+temp[i]; | |
} |
This file contains hidden or 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 updateQueryStringParameter(a, k, v) { | |
var re = new RegExp("([?|&])" + k + "=.*?(&|$)", "i"), | |
separator = a.indexOf('?') !== -1 ? "&" : "?"; | |
if (a.match(re)) return a.replace(re, '$1' + k + "=" + v + '$2'); | |
else return a + separator + k + "=" + v; | |
} |
This file contains hidden or 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
$(document).keypress(function(e) { | |
var code = (e.keyCode) ? e.keyCode : e.which, character; | |
if(e.charCode && code !== 32 && code !== 13 && !e.altKey && !e.ctrlKey && !e.metaKey){ | |
character = String.fromCharCode(e.charCode); | |
console.log('value: ', character); | |
} | |
}); |
This file contains hidden or 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
//requires sugar.js (because I spent like 30 seconds on it) | |
//dialog source: http://stuff.mit.edu/afs/athena/activity/h/humor/Incoming/laforge.dialogue.generator | |
descriptor = 'electro-magnetic disruptive destructive'.words(); | |
verbs = 'reconfigure assemble bypass amplify re-route polarize'.words(); | |
nouns = 'field transducer coil dispersion phase-disruptor anus resonance sub-space tachyon induction pulse matrix baryon conduit wave-guide lepton discriminator polarization electro-magnetic frequency bandwidth antimatter diagnostic mode plasma spectral emitter'.words(); | |
enemies = 'klingons romulans herpes'.words(); | |
var laforge = "Captain, we're going to have to {verb1} the {descriptor1} {nouns1}, and {verb2} the {descriptor2} {nouns2} in order to prevent the {enemy} from penetrating our shields".assign({ | |
verb1: verbs.sample(), |
This file contains hidden or 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
//meta validation | |
//idea for dynamic validation to enable model validation to change its own validation on the fly | |
//example syntax below | |
var validation = { | |
rules: [ //model attribute rules | |
'recipient_type': { | |
//on: true, //always on by default | |
when: [ |
OlderNewer