VIM Setup
At the command line:
- mv .vimrc .vimrc_backup
- mv .vim .vim_backup
- cd ~
- wget https://raw.github.com/overture8/my-vimrc/master/vimrc && mv vimrc .vimrc
- git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
- vim
<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- |
VIM Setup
At the command line:
# 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) |
<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"> |
/** | |
* @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 |
# 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 }) | |
# |
# 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") | |