This file contains 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
module ActiveAdmin | |
class FormBuilder < ::Formtastic::FormBuilder | |
# ... | |
# The input method returns a properly formatted string for | |
# its contents, so we want to skip the internal buffering | |
# while building up its contents | |
def input(method, *args) | |
content = with_new_form_buffer { super } | |
return content.html_safe unless @inputs_with_block |
This file contains 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
GIT | |
remote: git://github.com/spree/spree-multi-domain | |
revision: 9b2e7c71f62fc514d8624515a168c44c5353208c | |
specs: | |
spree_multi_domain (1.0.0) | |
spree_core (~> 1.2) | |
GIT | |
remote: git://github.com/spree/spree_auth_devise | |
revision: 887dba92d5075550b38e947ddd5bfa384932c942 |
This file contains 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
jroes work$ rhc app create -a railsapp2 -t ruby-1.9 && rhc cartridge add -a railsapp2 -c mysql-5.1 && cd railsapp2 && git remote add upstream -m master git://github.com/openshift/rails-example.git && git pull -s recursive -X theirs upstream master | |
Password: ************** | |
Creating application 'railsapp2' | |
================================ | |
Namespace: skookum | |
Cartridge: ruby-1.9 | |
Gear Size: default | |
Scaling: no |
This file contains 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
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;:::::::::::;;;;:::;;;;;;;;;;;;;;;;;;;::::::::::;;;;;;;;;;;;;;;:::::::::,,,;+';;;;:::::::::::::::::::: | |
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;::::::::::::::::::;;;;;;;;;;;;;;;;;;;::::::::.;;;;;;;;;;;;;;;::::::::,,,:'##+;;:::::;:::::::::::::::: | |
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;::::::;;:::;;;;;:;;::::::::::::::::;;;;:;;:::;;;;;;;;;;;;;;;;;;;;;:::::.;;;;;;;;;;;;;;;;:::::,,,,:'+++++'::::::::::::::::::::::: | |
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;;;;;;:;;;:;::::::;::::::;:;::;;:::;;;;;;;;;;;;;;;;;;;;;::::,:;;;;;;;;;;;;;;::::::,,,,;'++++++';:::::::::::::::::::::: | |
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::;;;::::;;;;;;;;:::;;;;;;;;;;;;;;;;;;;;;:::,:;;;;;;;;;;;;:::::::,,,,;''';''++#+':::::::::::::::::::::: | |
::::::::::::::::::: |
This file contains 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
# Test with: | |
# | |
# $ curl -o sample1.wav https://api.twilio.com/2010-04-01/Accounts/AC44d08277b616939d314d0c81832c389a/Recordings/REb9c469219996e51b1b9aee996b3ff48309 | |
# $ curl -o sample2.wav https://api.twilio.com/2010-04-01/Accounts/AC44d08277b616939d314d0c81832c389a/Recordings/REf7ba239cedd653ce75390c925ed51aad | |
# $ python compare_audio.py sample1.wav sample2.wav | |
import wave | |
import sys | |
import numpy as np |
This file contains 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
# Voice commands for putty | |
# tmux | |
mux next = {Ctrl + T} {n}; | |
mux prev = {Ctrl + t} {p}; | |
mux 0..9 = {Ctrl + T} {$}; | |
mux detach = {Ctrl + T} {d}; | |
mux attach = "tmux attach {enter}"; | |
mux reattach = "tmux attach -d {enter}"; |
This file contains 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
package main | |
import ( | |
"io/ioutil" | |
"os" | |
"sort" | |
"strings" | |
) | |
func main() { |
This file contains 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
added | |
addend | |
addenda | |
adead | |
adenase | |
adenose | |
adnate | |
adossed | |
aenean | |
aesthete |
This file contains 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
#!/bin/bash | |
machine_name=dev | |
interface=vboxnet1 | |
sudo route -n delete 192.168.99.0 | |
sudo route -n add -net 192.168.99.0/24 -interface $interface | |
docker-machine rm $machine_name | |
docker-machine create --driver virtualbox $machine_name | |
eval "$(docker-machine env $machine_name)" |
This file contains 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
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# | |
# Download 1136x1136 screenshots and 512x512 icon from iTunes for a list of | |
# search terms. | |
# | |
# Jon Roes <jroes@heroku.com> | |
# | |
# Example: | |
# $ iosgfx search_terms.txt |