View build.gradle
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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.13.3' | |
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0' | |
classpath 'org.robolectric:robolectric-gradle-plugin:0.13.0' | |
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4' |
View .travis.yaml
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
language: android | |
jdk: oraclejdk7 | |
before_install: | |
- chmod +x gradlew | |
script: ./gradlew check |
View .gitignore
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
# gimpy mac thingy | |
.DS_Store | |
# IDEA Ignores | |
*.iml | |
*.ipr | |
*.iws | |
.idea/ | |
# Local configuration file (sdk path, etc) |
View gist:f024b3ae415da247e06e
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
language:java type:issue is:public stars:">=20" |
View NSMutableAttributedStringExtension.swift
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 Foundation | |
extension NSMutableAttributedString { | |
public func setAsLink(textToFind:String, linkURL:String) -> Bool { | |
let foundRange = self.mutableString.rangeOfString(textToFind) | |
if foundRange.location != NSNotFound { | |
self.addAttribute(NSLinkAttributeName, value: linkURL, range: foundRange) | |
return true |
View gist:acba2452a67617ee079b
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
# | |
# Copy the database from its standard location to the sd card | |
# | |
adb -d shell "run-as <app.package.name.here> cat /data/data/<app.package.name.here>/databases/<app.database.name.here> /sdcard/<output.filename.here>" | |
# | |
# Pull the database from the sdcard to a specified local filename or the current directory if not | |
# | |
adb pull /sdcard/<remote.filename.here> [<local.filename.here>] |