This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| description "nodejs server" | |
| author "sagar - http://sagarpanda.com" | |
| # used to be: start on startup | |
| # until we found some mounts weren't ready yet while booting: | |
| start on started mountall | |
| stop on shutdown | |
| # Automatically Respawn: | |
| respawn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # add extra coloum for fullname in sencha touch model | |
| Ext.define('Sencha.model.Employee', { | |
| extend: 'Ext.data.Model', | |
| config: { | |
| fields: [ | |
| {name: 'firstName', type: 'string'}, | |
| {name: 'lastName', type: 'string'}, | |
| { | |
| name: 'fullName', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| flex: | |
| ref: | |
| http://code.tutsplus.com/tutorials/10-css3-properties-you-need-to-be-familiar-with--net-16417 | |
| http://speckyboy.com/2011/04/15/25-css-snippets-for-some-of-the-most-common-and-frustrating-tasks/ | |
| http://speckyboy.com/2012/05/15/20-more-css3-tutorials-and-techniques-for-creating-buttons/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ref: | |
| http://www.youtube.com/watch?v=2BDGBJUtAmo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1"> | |
| <title>Map</title> | |
| <script type="text/javascript" src="http://www.google.com/jsapi"></script> | |
| <script type="text/javascript" src="cordova-2.7.0.js"></script> | |
| <script type="text/javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Cheat Sheet | |
| abc… Letters | |
| 123… Digits | |
| \d any Digit | |
| . any Character | |
| \. Period | |
| [abc] Only a, b, or c | |
| [^abc] Not a, b, nor c | |
| [a-z] Characters a to z | |
| [0-9] Numbers 0 to 9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| camera issue | |
| http://simonmacdonald.blogspot.ca/2012/07/change-to-camera-code-in-phonegap-190.html | |
| outofmemoryerror in phonegap | |
| http://stackoverflow.com/questions/13068764/phonegap-application-crash-taking-portrait-picture | |
| # contextCallback.success() does not work in sencha touch | |
| In Android Native | |
| webView.sendJavascript("gapSuccess('data')"); | |
| In Javascript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Folder Organization | |
| src | |
| app.js | |
| apps | |
| config | |
| entities | |
| components | |
| mixins | |
| base |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Model Fetch | |
| App.models.User = new UserModel(); | |
| App.models.User.fetch({ | |
| data: { | |
| id: 1 | |
| }, | |
| success: (function () { | |
| console.log(' Service request success: '); | |
| }), | |
| error: (function (e) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title>Flexbox Demo</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui"> | |
| <link rel="apple-touch-icon" href="/images/home-icon.png"/> | |
| <meta name="apple-mobile-web-app-capable" content="yes" /> |