Some Sass files compiled :
>> File "app/css/screen-small.css" changed.
>> File "app/css/screen-high-resolutions.css" changed.
>> File "app/css/screen-medium.css" changed.
>> File "app/css/screen-large.css" changed.
>> File "app/css/screen-default.css" changed.
>> File "app/css/helpers.css" changed.
Simply solution for IE comments matching to using RegExp.
A Pen by Jose Luis Quintana on CodePen.
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
#!/bin/sh | |
# Doctrine 2 Entities Generator v0.1 | |
# ================================== | |
# Requirements | |
# ============ | |
# It's necessary to create a composer project before exec this script. | |
# More info about composer at https://getcomposer.org/doc/00-intro.md |
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 groupingObjects(groupBy, groupKey, list) { | |
var g = {}, e, i; | |
for (i = 0; i < list.length; ++i) { | |
e = list[i]; | |
if (g[e[groupBy]] === undefined) { | |
g[e[groupBy]] = {}; | |
g[e[groupBy]][group] = []; | |
} |
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
{ | |
"color_scheme": "Packages/User/predawn (SL).tmTheme", | |
"theme": "predawn-DEV.sublime-theme", | |
// Typography | |
"font_face": "Office Code Pro", | |
"font_size": 10, | |
"font_options": ["no_round"], | |
"tab_size": 2, | |
"highlight_line": true, | |
"caret_style": "phase", |
Set Python version for node-gyp
$ npm config set python python2.7
Add comma for thousands numbers
function numberWithCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
}
Checks if a valid decimal number
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($) { | |
'use strict'; | |
// App | |
var app = (function() { | |
var timing = 300, | |
$w, | |
$slider, | |
$menu; |
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 crypto = require('crypto'); | |
// Usage: | |
// > randomAlpha(4, 'abcdefghijklmnopqrstuwxyz'); | |
// > 'wsxq' | |
function randomAlpha(howMany, chars) { | |
chars = chars || 'abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789'; | |
var rnd = crypto.randomBytes(howMany), | |
value = new Array(howMany), | |
len = chars.length; |
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
// Google ClickTAG: Click event handler | |
clicktag_btn.addEventListener(MouseEvent.MOUSE_UP, function(event: MouseEvent):void { | |
var sURL: String; | |
if ((sURL = root.loaderInfo.parameters.clickTAG)) { | |
navigateToURL(new URLRequest(sURL), "_blank"); | |
} | |
}); |