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
<body data-module="blogs" data-action="index"></body> |
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
new BigBird.Initializer({ | |
base: $('.my-awesome-base-element'), | |
module: 'data-foo', | |
action: 'data-bar' | |
}); |
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 ControllerExample = BigBird.Controller.extend({ | |
// This function gets $.proxy(ied) for you automatically. | |
// That means you can call it without it losing lexical scope | |
proxied: ["myFunction"], | |
// We can subscribe to new events through the subscriptions | |
// shorthand. If $.publish("/updateVariable") gets called, then | |
// the myFunction method is invoked. | |
subscriptions: { |
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 View = BigBird.View.extend({ | |
myVariable: false, | |
// Exactly like the controller | |
subscriptions: { | |
"/foo": "bar" | |
}, | |
/* |
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
$.publish("/method", args); | |
$.subscribe("/method", function(){ | |
// Executed on call of publish to /method | |
}); | |
$.unsubscribe("/method"); // Stop listening |
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
SirTrevor.setBlockOptions("Embedly", { | |
key: "12345" | |
}); |
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
# Upload gems | |
gem "carrierwave" | |
gem "mini_magick", "~> 3.3" | |
gem "fog", "~> 1.3.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
SirTrevor.Blocks.Upload = (function(){ | |
return SirTrevor.Block.extend({ | |
droppable: true, | |
uploadable: true, | |
type: "Upload", | |
uploadUrl: function() { |
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 grid-calc($n, $g: 12) { | |
@return ($n / $g) * 100%; | |
} | |
// 12 column grid | |
@for $i from 1 through 12 { | |
%grid-#{$i}-of-12 { width: grid-calc($i); } | |
} |
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
{ | |
"directory": "vendor/assets/components" | |
} |