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
<target name="package-for-iPhone" depends="build-iPhone"> <!--Build your .swf before packinging for iPhone-->
<exec executable="${IPHONE_PACKAGER}"> <!--Path to ADT-->
<arg line="-package -target '${TARGET}'" /> <!--e.g. ipa-ad-hoc-->
<arg line="-provisioning-profile '${MOBILE_PROVISION}'" />
<arg line="-storetype pkcs12" />
<arg line="-keystore '${CERT}'" />
<arg line="-storepass '${CERT_PASSWORD}'" />
<arg line="'${APP_NAME}.ipa'" />
<arg line="'${IPAD_DESCRIPTOR}'" />
<arg line="'${DEPLOY_DIR}/${APP_NAME}.swf'" />
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/2.6">
<id>com.johnlindquist.ipad</id>
<filename>MyApp</filename>
<name>MyApp</name>
<versionNumber>1</versionNumber>
<initialWindow>
<renderMode>gpu</renderMode>
<content>deploy/MyApp.swf</content>
<fullScreen>true</fullScreen>
elseif event.phase == "ended" and ghostObject.isReady then
-- Finger lifted from screen; fling the Roly Poly!
local flingNow = function()
-- handle the shot orb and disable screen swiping
transition.cancel( ghostTween )
shotOrb.isVisible = false
shotArrow.isVisible = false
canSwipe = false
//SomeCommand
[Inject]
public var mediatorMap:IMediatorMap;
[Inject]
public var injector:IInjector;
[Inject]
public var view:View; From Event/Signal/Whatever
@johnlindquist
johnlindquist / ActionScriptChallenge4.as
Created June 4, 2011 01:15
ActionScript Challenge #4
namespace a=public ;var d=32,c=a,b=c::String,s:*=b["FROM".toLowerCase()+
"Chart".slice(0, 4)+"Code"]((c|=d)+40,c+41)
<?xml version="1.0"?>
<s:Image xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
<s:initialize><![CDATA[
addEventListener(DragGestureEvent.GESTURE_DRAG, gestureDragHandler);
dragGesture = DragGesture.add(this, {maxTouchPointsCount: 1});
addEventListener(ZoomGestureEvent.GESTURE_ZOOM, gestureZoomHandler);
zoomGesture = ZoomGesture.add(this);
]]></s:initialize>
@johnlindquist
johnlindquist / CoronaLauncher.vbs
Created August 8, 2011 22:49
A script to launch or focus and refresh the Corona Simulator
Set WshShell = WScript.CreateObject ("WScript.Shell")
Set colProcessList = GetObject("Winmgmts:").ExecQuery ("Select * from Win32_Process")
'Check if Corona is already running
For Each objProcess in colProcessList
If objProcess.name = "Corona Simulator.exe" then
vFound = True
End if
Next
If vFound = True then
<!doctype html>
<html ng-app>
<head>
<script src="http://code.angularjs.org/angular-1.0.0rc4.min.js"></script>
<script src="todo.js"></script>
<link rel="stylesheet" href="todo.css">
</head>
<body>
<h2>Todo</h2>
<div ng-controller="TodoCtrl">
package org.angularjs;
import com.intellij.CommonBundle;
import com.intellij.codeInspection.InspectionProfile;
import com.intellij.codeInspection.ModifiableModel;
import com.intellij.codeInspection.ex.LocalInspectionToolWrapper;
import com.intellij.codeInspection.htmlInspections.HtmlUnknownAttributeInspection;
import com.intellij.openapi.components.AbstractProjectComponent;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.Messages;
@johnlindquist
johnlindquist / gist:2503092
Created April 26, 2012 20:53
angular bug
<!doctype html>
<html ng-app="jl">
<head>
<title></title>
<script type="text/javascript" src="lib/angular-1.0.0rc6.js"></script>
<script type="text/javascript">
angular.module('jl', [])
.directive('jlMyComponent', function () {
return {
restrict: 'E',