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 simple one, if you need to find a definitely correct HEX/RGB(A)/HSL(A) | |
| // color value among random text (limitations are set by its initial correctness): | |
| /(#[\d\w]+|\w+\((?:\d+%?(?:,\s)*){3}(?:\d*\.?\d+)?\))/i | |
| // …or use complex one instead, if you need to find (or not) one (or several) | |
| // HEX/RGB(A)/HSL(A) color value(s) that has to be verified: | |
| /(#(?:[\da-f]{3}){1,2}|rgb\((?:\d{1,3},\s*){2}\d{1,3}\)|rgba\((?:\d{1,3},\s*){3}\d*\.?\d+\)|hsl\(\d{1,3}(?:,\s*\d{1,3}%){2}\)|hsla\(\d{1,3}(?:,\s*\d{1,3}%){2},\s*\d*\.?\d+\))/gi |
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
| # rebase using the last four commits from where the HEAD is with HEAD~4 | |
| git rebase -i HEAD~4 |
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 keystone = require('keystone'); | |
| var express = require('express'); | |
| var body = require('body-parser'); | |
| var helmet = require('helmet'); | |
| var app = express(); | |
| app.use(body.urlencoded({ extended: false })); | |
| app.use(body.json()); | |
| app.use(helmet()); |
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
| 'atom-text-editor[data-grammar~="jsx"]:not([mini])': | |
| 'tab': 'emmet:expand-abbreviation-with-tab' |
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
| # rename branch | |
| git branch -m <branch> | |
| git push origin --delete <old_branch> | |
| git push -u origin <branch> | |
| # rename github repo | |
| git remote rm origin | |
| git remote add origin [email protected]:"yourusername"/"projectname".git |
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
| # | |
| # A two-line, Powerline-inspired theme that displays contextual information. | |
| # | |
| # This theme requires a patched Powerline font, get them from | |
| # https://github.com/Lokaltog/powerline-fonts. | |
| # | |
| # Authors: | |
| # Isaac Wolkerstorfer <[email protected]> | |
| # Jeff Sandberg <[email protected]> | |
| # Sorin Ionescu <[email protected]> |
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 babel = require('babel'); | |
| module.exports = function (wallaby) { | |
| return { | |
| files: [ | |
| 'src/lib/**/*.js', | |
| ], | |
| tests: [ | |
| 'src/test/*.spec.js' | |
| ], |
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.desktopservices DSDontWriteNetworkStores true` | |
| Install [Asepsis](http://asepsis.binaryage.com/) | |
| `sudo find . -name '*.DS_Store' -type f -delete` |
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
| curl -L -A "Googlebot/2.1 (+http://www.google.com/bot.html)" http://example.com |
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 source = require('vinyl-source-stream'); | |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var browserify = require('browserify'); | |
| var reactify = require('reactify'); | |
| var watchify = require('watchify'); | |
| var notify = require("gulp-notify"); | |
| var scriptsDir = './scripts'; | |
| var buildDir = './build'; |