Skip to content

Instantly share code, notes, and snippets.

View randallb's full-sized avatar
🎬

Randall Bennett randallb

🎬
View GitHub Profile

What's your name?

Email address?

What's your story? (Tell us what you'd tell someone at a party if they asked about you.)

Why do you want to learn to code?

Do you have an app idea already? (Not required, just curious what you're interested in.)

undefined method `[]' for nil:NilClass
twitter (4.7.0) lib/twitter/client.rb:97:in `block in request_setup'
sc = new RC.shortcut;
sc.queue(function(chain){
chain.take()
chain.load()
chain.dothing()
})
// chain just adds that to a queue, and when the fn returns, you execute the queue in order.
respond_to do |format|
format.html {render :angular, layout: 'output'}
format.json {render :xhr, layout: false}
end
Template in HTML:
<widget>
This is a widget
</widget>
After compilation:
<widget ng-click="standardMethod">
This is a widget.
</widget
var numberConv;
numberConv = function(x) {
var octet1, octet2, octet3, octet4;
octet1 = x % 256;
octet2 = Math.floor(x / 256);
octet3 = Math.floor(x / (256 * 256));
octet4 = Math.floor(x / (256 * 256 * 256));
return new Buffer([octet1, octet2, octet3, octet4]);
};
@randallb
randallb / gist:5122003
Created March 9, 2013 01:21
New stencil format
<ul playlist>
<li entry>
</li>
</ul>
<ul queue>
<li entry>
</li>
.response.transition-from{
max-height: 0px;
}
.response.transition-to{
max-height: 1000px;
}
.response.transition-out{
opacity: 0;
{"author_image":null,
"author_name":null,
"created_at":null,
"id":null,
"message":null,
"updated_at":null,
"entry_type":"FacebookPost", (Could also be "TwitterPost" or "CustomPost")
"service_data":{ DATA FROM FACEBOOK OR TWITTER},
"facebook?":true,
"twitter?":false,
#= require angular/angular-mocks.js
fn = (suiter) ->
describe "awesome", ->
it "should be cool", ->
console.log "success!"
console.log suiter
fn("suit")