Skip to content

Instantly share code, notes, and snippets.

View erinlin's full-sized avatar

YuShan Lin (Erin) erinlin

View GitHub Profile
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active July 17, 2024 14:20
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

anonymous
anonymous / touchListener.lua
Created August 15, 2012 18:14
touchListener
local function touchListener( event )
--- Debug Event parameters printout --------------------------------------------------
print();print( "Listener events:" )
for k,v in pairs( event ) do
print( " " .. tostring( k ) .. "(" .. tostring( v ) .. ")" )
end
--- End of debug Event routine -------------------------------------------------------
anonymous
anonymous / performWithDelay.lua
Created August 15, 2012 18:00
performWithDelay and Closures
local rect = display.newRect( 0, 0, 100, 100 )
local function timerListener( object )
return function()
print( "Rect x,y = ", object.x, object.y )
end
end
timer.performWithDelay( 1000, timerListener( rect ) )
@chinghanho
chinghanho / gist:3346205
Created August 14, 2012 04:18 — forked from lucasfais/gist:1207002
Sublime Text 2: Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T 切換檔案
⌘⌃P 切換專案
⌘R 畫面切換到 method
⌃G 畫面切換到指定行數
⌘KB 關閉 / 開啟側邊欄
⌘⇧P 開啟指令控制面板