Skip to content

Instantly share code, notes, and snippets.

View rvega's full-sized avatar

Rafael Vega rvega

  • Medellín, Colombia
View GitHub Profile
[rafaelvega@arch-rafa ember-runner]$ ember-runner preview
[task:checkConfig] Started
[task:configure] Started
[task:clean] Started
[vendors] Started
[apps] Started
[task:checkPackages] Started
[task:walk] Started
[build] Started
[Build] Package: handlebars
@rvega
rvega / gist:1612489
Created January 14, 2012 18:50
ember-runner preview
[rafaelvega@arch-rafa ember-runner]$ ember-runner preview
[task:checkConfig] Started
[task:configure] Started
[task:clean] Started
[vendors] Started
[apps] Started
[task:checkPackages] Started
[task:walk] Started
[build] Started
[Build] Package: jquery-1.6.2.js
@rvega
rvega / gist:1608930
Created January 13, 2012 22:00
Assetfile
require "rake-pipeline-web-filters"
require "rake-pipeline-web-filters/helpers"
input "app"
output "compiled"
# Concatenate all js classes in one big file
match "js/{models,controllers}/**/*.js" do
concat "app.js"
end
/**
* Get list of resources
*/
fetch: function(store, query) {
store.loadQueryResults(query, SC.SparseArray.create({delegate: this, store: store, query: query, rangeWindowSize:20}));
return YES;
},
sparseArrayDidRequestLength: function(sparseArray) {
this.sparseArrayDidRequestRange(sparseArray, { start: 0, length: 20 });
response: function(){
var data = this.State.Response.data.responseText;
if(typeof(data) != 'undefined'){ // TODO: This is a temporary fix, see http://getsatisfaction.com/balupton/topics/back_button_triggers_an_ajax_request_thet_should_not_happen
var fb_params = {content: data}
$.extend(true,fb_params,ajax_deeplinks.fancybox_options);
$.fancybox(fb_params);
$('#fancybox-content a.ajax').ajaxify();
}
else{
$.fancybox.close();