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
| // ---- | |
| // 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
| { | |
| "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
| // 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
| // 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
| 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
| var regMatch = new RegExp("http:\\/\\/\[^\"]+(.png|.jpg|.gif|.jpeg)","gi"); | |
| var str = JSON.stringify(data); | |
| ARRAY_IMAGES = str.match(regMatch); | |
| console.log(ARRAY_IMAGES); |
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
| /* | |
| weekly = [ | |
| ['3/6 - 3/12', 10], | |
| ['3/12 - 3/19', 13] | |
| ]; | |
| day = [ | |
| ['3/6', 10] | |
| ['3/8', 2] | |
| ]; |
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
| #!/bin/bash | |
| echo "---- UPDATE PERMISSION example.net IMAGES ----" | |
| HOST="ftp.example.net" | |
| USER="usernmae" | |
| PASS="password" | |
| FTPURL="ftp://$USER:$PASS@$HOST" | |
| lftp <<EOF | |
| set ftp:ssl-allow no | |
| set ftp:passive-mode true | |
| set ftp:list-options -a |
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
| #!/bin/bash | |
| read -p "Are you sure you want to go to production? <y/N> " prompt | |
| if [[ $prompt =~ [yY](es)* ]] | |
| then | |
| echo "---- UPDATE example.net SITE ----" | |
| HOST="ftp.example.net" | |
| USER="username" | |
| PASS="password" | |
| FTPURL="ftp://$USER:$PASS@$HOST" | |
| LCD="/Users/username/Sites/project-name" |