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 _loadTheme = function (themeName) { | |
var directory = new NativeFileSystem.DirectoryEntry(themeName); | |
//TODO : need util API for combining paths | |
var themePath = THEME_DIRECTORY + themeName; | |
NativeFileSystem.requestNativeFileSystem( | |
themePath, | |
function (directoryEntry) { |
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
/* | |
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a | |
* copy of this software and associated documentation files (the "Software"), | |
* to deal in the Software without restriction, including without limitation | |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
* and/or sell copies of the Software, and to permit persons to whom the | |
* Software is furnished to do so, subject to the following conditions: | |
* |
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
/* | |
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a | |
* copy of this software and associated documentation files (the "Software"), | |
* to deal in the Software without restriction, including without limitation | |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
* and/or sell copies of the Software, and to permit persons to whom the | |
* Software is furnished to do so, subject to the following conditions: | |
* |
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
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"glossary" ofType:@"json"]; | |
NSData *data = [NSData dataWithContentsOfFile:filePath]; | |
NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil]; | |
NSMutableArray *entries = [json objectForKey:@"entries"]; |
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
[ | |
{ | |
"name":"Ball of Cookie Dough", | |
"level":"50", | |
"ingredients":[ | |
{ | |
"name":"Stick of Butter", | |
"amount":"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
<div class="toolbar simple-toolbar-layout"> | |
<div class="title">{{JSLINT_ERRORS}}</div> | |
</div> | |
<div class="table-container"> | |
<table class="zebra-striped condensed-table" id="jslint-error-tab"> | |
<tbody> | |
{{#each errors}} | |
<tr class="lint-error-row" data-index="{{this.index}}"> | |
<td>{{this.error.line}}</td> |
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 thickness; | |
var strokeColor; | |
var text = new PointText(new Point(300, 200)); | |
text.content = "Click and Drag to Draw"; | |
text.characterStyle = { | |
fontSize:36, | |
fillColor:"#777777",//new RgbColor(119,119,119); | |
font:"Arial" | |
}; |
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 stage; | |
var isMouseDown; | |
var currentShape; | |
var oldMidX, oldMidY, oldX, oldY; | |
var txt; | |
function init() { | |
txt = new createjs.Text("Click and Drag to Draw", "36px Arial", "#777777"); | |
txt.x = 300; | |
txt.y = 200; |
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 async = require("async"); | |
var child_process = require("child_process"); | |
var config = {}; | |
config.PROCESS_TIMEOUT = 10000; | |
//these need to return functions to be executed. | |
var processExecuter = function(processName, args, callback) { | |
var cmd = child_process.execFile( | |
processName, |