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
apply plugin: "java" | |
apply plugin: "eclipse" | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
compile ( | |
"org.jboss.netty:netty:latest.integration", |
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
#!/usr/bin/env bash | |
# Formatting constants | |
export BOLD=`tput bold` | |
export UNDERLINE_ON=`tput smul` | |
export UNDERLINE_OFF=`tput rmul` | |
export TEXT_BLACK=`tput setaf 0` | |
export TEXT_RED=`tput setaf 1` | |
export TEXT_GREEN=`tput setaf 2` | |
export TEXT_YELLOW=`tput setaf 3` |
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 scala.util.DynamicVariable | |
/** | |
* A concise JSON DSL in Scala. | |
* When you want to use, only | |
* import Jsson._ is needed. | |
* Note that this program change the semantics of standard -> operator. | |
* I recommend that you use enclosing block with Jsson as followings: | |
* { | |
* import Jsson._ | |
* val obj = %{ |
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
def json(foo:String, bar:String) = | |
f"""{ | |
| "commands" : [{ | |
| "type" : "set_user_data", | |
| "user_data" : { | |
| "foo" : $foo%s, | |
| "bar" : $bar%s | |
| } | |
| }] |
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
#!/usr/bin/env bash | |
# Formatting constants | |
BOLD=`tput bold` | |
UNDERLINE_ON=`tput smul` | |
UNDERLINE_OFF=`tput rmul` | |
TEXT_BLACK=`tput setaf 0` | |
TEXT_RED=`tput setaf 1` | |
TEXT_GREEN=`tput setaf 2` | |
TEXT_YELLOW=`tput setaf 3` |
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
package com.myapp.whatever; | |
import org.junit.runners.model.InitializationError; | |
import org.robolectric.AndroidManifest; | |
import org.robolectric.RobolectricTestRunner; | |
import org.robolectric.res.FsFile; | |
import com.myapp.R; | |
public class AndroidTestRunner extends RobolectricTestRunner { | |
public AndroidTestRunner(Class<?> testClass) throws InitializationError { |
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 org.junit.Test; | |
import org.squirrelframework.foundation.fsm.*; | |
import org.squirrelframework.foundation.fsm.impl.AbstractStateMachine; | |
import java.util.*; | |
public class ParallelFSMTest { | |
@Test | |
public void parallelStatesTest() { |
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
#!/bin/sh | |
# gclient can be found here: | |
# git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
# don't forget modify .bashrc: | |
# export PATH="$PATH":`pwd`/depot_tools | |
function fetch() { | |
echo "-- fetching webrtc" |
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 scala.concurrent.duration.FiniteDuration | |
/** | |
* The email message sent to Actors in charge of delivering email | |
* | |
* @param subject the email subject | |
* @param recipient the recipient | |
* @param from the sender | |
* @param text alternative simple text | |
* @param html html body |
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
#=============================================================================== | |
# Filename: boost.sh | |
# Author: Pete Goodliffe | |
# Copyright: (c) Copyright 2009 Pete Goodliffe | |
# Licence: Please feel free to use this, with attribution | |
# Modified version | |
#=============================================================================== | |
# | |
# Builds a Boost framework for the iPhone. | |
# Creates a set of universal libraries that can be used on an iPhone and in the |
OlderNewer