Skip to content

Instantly share code, notes, and snippets.

View jroes's full-sized avatar

Jon Roes jroes

  • Streamlit
  • Charlotte, NC
  • X @jroes
View GitHub Profile
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
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
@jroes
jroes / gist:4596405
Last active December 11, 2015 11:48
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
@jroes
jroes / gist:5497853
Last active December 16, 2015 21:09
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;:::::::::::;;;;:::;;;;;;;;;;;;;;;;;;;::::::::::;;;;;;;;;;;;;;;:::::::::,,,;+';;;;::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;::::::::::::::::::;;;;;;;;;;;;;;;;;;;::::::::.;;;;;;;;;;;;;;;::::::::,,,:'##+;;:::::;::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;::::::;;:::;;;;;:;;::::::::::::::::;;;;:;;:::;;;;;;;;;;;;;;;;;;;;;:::::.;;;;;;;;;;;;;;;;:::::,,,,:'+++++':::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;;;;;;:;;;:;::::::;::::::;:;::;;:::;;;;;;;;;;;;;;;;;;;;;::::,:;;;;;;;;;;;;;;::::::,,,,;'++++++';::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::;;;::::;;;;;;;;:::;;;;;;;;;;;;;;;;;;;;;:::,:;;;;;;;;;;;;:::::::,,,,;''';''++#+'::::::::::::::::::::::
:::::::::::::::::::
@jroes
jroes / gist:5635991
Last active December 17, 2015 16:00
Shield your eyes!
# 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
@jroes
jroes / gist:6794136
Created October 2, 2013 13:51
My current Vocola 2 config.
# 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}";
@jroes
jroes / gist:7009325
Last active December 25, 2015 16:58
package main
import (
"io/ioutil"
"os"
"sort"
"strings"
)
func main() {
@jroes
jroes / homerow
Last active December 29, 2015 09:09
QGMLWB words
added
addend
addenda
adead
adenase
adenose
adnate
adossed
aenean
aesthete

Keybase proof

I hereby claim:

  • I am jroes on github.
  • I am jroes (https://keybase.io/jroes) on keybase.
  • I have a public key whose fingerprint is EC5E AA03 1431 9CC3 ED98 B1FC 94CA BF6B 82AB 1638

To claim this, I am signing this object:

#!/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