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
| # ----------------------------------------------------------------------------- | |
| # UTILS | |
| # ----------------------------------------------------------------------------- | |
| convertBase64ToBinary = (base64) -> | |
| raw = window.atob base64 | |
| rawLength = raw.length | |
| array = new Uint8Array(new ArrayBuffer(rawLength)) | |
| i = 0 | |
| while i < rawLength |
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
| define [ | |
| 'modules/main/views/general-view' | |
| 'app.framework' | |
| 'communication-bus' | |
| ], (GeneralView, Framework, Bus) -> | |
| # ---------------------------------------------------------------------------- | |
| # Class definition | |
| # ---------------------------------------------------------------------------- | |
| class ShowController extends Framework.Controller |
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
| initramfs initramfs.gz 0x00a00000 | |
| arm_freq=840 | |
| core_freq=375 | |
| gpu_mem_256=128 | |
| gpu_mem_512=128 | |
| sdram_freq=400 | |
| over_voltage=0 | |
| hdmi_force_hotplug=1 | |
| disable_overscan=1 |
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
| [credential] | |
| helper = osxkeychain | |
| [core] | |
| editor = mvim -vf | |
| excludesfile = ~/.gitignore | |
| pager = less -x2 | |
| [alias] | |
| st = status -sb | |
| ci = commit -m | |
| am = commit --amend -C HEAD |
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
| define [ | |
| 'backbone' | |
| 'framework/entities/entities' | |
| ], (Backbone) -> | |
| beforeEach -> | |
| # Start the sandbox, telling it to use a fake server | |
| @sandbox = sinon.sandbox.create() | |
| @sandbox.useFakeServer() |
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
| define(['backbone','modules/todo/models/todo', 'backbone.localstorage'],function(Backbone, Todo) { | |
| var isCompleted = function(todo) { | |
| return todo.get('done'); | |
| }; | |
| var Collection = Backbone.Collection.extend({ | |
| model: Todo, | |
| localStorage: new Backbone.LocalStorage('todosmvc:todos'), | |
| comparator: function(todo) { |
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
| // OPTION 1 | |
| // Each module has their own "commands", "reqres" and "vent" objects, | |
| // instancing new Wreqr objects for each one | |
| define(['backbone.wreqr'], function(Wreqr) { | |
| var SampleModule = { | |
| commands : new Wreqr.Commands(), | |
| reqres : new Wreqr.RequestResponse(), | |
| vent : new Wreqr.EventAggregator() | |
| }; | |
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
| if (Ti.Platform.osname.match(/android/g)){ | |
| Ti.Gesture.addEventListener('orientationchange', function(e) { | |
| Ti.Android.currentActivity.setRequestedOrientation(Ti.Android.SCREEN_ORIENTATION_PORTRAIT); | |
| }); | |
| } |
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
| var LoadingIndicator = require('utils/ui/LoadingIndicator'); | |
| var win = Ti.UI.createWindow(); | |
| var loadingIndicator = new LoadingIndicator(); | |
| win.add(loadingIndicator); | |
| loadingIndicator.show({message: 'Loading...'}); | |
| // TODO - Access to DB - Here I use timeout for demo purpose |
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
| (function() { | |
| /* =DEPENDENCIES | |
| --------------------------------------------------------------------------- */ | |
| var _ = require('utils/common/underscore')._; | |
| /* =CONSTRUCTOR | |
| --------------------------------------------------------------------------- */ | |
| var CSS = { | |
| /* |