Skip to content

Instantly share code, notes, and snippets.

View index.html
<html ng-app="ionicApp">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<link href="//code.ionicframework.com/nightly/css/ionic.css" rel="stylesheet">
<script src="//code.ionicframework.com/nightly/js/ionic.bundle.js"></script>
</head>
@shi11
shi11 / gist:2008429
Created Mar 9, 2012
backbone-form help/validation text
View gist:2008429
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="/lib/jquery-ui/flick/jquery-ui-1.8.14.custom.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/src/styles/backbone-forms.css" type="text/css" media="screen" />
<script src="/lib/jquery-1.6.2.min.js"></script>
<script src="/lib/underscore-1.3.1.min.js"></script>
<script src="/lib/backbone-0.9.1.min.js"></script>
@shi11
shi11 / gist:1105883
Created Jul 26, 2011
mapping view interfaces
View gist:1105883
//in context
mediatorMap.mapView( MyView1, MyMediator, IView);
mediatorMap.mapView( MyView2, MyMediator, IView);
//in MyMediator
[Inject]
public var IView;
override public function onRegister() : void {
view.mySignal.add( handleSignal );
@shi11
shi11 / TwitterExample - Using Air HTML rather than Browser
Created Jul 14, 2010 — forked from srohde/TwitterExample.mxml
variation to srohde's example - uses Air.HTML window rather than a browser, and doesn't force the user to manually enter a pin following authentication.
View TwitterExample - Using Air HTML rather than Browser
<?xml version="1.0" encoding="utf-8"?>
<!-- Example app for github.com/srohde/Twitter -->
<s:WindowedApplication height="350" width="765"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
xmlns:twitter="com.soenkerohde.twitter.*"
xmlns:mx1="library://ns.adobe.com/flex/mx"
currentState="initial"
creationComplete="creationCompleteHandler(event)">