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
task wrapper(type: Wrapper) { | |
gradleVersion = '1.3' | |
} | |
buildscript { | |
repositories { | |
mavenCentral() | |
} |
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
package foo; | |
public class Foo { | |
public int test() { return 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
local/acroread 9.5.1-2 | |
local/adobe-air 2.1-1 | |
local/adobe-air-sdk 2.6-2 | |
local/android-udev 1.2-1 | |
local/arduino 1:1.0.1-1 | |
local/aspectj 1.6.12-1 | |
local/cairo-cleartype 1.12.2-1 | |
local/cdm-git 20120605-1 | |
local/coffee-script 1.3.3-1 | |
local/dfu-programmer 0.5.4-1 |
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
package com.hubstep; | |
import android.accounts.*; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.os.Handler; | |
import android.os.Message; | |
import android.util.Log; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.NameValuePair; |
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
package org.scalatest.tools | |
import org.scalatest._ | |
import dalvik.system.DexFile | |
import java.io.File | |
import android.os.{Looper, Bundle} | |
import android.test.{AndroidTestCase, InstrumentationTestCase} | |
import scala.collection.JavaConversions._ | |
import android.app.{Activity, Instrumentation} |
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
package com.hello | |
import java.lang.String | |
import android.net.Uri | |
import com.android.dx.dex.DexOptions | |
import com.android.dx.dex.file.DexFile | |
import dalvik.system.DexClassLoader | |
import java.io.{PrintWriter, FileInputStream, FileOutputStream, File} | |
import com.android.dx.dex.cf.{CfOptions, CfTranslator} |
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/ruby | |
require 'rubygems' | |
require 'git' | |
g = Git.open(".") | |
log = g.log(10000) | |
c = log.collect {|l| l.date.yday} | |
(commit_count = {}).default = 0 | |
c.each {|e| commit_count[e] += 1} |
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
trait AndroidDeviceAction | |
case class Install extends AndroidDeviceAction | |
case class Instrument(options:InstrumentOptions) extends AndroidDeviceAction | |
case class Monkey extends AndroidDeviceAction | |
case class MoneyScript(script:Script) extends AndroidDeviceAction | |
class AndroidDevice extends Actor with IDevice { | |
def receive = { | |
case Install => // install app | |
case Instrument => |
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 java.text.SimpleDateFormat | |
import java.util.Date | |
class RichHumanDate(d:Long) { | |
def toHumanString() = { | |
val sdf = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss.SSS"); | |
val dt = new Date(d); | |
sdf.format(dt); | |
} | |
} |
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 java.text.SimpleDateFormat | |
import java.util.Date | |
class RichHumanDate(d:Long) { | |
def toHumanString() = { | |
val sdf = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss.SSS"); | |
val dt = new Date(d); | |
sdf.format(dt); | |
} | |
} |