- basic build.gradle directory using flatDir
repositories {
mavenCentral()
flatDir {
dirs 'libs'
#!/usr/bin/env sh | |
# | |
# Remove from local and remotes the branches inside | |
# BRANCHES array | |
# | |
BRANCHES=( | |
branch_1 | |
feature/branch_2 | |
feature/other_thing |
import android.annotation.TargetApi; | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.drawable.Drawable; | |
import android.os.Build; | |
import android.support.annotation.Nullable; | |
import android.support.v4.view.ViewCompat; | |
import android.support.v7.widget.AppCompatDrawableManager; | |
import android.support.v7.widget.AppCompatTextView; | |
import android.util.AttributeSet; |
<?xml version="1.0" encoding="utf-8"?> | |
<!-- This file should be outside of release manifest (in this case app/src/mock/Manifest.xml --> | |
<manifest | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.tests"> | |
<!-- For espresso testing purposes, this is removed in live builds, but not in dev builds --> | |
<uses-permission android:name="android.permission.SET_ANIMATION_SCALE" /> | |
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" /> | |
<uses-permission android:name="android.permission.WAKE_LOCK" /> |
#!/usr/bin/python | |
# License for any modification to the original (linked below): | |
# ---------------------------------------------------------------------------- | |
# "THE BEER-WARE LICENSE" (Revision 42): | |
# Sebastiano Poggi and Daniele Conti wrote this file. As long as you retain | |
# this notice you can do whatever you want with this stuff. If we meet some day, | |
# and you think this stuff is worth it, you can buy us a beer in return. | |
import argparse, sys, subprocess, tempfile |
let rx_request = Observable<Value>.create { (observer) -> Disposable in | |
let requestReference = Alamofire.request(.POST, url, parameters: payload) | |
.responseJSON(completionHandler: { (response) in | |
if let value = response.result.value { | |
observer.onNext(value) | |
observer.onCompleted() | |
}else if let error = response.result.error { | |
observer.onError(error) | |
} | |
}) |
extension UIApplication { | |
class func appVersion() -> String { | |
return Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as! String | |
} | |
class func appBuild() -> String { | |
return Bundle.main.object(forInfoDictionaryKey: kCFBundleVersionKey as String) as! String | |
} |
First up, let's make Sublime Text 2 available from the command line in terminal, by creating a link to subl
which is the launcher from terminal:
ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime
(added bonus of this approach is when you upgrade to ST3 or change text editor, you can just redirect the symlink).
If there's any chance that bash
doesn't check usr/local/bin
then use [Launch Sublime Text 2 from Mac OSX Terminal] for more detailed instructions on how to make this happen.
import android.app.Activity; | |
import android.app.Application; | |
import android.os.Bundle; | |
import com.google.android.gms.maps.MapView; | |
import com.google.android.gms.maps.MapsInitializer; | |
import static java.lang.String.format; | |
public class MapsUtils { |