Instantly share code, notes, and snippets.

View Crash and Burn
Faulting application name: java.exe, version: 7.0.400.43, time stamp: 0x521c3d55
Faulting module name: ntdll.dll, version: 6.2.9200.16579, time stamp: 0x51637f77
Exception code: 0xc0000374
Fault offset: 0x00000000000ebd59
Faulting process id: 0x14c4
Faulting application start time: 0x01ceba3c7c7a19fe
Faulting application path: C:\Program Files\Java\jdk1.7.0_40\jre\bin\java.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: ba6238e6-262f-11e3-beac-78e3b5b94d68
Faulting package full name:
View card_background.xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="#CCC" />
</shape>
</item>
<item android:bottom="2.5dp" android:left="1dp" android:right="1dp" android:top="0.5dp">
<shape android:shape="rectangle">
<solid android:color="#FFF" />
View Update Expression
db.get("Table")
.update("Name = ?, Test = ?, Age = ?", "", 12, 12)
.
=.?\?(.?,)?
=.*?\?(.*?(,|;|.))?
=.*?\?(.*?(,|;|.))?.
View write pom.xml
...
pom {
project {
artifactId = archivesBaseName
groupId = group
version = version
}
}.writeTo('$buildDir/pom.xml')
...
View AndroidAnnoation + Gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.4.1'
}
}
apply plugin: 'android'
View build.gradle
android {
...
applicationVariants.each { variant ->
def apk = variant.outputFile
def name = apk.getName().replace('.apk', versionName + '.apk');
variant.outputFile = new File(apk.parentFile, name);
}
...