Skip to content

Instantly share code, notes, and snippets.

View overture8's full-sized avatar

Phil McClure overture8

  • Stora
  • Belfast, Northern Ireland
View GitHub Profile
<Response>
<DTMF>1</DTMF>
<Wait length="4" />
<DTMF>3</DTMF>
</Response>
http://help.testflightapp.com/customer/portal/articles/829907-can-i-download-a-build-from-testflight-to-my-computer-
@overture8
overture8 / vim_setup.md
Last active December 19, 2015 23:08
VIM Setup
@overture8
overture8 / vim_demo.md
Last active December 19, 2015 23:08
VIM demo

Introduction

  • What is vim (also known as VI)? - An Editor! Like Sublime, TextMate etc.

  • Show of hands for people who use vim:-

    • Every day? (Kind of expected)
    • Ocassionally? (First part boring)
  • Never? (Comfortable at the command-line?)

@overture8
overture8 / current_user.js.coffee
Last active December 19, 2015 08:38
Ember devise auth
# initializers/current_user.js.coffee
Ember.Application.initializer
name: 'currentUser'
initialize: (container) ->
attributes = $('meta[name="current-user"]').attr('content')
if attributes
json = JSON.parse(attributes)
@overture8
overture8 / index.html
Created March 21, 2013 10:09
A CodePen by Sergej Müller. AutoSuggest with AngularJS - Supports Chrome, Firefox, IE 10.
<h2>AutoSuggest with AngularJS</h2>
<form ng-app ng-controller="Ctrl">
<input id="query" list="items" placeholder="Search phrase" />
<datalist id="items">
<option ng-repeat="option in dataset" value="{{option[0]}}" />
</datalist>
<select ng-model="lang">
@overture8
overture8 / gist:3181690
Created July 26, 2012 12:07 — forked from willmcneilly/gist:3181555
Fabric consecutive 't' paths fix
/**
* @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
overture8 / offline_template.rb
Created December 1, 2011 20:03 — forked from zorab47/offline_template.rb
Offline Template for Rails 2.3.x
# 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 = OfflineTemplate.new(:users)
# template.render("users/index", :layout => false, :locals => { :users => users })
#
@overture8
overture8 / call_template.rb
Created December 1, 2011 20:04 — forked from juggy/call_template.rb
Render a complete page in rails 3 without controller
# create the template
template = PageOfflineTemplate.new
template.quote = quote
template.pages = quote.build_pages
# Here I render a template with layout to a string then a PDF
pdf = PDFKit.new template.render_to_string(:template=>"quotes/review.html.haml")