Skip to content

Instantly share code, notes, and snippets.

View simeonwillbanks's full-sized avatar
☀️
😎

Simeon Willbanks simeonwillbanks

☀️
😎
View GitHub Profile
@simeonwillbanks
simeonwillbanks / gist:1008296
Created June 4, 2011 20:04
#Rails High Speed Rails Idioms
We couldn’t find that file to show.
@simeonwillbanks
simeonwillbanks / Gemfile.lock.diff
Last active September 26, 2015 02:38
bundle install only #bundler #diff #ruby #Gemfile
diff --git a/Gemfile.lock b/Gemfile.lock
index d2b6ae1..4514854 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -56,6 +56,7 @@ GEM
chronic_duration (0.9.4)
numerizer (~> 0.1.1)
closure-compiler (1.1.1)
+ columnize (0.3.3)
crack (0.1.8)
@simeonwillbanks
simeonwillbanks / gem_make.out
Last active September 26, 2015 20:58
Command Line: $ sudo env ARCHFLAGS="-arch x86_64" gem install mysql2 -- --with-mysql-config=/usr/local/bin/mysql_config
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/Users/simeon/.rbenv/versions/ree-1.8.7-2011.03/bin/ruby extconf.rb --with-mysql-config=/usr/local/bin/mysql_config
checking for rb_thread_blocking_region()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
-----
mysql.h is missing. please check your installation of mysql and try again.
@simeonwillbanks
simeonwillbanks / gem_make.out
Last active September 26, 2015 20:58
Command Line: $ sudo env ARCHFLAGS="-arch x86_64" gem install mysql2 -- --with-mysql-dir=/usr/local
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/Users/simeon/.rbenv/versions/ree-1.8.7-2011.03/bin/ruby extconf.rb --with-mysql-dir=/usr/local
checking for rb_thread_blocking_region()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
-----
mysql.h is missing. please check your installation of mysql and try again.
@simeonwillbanks
simeonwillbanks / bin
Created August 20, 2011 03:54
#commandline brew mysql symlinks
lrwxr-xr-x 1 simeon wheel 32 Aug 18 17:06 /usr/local/bin/mysql -> ../Cellar/mysql/5.5.14/bin/mysql
lrwxr-xr-x 1 simeon wheel 39 Aug 18 17:06 /usr/local/bin/mysql.server -> ../Cellar/mysql/5.5.14/bin/mysql.server
lrwxr-xr-x 1 simeon wheel 44 Aug 18 17:06 /usr/local/bin/mysql_client_test -> ../Cellar/mysql/5.5.14/bin/mysql_client_test
lrwxr-xr-x 1 simeon wheel 39 Aug 18 17:06 /usr/local/bin/mysql_config -> ../Cellar/mysql/5.5.14/bin/mysql_config
lrwxr-xr-x 1 simeon wheel 53 Aug 18 17:06 /usr/local/bin/mysql_convert_table_format -> ../Cellar/mysql/5.5.14/bin/mysql_convert_table_format
lrwxr-xr-x 1 simeon wheel 42 Aug 18 17:06 /usr/local/bin/mysql_find_rows -> ../Cellar/mysql/5.5.14/bin/mysql_find_rows
lrwxr-xr-x 1 simeon wheel 47 Aug 18 17:06 /usr/local/bin/mysql_fix_extensions -> ../Cellar/mysql/5.5.14/bin/mysql_fix_extensions
lrwxr-xr-x 1 simeon wheel 43 Aug 18 17:06 /usr/local/bin/mysql_install_db -> ../Cellar/mysql/5.5.14/bin/mysql_install_db
lrwxr-xr-x 1 simeon wheel 52 Aug 18 17:
@simeonwillbanks
simeonwillbanks / gem_make.out
Last active September 26, 2015 20:58
Command Line: $ sudo gem install mysql2
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/Users/simeon/.rbenv/versions/ree-1.8.7-2011.03/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
-----
mysql.h is missing. please check your installation of mysql and try again.
@simeonwillbanks
simeonwillbanks / gist:1158625
Last active September 26, 2015 20:58
#CommandLine $ /usr/local/bin/mysql_config
Usage: /usr/local/bin/mysql_config [OPTIONS]
Options:
--cflags [-I/usr/local/Cellar/mysql/5.5.14/include -g -arch i386 -arch x86_64]
--include [-I/usr/local/Cellar/mysql/5.5.14/include]
--libs [-L/usr/local/Cellar/mysql/5.5.14/lib -lmysqlclient -lpthread -lz -lssl -lcrypto]
--libs_r [-L/usr/local/Cellar/mysql/5.5.14/lib -lmysqlclient_r -lpthread -lz -lssl -lcrypto]
--plugindir [/usr/local/Cellar/mysql/5.5.14/lib/plugin]
--socket [/tmp/mysql.sock]
--port [0]
--version [5.5.14]
@simeonwillbanks
simeonwillbanks / gem_make.out
Last active September 26, 2015 20:58
#commandline #mysql2 #gem $ sudo gem install mysql2 -- --with-mysql-dir=/usr/local --with-mysql-config=/usr/local/bin/mysql_config
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/Users/simeon/.rbenv/versions/ree-1.8.7-2011.03/bin/ruby extconf.rb --with-mysql-dir=/usr/local --with-mysql-config=/usr/local/bin/mysql_config
checking for rb_thread_blocking_region()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
-----
mysql.h is missing. please check your installation of mysql and try again.
@simeonwillbanks
simeonwillbanks / MacVim-Janus.md
Created October 12, 2011 22:51 — forked from jraines/MacVim-Janus.md
Readme: Macvim & Janus #readme

##Intro

Janus is a "basic distribution of vim plugins and tools intended to be run on top of the latest MacVIM snapshot." It is maintained by Yehuda Katz and Carl Lerche.

I recently whinged on Twitter that all I really want is vim with TextMate's Command-T go-to-file functionality and some efficient visual tab/buffer navigation. Turns out MacVim + Janus, with just a few tweaks, is all that and more.

Installing Janus

Follow the installation instructions on the git page

@simeonwillbanks
simeonwillbanks / fizzbuzz.js
Created October 31, 2011 19:05
#JavaScript #FizzBuzz #ProgrammingChallenge
(function(){for (var i = 1; i<=100; i++) { if (i % 3 == 0 && i % 5 == 0) {console.log("FizzBuzz");} else if (i % 3 == 0) {console.log("Fizz")} else if (i % 5 == 0) {console.log("Buzz");} else {console.log(i);} }})();