Skip to content

Instantly share code, notes, and snippets.

@learningjs
learningjs / index.html
Created December 4, 2013 22:26
Slightly modified version of the provided demo : just added the angularjs script and a basic binding via a model input text . This is noticeably slow on my test device ( Samsung Note 2 )
<!DOCTYPE html>
<html ng-app>
<head>
<title>Hello, Mobile!</title>
<link rel="stylesheet" href="index.css" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular.js"></script>
</head>
<body>
<div>
<input type="text" ng-model="name" placeholder="Mobile">
void setup() {
size(500, 500);
noFill();
strokeWeight(3);
strokeJoin(BEVEL);
}
float th1, th2, r, x, y, t;
int N = 16;
/* passable motion blur effect using frame blending
* basically move your 'draw()' into 'sample()', time runs from 0 to 1
* by dave
* http://beesandbombs.tumblr.com
*/
int samplesPerFrame = 32; // more is better but slower. 32 is enough probably
int numFrames = 48;
float shutterAngle = 2.0; // this should be between 0 and 1 realistically. exaggerated for effect here
int[][] result;
@learningjs
learningjs / forge blog mispelling
Created July 18, 2012 01:36
forge blog mispelling
http://trigger.io/cross-platform-application-development-blog/2012/04/30/how-to-build-hybrid-mobile-apps-combining-native-ui-components-with-html5/
Replace your existing src/config.json with this:
...
<strong>"topbar": true</strong>
...
http://trigger.io/cross-platform-application-development-blog/2012/03/02/how-to-build-fast-html5-mobile-apps-using-backbone-js-zepto-js-and-trigger-io/
@learningjs
learningjs / forge run web error - console
Created July 18, 2012 01:22
forge run web error - console
forge run web
[ INFO] Forge tools running at version 3.3.5
[ INFO] Checking JavaScript files...
[ INFO] JavaScript check complete
[ INFO] Verifying your configuration settings...
[ INFO] Configuration settings check complete
[ ERROR] Something went wrong that we didn't expect:
[ ERROR] Failed when running npm: npm http GET https://registry.npmjs.org/express/2.5.0
npm http 200 https://registry.npmjs.org/express/2.5.0
npm http GET https://registry.npmjs.org/express/-/express-2.5.0.tgz