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
| # [0-9].json | |
| \d+[.][j][s][o][n] | |
| # the end of every line. | |
| (?>\x0D\x0A?|[\x0A-\x0C\x85\x{2028}\x{2029}]) | |
| # begin of lines. | |
| ^[a-zA-z0-9!@#$")(*&!+_-] |
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
| # 跳到特定的檔案 | |
| Ctrl + P | |
| 可輸入 <檔案名稱>:<行號> 來快速跳躍 | |
| # 跳到特定行 | |
| Ctrl + G | |
| # 轉換 Emmet | |
| Ctrl + E |
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
| # config valid only for Capistrano 3.1 | |
| lock '3.1.0' | |
| set :application, "" # EDIT your app name | |
| set :scm, :git | |
| set :repo_url, "" # EDIT your git repository | |
| set :keep_releases, 3 |
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 getClosestValues = function(a, x) { | |
| var lo = -1, hi = a.length; | |
| while (hi - lo > 1) { | |
| var mid = Math.round((lo + hi)/2); | |
| if (a[mid] <= x) { | |
| lo = mid; | |
| } else { | |
| hi = mid; | |
| } | |
| } |
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
| https://www.digitalocean.com/community/questions/how-to-change-swap-size-on-ubuntu-14-04 | |
| Just follow these steps: | |
| Make all swap off | |
| sudo swapoff -a | |
| Resize the swapfile | |
| sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 |
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 BatchStream = require('batch-stream2') | |
| var gulp = require('gulp') | |
| var coffee = require('gulp-coffee') | |
| var uglify = require('gulp-uglify') | |
| var cssmin = require('gulp-minify-css') | |
| var bower = require('gulp-bower-files') | |
| var stylus = require('gulp-stylus') | |
| var livereload = require('gulp-livereload') | |
| var include = require('gulp-include') | |
| var concat = require('gulp-concat') |
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
| <?php | |
| set_error_handler(function($errno, $errstr, $errfile, $errline, array $errcontext) { | |
| // error was suppressed with the @-operator | |
| if (0 === error_reporting()) { | |
| return false; | |
| } | |
| throw new ErrorException($errstr, 0, $errno, $errfile, $errline); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <div id="log"></div> | |
| <script> |
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
| <video id="Video1" width="1134" height="906" controls> | |
| <source src="test_1.mp4" type="video/mp4"> | |
| Your browser does not support the video tag. | |
| </video> | |
| <script> | |
| document.addEventListener("keypress", function(e) { | |
| e = e || window.event; | |
| if(e.keyCode == 13) { |