Skip to content

Instantly share code, notes, and snippets.

Phil McClure overture8

Block or report user

Report or block overture8

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
overture8 / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
overture8 / gist:3181690
Created Jul 26, 2012 — forked from willmcneilly/gist:3181555
Fabric consecutive 't' paths fix
View gist:3181690
* @private
* @method _render
_render: function(ctx) {
var current, // current instruction
previous = null,
x = 0, // current x
y = 0, // current y
controlX = 0, // current control point x
overture8 / call_template.rb
Created Dec 1, 2011 — forked from juggy/call_template.rb
Render a complete page in rails 3 without controller
View call_template.rb
# create the template
template =
template.quote = quote
template.pages = quote.build_pages
# Here I render a template with layout to a string then a PDF
pdf = template.render_to_string(:template=>"quotes/review.html.haml")
overture8 / offline_template.rb
Created Dec 1, 2011 — forked from zorab47/offline_template.rb
Offline Template for Rails 2.3.x
View offline_template.rb
# Public: Template to render views outside the context of a controller.
# Useful for rendering Rails 2.3.x views in rake tasks or background jobs when a
# controller is unavailable.
# Examples
# template =
# template.render("users/index", :layout => false, :locals => { :users => users })
You can’t perform that action at this time.