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(global){ | |
var inc = { | |
css:[], | |
js:[], | |
calls:[], | |
loadedJs:[] | |
}; | |
var loadData = function (obj) { | |
inc.calls.push(obj); |
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
$.fn.noiseBackground = function (alpha) { | |
alpha = alpha || 0.2; | |
function generateNoise (alpha) { | |
var canvas = document.createElement('canvas'); | |
if ( !!!canvas.getContext) { | |
return false; | |
} | |
var ctx = canvas.getContext('2d'), | |
x,y, |
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
Array.prototype.clone = function() { | |
var arr = this.slice(0); | |
for( var i = 0; i < this.length; i++ ) { | |
if( this[i].clone ) { | |
//recursion | |
arr[i] = this[i].clone(); | |
} | |
} | |
return arr; |
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
package { | |
import flash.display.MovieClip; | |
import flash.display.StageAlign; | |
import flash.display.StageScaleMode; | |
import flash.events.Event; | |
// extend ResponsiveScene from main class and | |
// set m_scene to MovieClip object with sould be scaled | |
public class ResponsiveScene extends MovieClip { |
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 DESTINATION = "sass"; | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
compass: { | |
dev: { | |
options: { | |
sassDir: 'sass', | |
cssDir: 'css' |
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
<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
<!-- This is an automatically generated file. | |
It will be read and overwritten. | |
DO NOT EDIT! --> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | |
<TITLE>Bookmarks</TITLE> | |
<H1>Bookmarks</H1> | |
<DL><p> | |
<DT><H3 ADD_DATE="1393402804" LAST_MODIFIED="1393404076" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks bar</H3> | |
<DL><p> |
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 timesGen = function(t,useArguments){ | |
return function(callback,thisArg){ | |
thisArg = thisArg || null; | |
return function(){ | |
for(var i = 0;i < t; i++){ | |
callback.apply(thisArg,(useArguments) ? arguments : [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
String.prototype._toIntArray = function(func){ | |
func = (typeof func == 'undefined') ? function(a){return a;}: func; | |
for (var b = [], i=0; i<this.length;i++) | |
b.push(func(this.charCodeAt(i))); | |
return b; | |
}; | |
Array.prototype._intToString = function(func){ | |
func = (typeof func == 'undefined') ? function(a){return a;}: func; | |
for (var b = '', i=0; i<this.length;i++) | |
b += String.fromCharCode(func(this[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
var keywords_color_regex = /^[a-z]*$/; | |
var hex_color_regex = /^#[0-9a-f]{3}([0-9a-f]{3})?$/; | |
var rgb_color_regex = /^rgb\(\s*(0|[1-9]\d?|1\d\d?|2[0-4]\d|25[0-5])%?\s*,\s*(0|[1-9]\d?|1\d\d?|2[0-4]\d|25[0-5])%?\s*,\s*(0|[1-9]\d?|1\d\d?|2[0-4]\d|25[0-5])%?\s*\)$/; | |
var rgba_color_regex = /^rgba\(\s*(0|[1-9]\d?|1\d\d?|2[0-4]\d|25[0-5])%?\s*,\s*(0|[1-9]\d?|1\d\d?|2[0-4]\d|25[0-5])%?\s*,\s*(0|[1-9]\d?|1\d\d?|2[0-4]\d|25[0-5])%?\s*,\s*((0.[1-9])|[01])\s*\)$/; | |
var hsl_color_regex = /^hsl\(\s*(0|[1-9]\d?|[12]\d\d|3[0-5]\d)\s*,\s*((0|[1-9]\d?|100)%)\s*,\s*((0|[1-9]\d?|100)%)\s*\)$/; |
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 beforeAfterify(array, prefix, that, args){ | |
if(array[prefix]){ | |
array[prefix].apply(that[prefix],args); | |
} | |
} | |
function listen(element,prefix, before, after, that, event, callback){ | |
var listener = function(){ | |
beforeAfterify(before, prefix, that, arguments); | |
callback.apply(that[prefix],arguments); |
OlderNewer