This file contains hidden or 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 sbt._ | |
import Keys._ | |
import AndroidKeys._ | |
Android.skipProguard := true | |
// General object adds all modular android settings appropriately | |
object General { | |
val settings = Defaults.defaultSettings ++ Seq ( | |
version := "0.1.0", |
This file contains hidden or 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
// sbt 0.7.x | |
import sbt._ | |
trait Defaults extends BaseAndroidProject { | |
def androidPlatformName = "android-7" | |
// no proguarded needed! | |
override def skipProguard = true | |
} | |
class Parent(info: ProjectInfo) extends ParentProject(info) { |
This file contains hidden or 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
get Android source code: http://source.android.com/source/downloading.html | |
$ cd /path/to/android-src | |
$ cd system/core/libmincrypt/ | |
$ gcc -c *.c -I../include | |
$ ar rcs libmincrypt.a *.o | |
$ cd ../mkbootimg | |
$ gcc mkbootimg.c -o mkbootimg -I../include ../libmincrypt/libmincrypt.a | |
$ cd ../cpio | |
$ gcc mkbootfs.c -o mkbootfs -I../include |
This file contains hidden or 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
#!/usr/bin/perl | |
###################################################################### | |
# | |
# File : split_bootimg.pl | |
# Author(s) : William Enck <[email protected]> | |
# Description : Split appart an Android boot image created | |
# with mkbootimg. The format can be found in | |
# android-src/system/core/mkbootimg/bootimg.h | |
# | |
# Thanks to alansj on xda-developers.com for |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'rexml/document' | |
require 'rexml/xpath' | |
require 'yaml' | |
require 'pp' | |
strings = 'res/values/strings.xml' | |
unused_yaml = 'unused.yaml' |
This file contains hidden or 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 void process(File input) { | |
Intent process = new Intent(Intent.ACTION_SEND); | |
process.setType("audio/wav"); | |
process.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(input)); | |
Bundle config = new Bundle(); | |
config.putFloat("pitchShift", -1.0f); | |
config.putInt("sampleRate", 44100); | |
process.putExtra("autoTalentConfig", config); |
This file contains hidden or 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
~/projects/solrium [master] $ rake build | |
(in /Users/jan/projects/solrium) | |
Successfully built RubyGem | |
Name: solrium | |
Version: 0.1.0 | |
File: solrium-0.1.0.gem | |
~/projects/solrium [master] $ rvm use jruby | |
Using /Users/jan/.rvm/gems/jruby-1.5.6 | |
~/projects/solrium [master] $ gem install pkg/solrium-0.1.0.gem | |
Successfully installed solrium-0.1.0 |
This file contains hidden or 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
$ mvn clean | |
[INFO] Scanning for projects... | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building Unnamed - com.soundcloud:java-api-wrapper:jar:1.0.0-SNAPSHOT | |
[INFO] task-segment: [clean] | |
[INFO] ------------------------------------------------------------------------ | |
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.3/maven-clean-plugin-2.3.pom | |
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.3/maven-clean-plugin-2.3.jar | |
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/file-management/1.2.1/file-management-1.2.1.pom | |
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-shared-io/1.1/maven-shared-io-1.1.pom |
This file contains hidden or 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/sh | |
TROVE_URL=http://sourceforge.net/projects/trove4j/files/trove%20experimental/archived/3.0.0a5/trove-3.0.0a5.tar.gz | |
JTS_URL=http://switch.dl.sourceforge.net/project/jts-topo-suite/jts/1.11/jts-1.11.zip | |
TMPDIR=/tmp/install-osm | |
PLUGINDIR=$HOME/.openstreetmap/osmosis/plugins | |
WGET_OPTS="-c" | |
PLUGIN_TMP="${TMPDIR}/plugin" | |
PLUGIN_JAR=$1 | |
PLUGIN_ALL=`echo $(basename $PLUGIN_JAR) | sed s/.jar$/-all.jar/` |
This file contains hidden or 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
#!/usr/bin/env python | |
import csv | |
import sys | |
import os | |
import subprocess | |
import optparse | |
traces = {} | |
parser = optparse.OptionParser("usage: %prog [options] filename out") |