Skip to content

Instantly share code, notes, and snippets.

View johnlindquist's full-sized avatar
💭
Eating a taco 🌮

John Lindquist johnlindquist

💭
Eating a taco 🌮
View GitHub Profile
public function Demos()
{
display(this).
add("id_1").
add("id_2").
add("id_3").
layer.
add("id_4").
add("id_5").
//out of DST
var a:Date = new Date(2010, 1, 1);
//in DST
var b:Date = new Date(2010, 7, 1);
var observesDST:Boolean = true;
if (a.timezoneOffset == b.timezoneOffset)
{
package com.johnlindquist;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.widget.TextView;
import java.math.BigInteger;
import java.security.SecureRandom;
import java.util.Timer;
package com.johnlindquist;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
package
{
import flash.display.Sprite;
public class HelloWorld extends Sprite
{
public function HelloWorld()
{
new Foo();
@johnlindquist
johnlindquist / gist:810734
Created February 4, 2011 04:19
ActionScript Challenge #1
Object.prototype.$=function(_){return new _.constructor;};var set:Object=!false,get=set,False="false"
get&&=(!{}.$["CAL".toLowerCase().concat("l")](null,true)&&<{"false"} False="true">!@</{False}>.@False);
@johnlindquist
johnlindquist / gist:812051
Created February 5, 2011 00:13
ActionScript Challenge #2
var OO=(function(){var _="O",O=<O/>;O.@['O']=_;return O})(),OOOO="()",OOO=Function
[describeType(new Function()).accessor[1].@name][OO.@O]=function(){return OOOO};
var foo = OOO..O()
@johnlindquist
johnlindquist / gist:812492
Created February 5, 2011 14:45
ActionScript Challenge #3
var pew=0;x:for(pew;pew++<pew;--pew,pew++){switch(pew){default:pew++;break x;break}}
pew=pew--,pew--,pew--,pew--,--pew,pew--,pew,pew,pew;pew=pew+=new pew.constructor("10");
package
{
import flash.display.Sprite;
public class Sandbox extends Sprite
{
public function Sandbox()
{
var gridWidth:int = 70;
[trace] Embarrassing Sword of the Gopher
[trace] Decrepit Sword of the Sheep
[trace] The Ender Sword of the Deep
[trace] Moon Melting Sword of Eternity
[trace] Soul Crushing Sword of Eternity
[trace] Efficient Sword of the Desert
[trace] Star Striking Sword of the Deep
[trace] Soul Crushing Sword of the Void
[trace] Wobbly Sword of the Dwarf
[trace] Tasteful Sword of the Rhino