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
if (typeof module != 'undefined' && module.exports) { | |
module.exports = bbArray; | |
} else if (typeof define === "function" && define.amd) { | |
define("bbArray", [], function() { | |
return bbArray; | |
}); | |
} else { | |
global.bbArray = bbArray; | |
} |
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
// npm install gulp-util --save | |
import gulpLoadPlugins from 'gulp-load-plugins'; | |
import babelify from 'babelify'; | |
import browserify from 'browserify'; | |
import source from 'vinyl-source-stream'; | |
var notifier = require('node-notifier'); | |
// Standard handler | |
var standardHandler = function (err) { |
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
// Combine svg files and inject it into index.html | |
gulp.task('svg', () => { | |
var svgs = gulp | |
.src('app/images/svg/*.svg') | |
.pipe($.svgmin()) | |
.pipe($.svgstore({ inlineSvg: true })); | |
function fileContents (filePath, file) { | |
return file.contents.toString(); | |
} |
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
{ | |
"books": [ | |
{ | |
"id": 1, | |
"title": "Programming Ruby 1.9 & 2.0", | |
"author": "Dave Thomas", | |
"description": "Ruby is the fastest growing and most exciting dynamic language out there. If you need to get working programs delivered fast, you should add Ruby to your toolbox. ", | |
"img_url": "http://ecx.images-amazon.com/images/I/41gtODXuRlL._SX404_BO1,204,203,200_.jpg", | |
"user": { | |
"id": 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
@function dec-to-hex($d) { | |
$hexVals: "A" "B" "C" "D" "E" "F"; | |
$base: 16; | |
$quotient: $d; | |
$result: ""; | |
@if $d == 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
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"font_face": "Source Code Pro", | |
"font_options": | |
[ | |
"gray_antialias" | |
], | |
"font_size": 14, | |
"highlight_line": true, |
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
{ | |
"caret_extra_bottom": 3, | |
"caret_extra_top": 3, | |
"caret_extra_width": 2, | |
"font_size": 13, | |
"highlight_line": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], |
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
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
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
// Modified XMLHttpRequest to add a listener for start and stop the progress bar | |
// | |
// Save the real open | |
var oldOpen = XMLHttpRequest.prototype.open; | |
function onStateChange() { | |
// fires on every readystatechange ever | |
// use `this` to determine which XHR object fired the change event | |
if (this.readyState === 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
for f in *; do mv "$f" "`echo $f | tr "[:upper:]" "[:lower:]"`"; done |