<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
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) |
This is a sample markdown file to help you write Markdown quickly :)
If you use the fabulous [Sublime Text 2/3 editor][ST] along with the [Markdown Preview plugin][MarkdownPreview], open your ST2 Palette with CMD+P
then choose Markdown Preview in browser
to see the result in your browser.
this is italic and this is bold . another italic and another bold
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
# Unlock keychain | |
security unlock-keychain -p jenkins /Users/jenkins/Library/Keychains/login.keychain | |
# Build and sign app | |
xcodebuild -configuration Distribution clean build | |
# Set variables | |
APP_PATH="$PWD/build/Distribution-iphoneos/iPadApp.app" | |
VERSION=`defaults read $APP_PATH/Info CFBundleShortVersionString` | |
REVISION=`defaults read $APP_PATH/Info CFBundleVersion` |
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
@ECHO OFF | |
:: -------------------------------------------------------------------------------------------- | |
:: File : SetEnv.cmd | |
:: | |
:: Abstract: This batch file sets the appropriate environment variables for the Windows SDK | |
:: build environment with respect to OS and platform type. | |
:: | |
:: Usage : Setenv [/Debug | /Release][/x86 | /x64 | /ia64 ][/vista | /xp | /2003 | /2008 | /win7][-h | /?] | |
:: | |
:: /Debug - Create a Debug configuration build environment |
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!' |
OlderNewer