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
// ---------------------------------------------------------- | |
// A short snippet for detecting versions of IE in JavaScript | |
// without resorting to user-agent sniffing | |
// ---------------------------------------------------------- | |
// If you're not in IE (or IE version is less than 5) then: | |
// ie === undefined | |
// If you're in IE (>=5) then you can determine which version: | |
// ie === 7; // IE7 | |
// Thus, to detect IE: | |
// if (ie) {} |
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
// 1st of all - enhance $.unique, so it works for normal arrays | |
// via http://paulirish.com/2010/duck-punching-with-jquery/ | |
(function($){ | |
var _old = $.unique; | |
$.unique = function(arr){ | |
// do the default behavior only if we got an array of elements | |
if (!!arr[0].nodeType){ | |
return _old.apply(this,arguments); | |
} else { | |
// reduce the array to contain no dupes via grep/inArray |
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
/* | |
* usage: | |
* | |
* tmpl( id_of_template_source:string , [template_data:object] ); | |
* | |
*/ | |
var minimold = (function(){ | |
"use strict"; | |
var cache = {}; |
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
/*! normalize.css v1.0.0 | MIT License | git.io/normalize */ | |
/* | |
* usage: | |
* @import "normalize"; | |
* | |
* // this will print out ALL selectors | |
* @include normalize(); | |
* | |
* // this will print out minimal set (*) -- you can see the list of "excluded" tags below |
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
// hey there! ;-) | |
(function() { | |
var doc = document, | |
body = doc.body, | |
atan2 = Math.atan2, | |
cos = Math.cos, | |
sin = Math.sin, | |
sqrt = Math.sqrt, |
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
{ | |
"auto_complete_commit_on_tab": false, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/User/Monokai Soda.tmTheme", | |
"default_line_ending": "unix", | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ | |
"*.pyc", |
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 caretInception( node, index, found ){ | |
var response = { | |
found : found, | |
index : index | |
}; | |
if ( found ) { | |
return response; | |
} |
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( $, window, document, undefined ){ | |
"use strict"; | |
$.fn.formObject = function( data ){ | |
if ( data ){ | |
this.each( function(){ | |
// we do it only for forms | |
if ( ! /form/i.test( this.tagName )){ | |
return false; | |
} |
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
@mixin sprite-placeholders( $glob, $dimensions: true, $layout: smart ){ | |
$map : sprite-map( $glob, $layout : $layout ); | |
$name : sprite-map-name( $map ) + '-sprite'; | |
$widths : (); | |
$heights : (); | |
$unified-widths : false; | |
$unified-heights : false; |
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
.foo { | |
color:red | |
} | |
.bar { | |
color:blue | |
} |
OlderNewer