Skip to content

Instantly share code, notes, and snippets.

@mLautz
mLautz / gist:64a5e98a7ae708e44150
Created April 18, 2015 22:28
Form Authentication on Android via HttpClient
String cookieUrl = "SOME_URL_THAT_WILL_PROVIDE_COOKIE";
String authenticateUrl = "URL_TO_POST_FORM_DATA";
String dataUrl = "AUTHENTICATED_URL_YOU_WANT_DATA_FROM";
final String userNameKey = "FORM_KEY_FOR_USERNAME";
final String userPassKey = "FORM_KEY_FOR_PASSWORD";
final String userName = "USER_NAME";
final String userPass = "USER_PASSWORD";
HttpClient client = new DefaultHttpClient();
@mLautz
mLautz / ClickButton.js
Created February 20, 2013 13:13
A custom button I wrote for Dodge that Keg
ig.module(
'game.entities.clickButton'
)
.requires(
'impact.entity'
)
.defines(function(){
EntityClickButton = ig.Entity.extend({
size: {x: 64, y:64},
@mLautz
mLautz / main.js
Last active December 13, 2015 19:38
Basic Demo for ImpactJS of screen scrolling with arrow keys. Utilizes the map-size plugin to simplify getting the map size.
ig.module(
'game.main'
)
.requires(
'impact.game',
'impact.font',
'plugins.map-size',
'game.levels.scrollDemoLevel'