Skip to content

Instantly share code, notes, and snippets.

View veganstraightedge's full-sized avatar
🐢
Computers were a mistake.

Shane Becker veganstraightedge

🐢
Computers were a mistake.
View GitHub Profile
<html>
<head>
<script>
function check_cc() {
var r = document.getElementById("results");
var elem = document.getElementById("ccnum");
r.innerHTML = "Checking CC: " + elem.value + "<br>";
require 'flickraw'
FlickRaw.api_key = ''
FlickRaw.shared_secret = ''
@flickr = FlickRaw::Flickr.new
@flickr.access_token = ''
@flickr.access_secret = ''
# Test if the access token is valid
/**
* # Post messages using Slack's Webhook
*
* Use this in combination with node-cron to Schedule messages.
* No need to have the hubot invited on the actual channel to post.
*
* ## Dependencies
*
* superagent
* lodash
<!-- iPad Goodies -->
<link media="only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:landscape)" href="ipad-landscape.css" type="text/css" rel="stylesheet" />
<link media="only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:portrait)" href="ipad-portrait.css" type="text/css" rel="stylesheet" />
<!-- End iPad -->
<!-- iPhone Goodies -->
<link media="only screen and (min-device-width: 320px) and (max-device-width: 480px) and (orientation:landscape)" href="iphone-landscape.css" type="text/css" rel="stylesheet" />
defaults write com.macromates.textmate OakDefaultLanguage E00B62AC-6B1C-11D9-9B1F-000D93589AF6
bin_path "vendor/bundled/bin"
bundle_path "vendor/bundled"
disable_system_gems
gem "aasm", "= 2.1.1" # stateful models
gem "acts_as_reportable" # CSV downloads
gem "flacinfo-rb", "= 0.4.0" # read/write FLAC metadata
gem "haml" # ugh
gem "intercession", "= 2.0.0" # session as model
@veganstraightedge
veganstraightedge / gist:1138430
Created August 10, 2011 22:18 — forked from evanphx/gist:1138429
Rubinius HTML Profile
$ rbx -Xprofile -Xprofiler.json=glob.json scratch/big_glob.rb
$ rbx render_profile glob.json glob.html
or
$ RBXOPT="-Xprofile -Xprofiler.json=glob.json" rails s
$ rbx render_profile glob.json glob.html
@veganstraightedge
veganstraightedge / caveatPatchor.js
Created October 27, 2011 20:47 — forked from protocool/caveatPatchor.js
Sample caveatPatchor.js file for use in Propane 1.1.2 and above
/*
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.
@veganstraightedge
veganstraightedge / gist:2255302
Created March 30, 2012 21:34 — forked from ehoch/gist:1960548
Puma / DJ Procefile on Heroku
web: bundle exec puma -p $PORT
worker: bundle exec rake jobs:work
require 'rubygems'
require 'nokogiri'
require 'gollum'
wiki = Gollum::Wiki.new('auxwiki')
name = 'Ilja Krijger'
email = 'ilja@quittheprogram.org'
f = File.open("AuxiliumWiki-20110705103347.xml")