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/python | |
import random | |
print ("A Simple find the number game.") | |
score_table = {} | |
def get_high_scores(): | |
high_score = 0 | |
high_score_holder = None |
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 lambdaCalculator; | |
/** | |
* | |
* @author @ectomorph | |
*/ | |
public class LambdaCalculator { | |
// In-class defined interface | |
@FunctionalInterface |
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.util.*; | |
public interface Input { | |
public class KeyEvent { | |
public static final int KEY_DOWN = 0; | |
public static final int KEY_UP = 1; | |
public int type; | |
public int keyCode; | |
public char keyChar; |
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
// Using an Enum as a Singleton | |
// | |
public enum TestDAO { | |
// Our one and only instance | |
instance; | |
private DataSource dataSource = new DataSource(); | |
// private constructor to prevent any instantiations |
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 net.tomlins.testapplication.json; | |
import com.google.gson.*; | |
public class JavaObjToGSONStringExample { | |
public static void main(String... args) { | |
JavaObjToGSONStringExample app = new JavaObjToGSONStringExample(); | |
System.out.println(app.toGSONStringExample()); |
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 net.tomlins.testapplication.json; | |
import android.util.Log; | |
import org.apache.http.HttpEntity; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.client.HttpClient; | |
import org.apache.http.client.methods.HttpPost; | |
import org.apache.http.impl.client.DefaultHttpClient; | |
import org.apache.http.params.BasicHttpParams; |