Skip to content

Instantly share code, notes, and snippets.

View mixonic's full-sized avatar

Matthew Beale mixonic

View GitHub Profile
@mixonic
mixonic / Facebooker with multiple facebook apps
Created July 9, 2009 13:13
Using multiple facebook apps with facebooker
Multiple facebook apps on one facebooker-powered Rails app. This
should be backwards compatible. For adding an app:
development:
api_key: 963285923uj23j8rj23j932
secret_key: fj329jf932jf9329t939hg239t
canvas_page_name: mainapp
pretty_errors: true
set_asset_host_to_callback_url: true
callback_url: http://www.host.com
#!/usr/bin/env ruby
require 'rubygems'
require 'curl'
require 'json'
client = Curl::Easy.perform(
"http://#{ENV['PPW_USER']}:#{ENV['PPW_PASS']}" +
"@www.pushpinweb.com" +
"/datasets/1.json"
@mixonic
mixonic / config.log
Created January 12, 2011 22:15
Trying to build Sphinx trunk on OSX 10.6.6 i7
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by sphinx configure 1.11, which was
generated by GNU Autoconf 2.65. Invocation command line was
$ ./configure --with-libstemmer --without-unixodbc --with-mysql=/usr/local/mysql --disable-debug CPPFLAGS=-I/usr/local/include -I/usr/local/Cellar/open-mpi/1.4.2/include -I/usr/local/Cellar/boost/1.45.0/include -arch x86_64 LDFLAGS=-L/usr/local/lib -L/usr/local/Cellar/open-mpi/1.4.2/lib -L/usr/local/Cellar/boost/1.45.0/lib CFLAGS=-O -arch x86_64 LDFLAGS=-arch x86_64 -L/usr/local/Cellar/open-mpi/1.4.2/lib -L/usr/local/Cellar/boost/1.45.0/lib CXXFLAGS=-O -arch x86_64
## --------- ##
## Platform. ##
@mixonic
mixonic / .rvmrc
Created April 3, 2011 02:29 — forked from oriolgual/.rvmrc
rvm use --create 1.9.2@list_benchmark
@mixonic
mixonic / Gemfile
Created April 15, 2011 14:16
Forked from http://livejs.com/ - modified for Harvest http://www.getharvest.com
# Use guard for watching the filesystem and running
# Compass compilers.
#
group :development do
gem 'guard-compass'
end
@mixonic
mixonic / server.js
Created April 28, 2011 22:49
Node.js + Socket.io + Bash. A collaborative terminal for your browser.
//
// This server will start a bash shell and expose it
// over socket.io to a browser. See ./term.html for the
// client side.
//
// You should probably:
//
// npm install socket.io
// curl -O https://github.com/LearnBoost/Socket.IO/raw/master/socket.io.min.js
//
@mixonic
mixonic / .gitignore
Created May 16, 2011 18:55
Mousy - A shared cursor for webpages using Node.js
node_modules
public/socket.io.min.js
public/jquery.js
@mixonic
mixonic / Readme.txt
Created September 1, 2011 13:56
Add speech-to-text to Co-op with a bookmarklet!
Just create a new bookmark, then copy and paste the
javascript in bookmarklet.js into the "url" section.
Then open co-op, click the bookmarklet, and you're
using text to speech!
This only works with Chrome right now.
@mixonic
mixonic / stub_time.rb
Created October 26, 2011 15:24
Stub some time for Rails, not in tests
# Lifting from http://stackoverflow.com/questions/714042/unit-testing-code-which-gets-current-time
# mostly, but adding a non-block version.
#
# Toss this into config/initializers/stub_time.rb and set a
# time at the bottom of the file.
#
# Danger Will Robinson, Danger!
#
require 'time'
@mixonic
mixonic / spell_check.rb
Created February 29, 2012 20:10
Rack::SpellCheck
=begin
Rack::SpellCheck - Spell check your HTML pages with Aspell, Nokogiri, and Rack.
This probably should be loaded in an initializer like so:
if Rails.env.development?
SpintoApp::Application.config.middleware.use Rack::SpellCheck
end