<div></div>
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
-- command line arg: | |
-- TFT.lua WxH | |
function check(arg) | |
if not arg[1] then | |
error('WxH arg not given!') | |
end | |
local w, h = arg[1]:match('(%d+)x(%d+)') | |
if not w or not h then | |
error('W or H not number!') | |
end |
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
/* | |
StackBlur - a fast almost Gaussian Blur For Canvas | |
Version: 0.5 | |
Author: Mario Klingemann | |
Contact: mario@quasimondo.com | |
Website: http://www.quasimondo.com/StackBlurForCanvas | |
Twitter: @quasimondo |
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
if %cmdcmdline% == "%SystemRoot%\system32\cmd.exe" ( | |
echo from cmd window... | |
) else ( | |
pause | |
) |
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
local function parent_directory_name(p) | |
if not p:find('[/\\]') then return '' end | |
return p:match('^.-([^/\\]+)[/\\][^/\\]+$') | |
end | |
local PKG = parent_directory_name(arg[0]) | |
print(PKG) | |
local installd = os.getenv('APPDATA') | |
local filename = string.format('%s\\Sublime Text 3\\Installed Packages\\%s.sublime-package', installd, PKG) |
git clone https://gist.github.com/fccbf0f02355a31f7959 && cd fccbf0f02355a31f7959 && sh install.sh && cd .. && rm -rf fccbf0f02355a31f7959
git clone https://gist.github.com/fccbf0f02355a31f7959 && cd fccbf0f02355a31f7959 && sh uninstall.sh && cd .. && rm -rf fccbf0f02355a31f7959
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
Write-Output 'Good!' |
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
function proxy { | |
case $1 in | |
[1-9]*) | |
export http_proxy=socks5://127.0.0.1:$1 | |
export https_proxy=$http_proxy | |
git config --global http.proxy $http_proxy | |
git config --global https.proxy $https_proxy | |
;; | |
off) |
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
--[[ | |
ProFi v1.3, by Luke Perkin 2012. MIT Licence http://www.opensource.org/licenses/mit-license.php. | |
Example: | |
ProFi = require 'ProFi' | |
ProFi:start() | |
some_function() | |
another_function() | |
coroutine.resume( some_coroutine ) | |
ProFi:stop() |
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/env bash | |
# Install luarocks for luaenv. | |
function install() { | |
printf "install luarocks for $1..." | |
local ROOT=`luaenv root` | |
if [[ $1 == luajit* ]]; then | |
./configure --prefix=$ROOT/versions/$1 \ | |
--with-lua=$ROOT/versions/$1 \ | |
--rocks-tree=$ROOT/versions/$1 \ |
OlderNewer