This file contains 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 UglifyJS = require('C:/d1/a/node_modules/uglify-js/tools/node.js'); | |
var fs = require('fs'); | |
var i,o ; | |
i = process.argv[2]; | |
o = process.argv[3]; | |
var result = UglifyJS.minify(i, { | |
mangle: true, | |
compress: { | |
sequences: true, |
This file contains 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
unix style ls cli check directories | |
code : | |
ls -la |grep d | |
ls -F | grep / | |
windows code : | |
dir /AD |
This file contains 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/perl | |
use strict; | |
use warnings; | |
use feature ':5.14'; | |
use Data::Dumper::Concise; | |
use Template; | |
use Carp qw /croak carp confess/; | |
use JSON::XS; | |
use Storable; |
This file contains 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
Choosing a Templating System | |
1. Reusability | |
2. stand-alone | |
3. result-independent | |
4. simple, small, lightweight |
This file contains 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
perl Mason and vim | |
1 add mc type is mason vim code mason 1 default mason | |
{ | |
au BufRead,BufNewFile *.mc set filetype=mason | |
} | |
2 format mason file use masontidy vim code |
This file contains 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
cmd random http://jasonfaulkner.com/RandomChars.aspx | |
1. | |
RandomChars 10 | |
2. | |
RandomChars 15 /R 36 /O 10 | |
3. | |
RandomChars /G | |
4. | |
FOR /F "usebackq tokens=*" %%A IN (`CALL RandomChars 12`) DO SET NewPassword=%%A | |
ECHO Randomly Generated Password: %NewPassword% |
This file contains 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
cygwin for windows some iuuse | |
1. no clear just ctrl +L or install ncurses | |
2. perl CPAN issue | |
http://www.perlmonks.org/?node_id=1083189 | |
3. you must be choice mintty + bash very very good for windows happy type | |
happy go |
This file contains 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
http://www.bumblebeesoftware.com/ | |
download for windows YACC | |
VC2010 SP1 free can work but simple setup path | |
study YACC gogo up |
This file contains 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
build github atom for windows | |
.... git clone .... | |
use github windows powershell shell build so edit powershell profile + vs2010 | |
free VC path use --> $env:path=""+$path | |
Env --> GYP_MSVS_VERSION =2010 | |
just build -> script/build -->lib | |
.\script\grunt --> your github atom |
This file contains 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
http://blogs.msdn.com/b/dotnet/p/dotnet_sdks.aspx |