Function | Shortcut |
---|---|
Previous Tab | ⌘ + Left Arrow |
Next Tab | ⌘ + Right Arrow |
Go to Tab | ⌘ + Number |
Go to Window | ⌘ + Option + Number |
Go to Split Pane by Direction | ⌘ + Option + Arrow |
Go to Split Pane by Order of Use | ⌘ + ] , ⌘ + [ |
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
#!/bin/bash | |
WaitForDown=true | |
while true; do | |
StoreUp=`curl -s http://store.apple.com/de | grep "Mac kaufen" | wc -l` | |
if [ $StoreUp -eq 0 ]; then | |
if $WaitForDown; then |
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
import urllib2 | |
import re | |
import time | |
import pycurl | |
import StringIO | |
#url = "http://78.10.81.103:19100/mbp.html" | |
url = "http://store.apple.com/pl/browse/home/shop_mac/family/macbook_pro/select" | |
prev_delivery = (None, None) |
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
""" | |
For more part numbers for other phone models etc, look here: | |
http://www.everyi.com/by-identifier/ipod-iphone-ipad-specs-by-apple-order-number-part-number.html | |
""" | |
import requests | |
import urllib | |
BASE_URL = "http://www.apple.com/shop/retailStore/availabilitySearch?" |
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
import android.util.Log; | |
/** | |
* @author eefret | |
* Created by Christopher T. Herrera (eefret) on 4/22/2014 [12:41 AM] | |
* Wrapper class for android Logging utility will select a tag automatically from class, method and line number executed. | |
*/ | |
public class Logger { | |
//TODO Create a detail Enum to define the log detail level. | |
//TODO Create a method that halt every log possible based on the development mode Ex: (PRODUCTION, DEVELOPMENT, DEBUG) that can manage what can be and can't be logged |
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
public class WeakSubscriberDecorator<T> extends Subscriber<T> { | |
private final WeakReference<Subscriber<T>> mWeakSubscriber; | |
public WeakSubscriberDecorator(Subscriber<T> subscriber) { | |
this.mWeakSubscriber = new WeakReference<Subscriber<T>>(subscriber); | |
} |
(Full description and list of commands at - https://npmjs.org/doc/index.html)
##List of less common (however useful) NPM commands
######Prepand ./bin to your $PATH Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
One file for each domain, both www.example.com and example.com need separate files:
{
"applinks": {
"apps": [],
"details": {
"9JA89QQLNQ.com.apple.wwdc": {
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
class SingletonDefaultExportInstance { | |
constructor() { | |
this._type = 'SingletonDefaultExportInstance'; | |
} | |
singletonMethod() { | |
return 'singletonMethod'; | |
} | |
static staticMethod() { |
http lib | connect timeout (ms) | read timeout | write timeout | concurrency |
---|---|---|---|---|
OkHttp, retrofit, picasso |
10,000 | 10,000 | 10,000 | 64 total, 5 per host |
Volley |
2,500 | 2,500 | 2,500 | 4 |
HttpUrlConnection |
up to few minutes | up to few minutes | n/a | 5 |