Skip to content

Instantly share code, notes, and snippets.

@breezhang
breezhang / gist:06307ad2d916b09b9052
Created May 31, 2014 08:00
uglifyjs compress js
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,
@breezhang
breezhang / gist:a8cc4280ac316e13dca1
Created May 29, 2014 01:18
ls command directories
unix style ls cli check directories
code :
ls -la |grep d
ls -F | grep /
windows code :
dir /AD
@breezhang
breezhang / a.pl
Created May 27, 2014 05:29
bootstrip themes ...........
#!/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;
@breezhang
breezhang / gist:e5e89dd97c28b9035f1c
Created May 22, 2014 14:04
Templating system choose
Choosing a Templating System
1. Reusability
2. stand-alone
3. result-independent
4. simple, small, lightweight
@breezhang
breezhang / marka.txt
Created May 21, 2014 10:22
vim mason setting!!
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
@breezhang
breezhang / gist:029d6deae66f4b0852c1
Created May 19, 2014 13:15
MS cmd make password
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%
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
http://www.bumblebeesoftware.com/
download for windows YACC
VC2010 SP1 free can work but simple setup path
study YACC gogo up
@breezhang
breezhang / gist:25911bb33146c1104ed7
Created May 8, 2014 14:20
github atom build for windows patch readme
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
@breezhang
breezhang / gist:11554384
Created May 6, 2014 06:29
download all .net one place
http://blogs.msdn.com/b/dotnet/p/dotnet_sdks.aspx