This is a Chinese version of https://gist.github.com/1207002/86f48cd3b3b72c85e6293926cf7c730de03b2f08 from lucasfais
| ⌘T | 前往文件 |
| ⌘⌃P | 前往项目 |
| ⌘R | 前往 method |
| ⌘⇧P | 命令提示 |
| # ~/.tmux.conf | |
| # | |
| # See the following files: | |
| # | |
| # /opt/local/share/doc/tmux/t-williams.conf | |
| # /opt/local/share/doc/tmux/screen-keys.conf | |
| # /opt/local/share/doc/tmux/vim-keys.conf | |
| # | |
| # URLs to read: | |
| # |
| #!/bin/bash | |
| # on centos minimal | |
| yum install gcc | |
| yum install make | |
| yum install ncurses-devel | |
| yum install lua lua-devel | |
| yum install ruby ruby-devel | |
| yum install python python-devel | |
| yum install perl perl-devel |
| Found this tip in comment here: http://www.tipb.com/2011/01/04/tipb-bug-home-button-working-iphone/ | |
| 1.) Open any application | |
| 2.) Press and hold the power button until the slide to shutdown swipe bar appears. | |
| 3.) Release Power button | |
| 4.) Press and hold Home button Lightly | |
| until screen returns to icon screen |
| typedef enum { | |
| kScrollDirectionLeft = -1, | |
| kScrollDirectionNone, | |
| kScrollDirectionRight | |
| }ScrollDirection; | |
| -(void) scrollEffectInDirection:(ScrollDirection) direction{ | |
| ContentView *previousPageView = (ContentView *)[self.pageScrollView viewWithTag:kPreviousPageTag]; | |
| ContentView *currentPageView = (ContentView *)[self.pageScrollView viewWithTag:kCurrentPageTag]; | |
| ContentView *nextPageView = (ContentView *)[self.pageScrollView viewWithTag:kNextPageTag]; |
This is a Chinese version of https://gist.github.com/1207002/86f48cd3b3b72c85e6293926cf7c730de03b2f08 from lucasfais
| ⌘T | 前往文件 |
| ⌘⌃P | 前往项目 |
| ⌘R | 前往 method |
| ⌘⇧P | 命令提示 |
| var PROXY = { | |
| "direct":"DIRECT", | |
| "gfw":"PROXY 127.0.0.1:8123" | |
| }; | |
| var DEFAULT = "direct"; | |
| var SECTIONS = [ | |
| { | |
| "name":"direct", |
| #converting utilities | |
| alias b2u='iconv -f big5 -t utf-8' | |
| alias g2u='iconv -f gbk -t utf-8' | |
| alias sec='date "+%s"' | |
| alias now='date "+%Y-%m-%d %H:%M"' | |
| #show image resolution | |
| alias resolution='identify $1 |awk '\''{print $3}'\''' | |
| #count freqency | |
| alias count='sort | uniq -c| sort -nr' |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| -- Finder-ApplyColorLabelToSelectedItems | |
| -- ©2011 Ian Kirkland, M.Ed, Kirkland Professional Studios | |
| (* | |
| I like to use Finder labels in conjunction with smart folders that point to files and/or folders of a specific label color. That way, I can use red labels for "urgent" to-do items, orange labels for "standard to-do", etc. This script allows a much quicker way of applying color labels. | |
| LEGEND | |
| ------------------------------------------------- | |
| Keystroke | Appearance | Label Index | |
| ------------------------------------------------- | |
| key "0" = No color = 0 |
| #!/usr/bin/ruby | |
| #Just run this script in a terminal window, leaving the window open in the | |
| #background so it can continue to process messages. | |
| IO.popen("syslog -F \'$(Sender): $Message\' -w -k Sender com.apple.backupd") { |syslogIO| | |
| while (inputString = syslogIO.gets) do | |
| escapedString = inputString.gsub("'", "\\'") | |
| `/usr/local/bin/growlnotify -a 'Time Machine' -m '#{escapedString}'` | |
| end | |
| } |