Skip to content

Instantly share code, notes, and snippets.

@pjaspers
pjaspers / methods.rb
Created September 26, 2012 19:54 — forked from keith/methods.rb
Prints ObjC method names to a file
#!/usr/bin/ruby
=begin
This is a simple script for printing out the methods in your Objective-C .h or .m file. It reads the passed file and stores just the method names in a text file
=end
# Default filename and type for the file output
DEFAULT_FILENAME = "outfile"
@pjaspers
pjaspers / gist:3258692
Created August 4, 2012 16:29 — forked from protocool/gist:2048775
Propane caveatPatchor.js snippet to display Instagram images inline
var displayInstagramImages = true;
if (displayInstagramImages) {
Campfire.InstagramExpander = Class.create({
initialize: function(chat) {
this.chat = chat;
var messages = this.chat.transcript.messages;
for (var i = 0; i < messages.length; i++) {
this.detectInstagramURL(messages[i]);