Skip to content

Instantly share code, notes, and snippets.

View jschilli's full-sized avatar

Jeff Schilling jschilli

View GitHub Profile
@jschilli
jschilli / gist:1140184
Created August 11, 2011 17:00
bpm init failure
schilling-mbpro-3:tmp jschilli $ bpm init myapp2
create lib
create LICENSE
create README.md
create index.html
create lib/main.js
create css/main.css
create myapp2.json
Building static assets...
~ Using fetched package 'spade' (1.0.0.5)
@jschilli
jschilli / gist:1154252
Created August 18, 2011 15:07
collection view - separate handlebar templates for sc2
<script type="text/x-handlebars" data-template-name="checklist-row-view">
<!-- Setup an overall div to capture the current status (updated, current, etc) -->
<div {{bindAttr class="content.status Simplifi.STYLES.checkListRow content.contentIndex"}}>
<div class="name">
{{content.itemTypeAsString}}
</div>
<div class="status">
<div class="status-icon"></div>
</div>
<div class="updated">
@jschilli
jschilli / gist:1163349
Created August 22, 2011 19:54
NavigationController stuff
<!-- HTML Snippet showing navigationView - renders navigation view content -->
<div id="nav" class="row">
<div class="col_12">
<div class="primary-nav">
{{#collection navigationView contentBinding="MyApp.Navigation.MainController" tagName="ul" itemClassBinding="content.isActive }}
{{content.title }}
{{/collection}}
</div>
</div>
@jschilli
jschilli / gist:1171448
Created August 25, 2011 18:46
bpm rebuild vs preview
schilling-mbpro-3:myapp jschilli $ bpm rebuild
Building static assets...
~ Using fetched package 'handlebars' (1.0.0.beta.2)
~ Using fetched package 'jquery' (1.6.2)
~ Using fetched package 'spade' (1.0.0.5)
~ Using fetched package 'sproutcore' (2.0.beta.3)
~ Using fetched package 'sproutcore-handlebars' (2.0.beta.3)
~ Using fetched package 'sproutcore-handlebars-format' (2.0.beta.3)
~ Using fetched package 'sproutcore-metal' (2.0.beta.3)
~ Using fetched package 'sproutcore-runtime' (2.0.beta.3)
spade.register("sproutcore/main", function(require, exports, __module, ARGV, ENV, __filename){
// ==========================================================================
// Project: SproutCore
// Copyright: ©2011 Strobe Inc. and contributors.
// License: Licensed under MIT license (see license.js)
// ==========================================================================
require('sproutcore-metal');
require('sproutcore-views');
require('sproutcore-handlebars');
@jschilli
jschilli / gist:1205228
Created September 9, 2011 01:01
bpm error on windows
C:/Users/Jeff/AppData/Local/Temp/execjs20110908-4612-eywkxz.js(6,5) : error JS1135: Variable 'result' has not been declared
C:/Users/Jeff/AppData/Local/Temp/execjs20110908-4612-eywkxz.js(11,15) : error JS1135: Variable 'JSON' has not been declared
(in C:/Users/Jeff/.bpm/gems/uglify-js-1.0.7/lib/parse-js.js)
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/execjs-1.2.4/lib/execjs/external_runtime.rb:25:in `block in exec'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/execjs-1.2.4/lib/execjs/external_runtime.rb:38:in `compile_to_tempfile'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/execjs-1.2.4/lib/execjs/external_runtime.rb:24:in `exec'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/execjs-1.2.4/lib/execjs/external_runtime.rb:17:in `eval'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bpm-1.0.0.rc.1/lib/bpm/pipeline/plugin_processor.rb:61:in `evaluate'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/tilt-1.3.3/lib/tilt/template.rb:76:in `render'
@jschilli
jschilli / gist:1205331
Created September 9, 2011 02:13
bpm error on os x
schilling-mbpro-3:SCSite jschilli $ bundle exec bpm rebuild
Fetching packages from remote...
~ Fetched spade (1.0.1) from remote
~ Fetched sproutcore-metal (2.0.beta.3) from remote
~ Fetched sproutcore-runtime (2.0.beta.3) from remote
~ Fetched sproutcore-datetime (2.0.beta.3) from remote
~ Fetched sproutcore-indexset (2.0.beta.3) from remote
~ Fetched sproutcore-datastore (2.0.beta.3) from remote
~ Fetched qunit (1.0.0) from remote
~ Fetched spade-qunit (1.0.1) from remote
@jschilli
jschilli / gist:1206225
Created September 9, 2011 13:35
windows bpm failure with source code
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bpm-1.0.0.rc.1/lib/bpm/libgems_ext/config_file.rb:9: warning: already initialized constant CSIDL_COMMON_APPDATA
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bpm-1.0.0.rc.1/lib/bpm/libgems_ext/config_file.rb:12: warning: already initialized constant SHGetFolderPath
(function(program, execJS) { execJS(program) })(function() {
return eval("(function(){ // vim:set ts=4 sts=4 sw=4 st:\n// -- kriskowal Kris Kowal Copyright (C) 2009-2010 MIT License\n// -- tlrobinson Tom Robinson Copyright (C) 2009-2010 MIT License (Narwhal Project)\n// -- dantman Daniel Friesen Copyright(C) 2010 XXX No License Specified\n// -- fschaefer Florian Sch\\u00e4fer Copyright (C) 2010 MIT License\n// -- Irakli Gozalishvili Copyright (C) 2010 MIT License\n// -- kitcambridge Kit Cambridge Copyright (C) 2011 MIT License\n\n/*!\n Copyright (c) 2009, 280 North Inc. http://280north.com/\n MIT License. http://github.com/280north/narwhal/blob/master/README.md\n*/\n\n(function (definition) {\n // RequireJS\n
@jschilli
jschilli / gist:1206631
Created September 9, 2011 16:11
jscript version
// ERROR CODES
var ERR_OK = 0;
var exit_code = ERR_OK;
// EXECUTION
WScript.Echo(!this.JSON?"NO JSON":"JSON");
@jschilli
jschilli / test.js
Created September 9, 2011 16:52
output from bpm failure
(function(program, execJS) { execJS(program) })(function() {
return eval("(function(){ // vim:set ts=4 sts=4 sw=4 st:\n// -- kriskowal Kris Kowal Copyright (C) 2009-2010 MIT License\n// -- tlrobinson Tom Robinson Copyright (C) 2009-2010 MIT License (Narwhal Project)\n// -- dantman Daniel Friesen Copyright(C) 2010 XXX No License Specified\n// -- fschaefer Florian Sch\\u00e4fer Copyright (C) 2010 MIT License\n// -- Irakli Gozalishvili Copyright (C) 2010 MIT License\n// -- kitcambridge Kit Cambridge Copyright (C) 2011 MIT License\n\n/*!\n Copyright (c) 2009, 280 North Inc. http://280north.com/\n MIT License. http://github.com/280north/narwhal/blob/master/README.md\n*/\n\n(function (definition) {\n // RequireJS\n if (typeof define == \"function\") {\n define(function () {\n definition();\n });\n // CommonJS and <script>\n } else {\n definition();\n }\n\n})(function (undefined) {\n\n/**\n * Brings an environment as close to ECMAScript 5 compliance\n * as is po