Skip to content

Instantly share code, notes, and snippets.

View louisje's full-sized avatar
💯
左手寫程式 (">_<) 右手做測試

Louis Jeng louisje

💯
左手寫程式 (">_<) 右手做測試
View GitHub Profile
function FindProxyForURL(url, host) {
if (dnsDomainIs(host, ".i2p")) {
if (url.substring(0, 6) == 'https:') {
return "PROXY localhost:4445";
} else {
return "PROXY localhost:4444";
}
} else {
return "DIRECT";
}
#
sub j(\$){($
P,$V)= @_;while($$P=~s:^
([()])::x){ $V+=('('eq$1)?-32:31
}$V+=ord( substr( $$P,0,1,""))-74} sub a{
my($I,$K,$ J,$L)=@_ ;$I=int($I*$M/$Z);$K=int(
$K*$M/$Z);$J=int($J*$M /$Z);$L=int($L*$M/$Z); $G=$
J-$I;$F=$L-$K;$E=(abs($ G)>=abs($F))?$G:$F;($E<0) and($
I,$K)=($J,$L);$E||=.01 ;for($i=0;$i<=abs$E;$i++ ){ $D->{$K
+int($i*$F/$E) }->{$I+int($i*$G/$E)}=1}}sub p{$D={};$
(()=>(()=>console.log('Hello, World!')))()();
#!/bin/bash -x
if test -z "$(which git)"; then
echo "git is missing!"
exit 1
fi
if test -z "$(which cmake)"; then
echo "cmake is missing!"
exit 1
#!/bin/sh
if test -z "$1"; then
echo "Usage: `basename $0` <char>"
exit
fi
echo -n "$1" \
| iconv -f utf8 -t utf32be \
| xxd -p \