- 
Step 1
Updatepackage.json- Add 
"uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#harmony"into dependencies.
(The tagharmonyis to enable es6) - Add 
"uglify": "node uf.js"into scripts. 
 - Add 
 - 
Step 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
    
  
  
    
  | #!/usr/bin/env bash | |
| YESTERDAY=$(date -d 'yesterday' '+%Y-%m-%d') | |
| PID_FILE=/var/run/nginx.pid | |
| LOG_FILE=/data/error.log | |
| OLD_FILE=/data/error-$YESTERDAY.log | |
| mv $LOG_FILE $OLD_FILE | |
| kill -USR1 $(cat $PID_FILE) | 
  
    
      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 | |
| /** | |
| * @reference http://stackoverflow.com/questions/594112/matching-an-ip-to-a-cidr-mask-in-php-5 | |
| */ | |
| function cidr_match($ip, $range) | |
| { | |
| list ($subnet, $bits) = explode('/', $range); | |
| $ip = ip2long($ip); | 
  
    
      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 | |
| // Based on <https://github.com/mecha-cms/extend.minify> | |
| define('MINIFY_STRING', '"(?:[^"\\\]|\\\.)*"|\'(?:[^\'\\\]|\\\.)*\''); | |
| define('MINIFY_COMMENT_CSS', '/\*[\s\S]*?\*/'); | |
| define('MINIFY_COMMENT_HTML', '<!\-{2}[\s\S]*?\-{2}>'); | |
| define('MINIFY_COMMENT_JS', '//[^\n]*'); | |
| define('MINIFY_PATTERN_JS', '\b/[^\n]+?/[gimuy]*\b'); | |
| define('MINIFY_HTML', '<[!/]?[a-zA-Z\d:.-]+[\s\S]*?>'); | 
  
    
      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 | |
| /** | |
| * @phpversion ^7.0 | |
| * @see http://devco.re/blog/2014/06/19/client-ip-detection/ | |
| */ | |
| class ClientIP | |
| { | |
| private $ip = ''; | 
I hereby claim:
- I am iamken1204 on github.
 - I am kettan (https://keybase.io/kettan) on keybase.
 - I have a public key whose fingerprint is A010 0DB8 AABD 7EF1 26A9 BF4F A950 65E8 F795 D5E4
 
To claim this, I am signing this object:
  
    
      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
    
  
  
    
  | /**! | |
| * ajax - v2.1.2 | |
| * Ajax module in Vanilla JS | |
| * https://github.com/fdaciuk/ajax | |
| * Sun May 15 2016 12:45:49 GMT-0300 (BRT) | |
| * MIT (c) Fernando Daciuk | |
| */ | |
| /** | 
  
    
      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' | |
| /** | |
| * Example: | |
| * var returnedData | |
| * function myCallback(data) { | |
| * returnedData = JSON.parse(data) | |
| * } | |
| * ajax('your-api-url') | |
| * .get() | 
  
    
      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
    
  
  
    
  | <h1> | |
| <p> | |
| youtube.carousel.html | |
| <a href="demo: https://jsfiddle.net/Kettan/y4g7Lo7s">Demo</a> | |
| </p> | |
| </h1> | |
| <h3> | |
| Youtube 自動輪播<br> | |
| <small>點擊 ID 換影片</small> | 
  
    
      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
    
  
  
    
  | package main | |
| import "net/http" | |
| func main() { | |
| finish := make(chan bool) | |
| server8001 := http.NewServeMux() | |
| server8001.HandleFunc("/foo", foo8001) | |
| server8001.HandleFunc("/bar", bar8001) | 
NewerOlder