Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
| #!/bin/bash | |
| # /etc/init.d/selenium | |
| # debian-compatible selenium-grid startup script. | |
| # Based on jenkins startups | |
| # Praneeth Bodduluri <lifeeth[at]gmail.com> | |
| # update-rc.d -n -f selenium start 90 2 3 4 5 . stop 10 0 1 6 . | |
| ### BEGIN INIT INFO | |
| # Provides: selenium-grid | |
| # Required-Start: $remote_fs $syslog $network | |
| # Required-Stop: $remote_fs $syslog $network |
| // | |
| // UIDeviceHardware.h | |
| // | |
| // Used to determine EXACT version of device software is running on. | |
| #import <Foundation/Foundation.h> | |
| @interface UIDeviceHardware : NSObject | |
| - (NSString *) platform; |
| brew update | |
| brew versions FORMULA | |
| cd `brew --prefix` | |
| git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions" | |
| brew install FORMULA | |
| brew switch FORMULA VERSION | |
| git checkout -- Library/Formula/FORMULA.rb # reset formula | |
| ## Example: Using Subversion 1.6.17 | |
| # |
| [ | |
| {name: 'Afghanistan', code: 'AF'}, | |
| {name: 'Åland Islands', code: 'AX'}, | |
| {name: 'Albania', code: 'AL'}, | |
| {name: 'Algeria', code: 'DZ'}, | |
| {name: 'American Samoa', code: 'AS'}, | |
| {name: 'AndorrA', code: 'AD'}, | |
| {name: 'Angola', code: 'AO'}, | |
| {name: 'Anguilla', code: 'AI'}, | |
| {name: 'Antarctica', code: 'AQ'}, |
| #!/usr/bin/env sh | |
| # Download lists, unpack and filter, write to stdout | |
| curl -s https://www.iblocklist.com/lists.php \ | |
| | sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| | xargs wget -O - \ | |
| | gunzip \ | |
| | egrep -v '^#' |
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
| { | |
| //.. do other setup | |
| CGFloat screenHeight = [UIScreen mainScreen].bounds.size.height; | |
| // Transition neatly from splash screen | |
| // Very odd, on iPhone 5 you need to position the splash screen differently.. |
| // This is the official Selenium documention endorsed method of waiting for elements. | |
| // This method is ineffective because it still suffers from | |
| // the stale element exception. | |
| public static void clickByLocator ( final By locator ) { | |
| WebElement myDynamicElement = ( new WebDriverWait(driver, 10)) | |
| .until( ExpectedConditions.presenceOfElementLocated( locator ) ); | |
| myDynamicElement.click(); | |
| } |
| Copy the Java comment config file to the Groovy directory | |
| cp ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Java/Comments.tmPreferences ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Groovy/ | |
| Edit ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Groovy/Comments.tmPreferences | |
| Change line 8 | |
| <string>source.java</string> |
| INSERT INTO 'snippets' ('title', 'body') VALUES | |
| (':+1:', '👍'), | |
| (':-1:', '👎'), | |
| (':100:', '💯'), | |
| (':1234:', '🔢'), | |
| (':8ball:', '🎱'), | |
| (':a:', '🅰'), | |
| (':ab:', '🆎'), | |
| (':abc:', '🔤'), | |
| (':abcd:', '🔡'), |