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
/* modernizr-test.js | |
* Daniel Ott | |
* 3 March 2011 | |
* Custom Tests using Modernizr's addTest API | |
*/ | |
/* iOS | |
* There may be times when we need a quick way to reference whether iOS is in play or not. | |
* While a primative means, will be helpful for that. | |
*/ |
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 _getAllFilesFromFolder = function(dir) { | |
var filesystem = require("fs"), | |
results = []; | |
filesystem.readdirSync(dir).forEach(function(file) { | |
file = dir+'/'+file; | |
var stat = filesystem.statSync(file); | |
if (stat && stat.isDirectory()) { |
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
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime |
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
$ defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}' | |
$ killall Dock |
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 myIP() { | |
var i = 0, | |
hostipInfo, | |
xmlhttp, | |
ipAddress; | |
if (window.XMLHttpRequest) { | |
xmlhttp = new XMLHttpRequest(); | |
} else { | |
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); | |
} |
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
'use strict'; | |
const fs = require('fs'); | |
/** | |
* Get a list of all files from a folder recursively | |
* | |
* @param {String} dir - The path of the directory folder | |
* @param {Array} [filelist=[]] - The list of all files | |
* @return {Array} - Returns the list of all files |
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:void((function(){window.open(document.location.href,'window_1','width=320,height=460,left=0,top=0');})()); | |
javascript:void((function(){window.open(document.location.href,'window_2','width=460,height=320,left=320,top=0');})()); |
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 gulp = require('gulp'), | |
babel = require('gulp-babel'); | |
module.exports = function() { | |
return gulp.src('./src/**/*.js') | |
.pipe(babel({ | |
sourceMaps: false, |
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 gulp = require('gulp'), | |
browserify = require('browserify'), | |
buffer = require('vinyl-buffer'), | |
gutil = require('gulp-util'), | |
rename = require('gulp-rename'), | |
source = require('vinyl-source-stream'), | |
sourcemaps = require('gulp-sourcemaps'), | |
uglify = require('gulp-uglify'); | |
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
#!/usr/bin/env bash | |
if [ ! -f ./node_modules/.bin/jsdoc ] | |
then | |
npm rebuild | |
fi | |
# sh ./build.sh && | |
echo "Start create documentation" && |
OlderNewer