This file contains 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 appView = SC.View.create({ templateName: 'cool-guy-template' }).appendTo('body') |
This file contains 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
$ gem install bpm | |
Fetching: libgems-0.0.5.gem (100%) | |
Fetching: gemcutter-0.6.1.gem (100%) | |
======================================================================== | |
Thanks for installing Gemcutter! You can now run: | |
gem push merged into RubyGems 1.3.6 | |
gem owner merged into RubyGems 1.3.6 |
This file contains 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 sys = require("sys"); | |
var Handlebars = require("handlebars"); | |
var SC = { Handlebars : {} }; | |
SC.Handlebars.Compiler = function() {}; | |
SC.Handlebars.Compiler.prototype = Object.create( Handlebars.Compiler.prototype ); | |
SC.Handlebars.Compiler.prototype.compiler = SC.Handlebars.Compiler; | |
SC.Handlebars.JavaScriptCompiler = function() {}; |
This file contains 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" : "Sproutcore Handlebars Precompiler" | |
, "version" : "0.1.0" | |
, "author" : "Alex Sexton <[email protected]>" | |
, "engines" : ["node >=0.4.7"] | |
, "main" : "./lib/main" | |
, "dependencies": { | |
"handlebars": "1.0.x" | |
} | |
} |
This file contains 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
// START Handlebars | |
var Handlebars = { | |
precompile: function(){}, | |
compile : function(){}, | |
template : function(){} | |
}; | |
define( 'Handlebars', [], function(){ | |
return Handlebars; | |
}); |
This file contains 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 $banner = $('#banner'); | |
$('#github_user').focus(function(){ | |
$banner.fadeOut(); | |
}).blur(function(){ | |
$banner.fadeIn(); | |
}); |
This file contains 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
.message { | |
position: fixed; | |
top: 10px; | |
border: 1px solid; | |
margin: 10px 0px; | |
padding: 15px 10px; | |
color: #BD5D83; | |
background-color: whiteSmoke; | |
width: 960px; | |
font-size: 18px; |
This file contains 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
/** | |
* @license handlebars tmpl 0.1.0 - Alex Sexton, but Handlebars has it's own licensing junk | |
* | |
* Available via the MIT or new BSD license. | |
* see: http://github.com/jrburke/require-cs for details on the plugin this was based off of | |
*/ | |
/* Yes, deliciously evil. */ | |
/*jslint evil: true, strict: false, plusplus: false, regexp: false */ | |
/*global require: false, XMLHttpRequest: false, ActiveXObject: false, |
This file contains 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 (window, undefined) { | |
var MRTN = (function() { | |
// The main FeedTheWebDev function | |
var MRTN = function(element) { | |
return new MRTN.fn.init(element, rootDoc); | |
}, | |
// Ref to root document | |
rootDoc; |
This file contains 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() | |
{ | |
function getScriptUrl(re) | |
{ | |
var scripts = document.getElementsByTagName('script'), | |
element, | |
src; | |
for (var i = 0; i < scripts.length; i++) | |
{ | |
element = scripts[i]; |