This should stike through
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 nodewatch() { | |
find . | grep coffee$ | xargs coffee -cwl & | |
if [ $1 ] | |
then | |
nodemon $1.js & | |
else | |
nodemon app.js & | |
fi | |
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 MAIN_WINDOW [[CPWindow alloc] \ | |
initWithContentRect:CGRectMakeZero() \ | |
styleMask:CPBorderlessBridgeWindowMask] | |
#define ORDER_FRONT(arg,del) [arg orderFront:del] | |
#define ALLOC_ORDER_FRONT(klass,del) [[[klass alloc] init] orderFront:del] | |
#define SUBVIEW(to,from) [to addSubview:from] | |
#define VIEW_ZERO(klass) [[klass alloc] initWithFrame:CGRectMakeZero()]; | |
#define FULL_MASK(view) [view setAutoresizingMask: CPViewMinXMargin | \ |
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
-- http://lua-users.org/lists/lua-l/2002-04/msg00180.html | |
require 'socket' | |
local header = | |
[[HTTP/1.1 200 OK | |
Date: Fri, 19 Apr 2002 20:37:57 GMT | |
Server: Apache/1.3.23 (Darwin) mod_ssl/2.8.7 OpenSSL/0.9.6b | |
Cache-Control: max-age=60 | |
Expires: Fri, 19 Apr 2002 20:38:57 GMT |
#BuildFile Additions
Add the following line to the top of your Buildfile
config :all, :url_prefix => "/Tasks/static"
#Building and deploying
- Create a directory outside of the Tasks root directory named "tasks-builds"
- Change into the Tasks root directory and issue
sc-build -rc tasks --build=build
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
/* | |
sproutcore/frameworks/datastore/data_sources/data_source.js | |
Starting at line #106 | |
*/ | |
/** | |
Passing an optional params argument to allow callbacks in Record.refresh(); |
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
task :add_other_combined do | |
if MANIFEST.target[:target_name] =~ /\/myapp/i | |
tmp_entries = [] | |
tmp_entries.push MANIFEST.entry_for('someframework:javascript.js') | |
tmp_entries.push MANIFEST.entry_for('anotherframework:javascript.js') | |
tmp_entries.each { |e| | |
e.clean! | |
} | |
MANIFEST.add_composite 'all_the_stuffs.js', | |
:source_entries => tmp_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
/*globals global*/ | |
global.DEBUG = false; | |
var smartdown = require("smartdown"), fs = require("core_support:fs"), | |
spawn = require("spawn"), sys = require("sys"), | |
Path = require("core_support:path"); | |
var fixPath = function(opts) { | |
if (global.DEBUG) sys.puts("Entered fixPath:"); | |
var outputDirectory = opts.output; | |
if (outputDirectory[outputDirectory.length - 1] !== "/") outputDirectory += "/"; |
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
objectA = SC.Object.create({ | |
calledLocalObserver: false, | |
calledGlobalObserver: false, | |
calledMixedObserver: false, | |
locallyObservedProperty: 'beingWatched', | |
testLocalObserver: function() { | |
this.calledLocalObserver = true; | |
}.observes('locallyObservedProperty'), |
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
task 'build', 'build all of the source files', -> | |
sourceFiles: ['test.coffee'] | |
fs: require('fs'); sys: require('sys'); | |
seed: require('seed'); coffee: seed.require('coffee-script'); | |
for src in sourceFiles | |
fs.readFile src, (err, code) -> | |
compiled: coffee.compile code | |
fs.writeFile src.replace(/\.coffee/,'.js'), compiled, "utf8", (err) -> | |
throw err if err | |
puts "Compiled $src -> ${src.replace(/\.coffee/,'.js')}." |