Skip to content

Instantly share code, notes, and snippets.

View marckohlbrugge's full-sized avatar
🏠
Working from home

Marc Köhlbrugge marckohlbrugge

🏠
Working from home
View GitHub Profile
<object width="605" height="354" type="application/x-shockwave-flash" id="bitgravity_player_6" data="http://bitcast-b.bitgravity.com/player/6/bitgravity_player_v6_1_7b.swf"><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><param name="wmode" value="transparent"/><param name="flashvars" value="File=http://bglive-a.bitgravity.com/demo/live/2009&amp;Mode=live&amp;AutoPlay=true"/></object>
The Ant-Sugar Tales
===================
By Candice Yellowflower-
this-is-an-example-of-a-long-word-that-should-match-as-well
"The _Ant-Sugar Tales_ is a collection" of short stories told from the
perspective of a fine young lady from [Venice][1], who has some run-ins
with a few [inquisitive insects][2]. Each tale presents a moral quandry,
#!/usr/bin/env ruby
# Command line util for acquiring a one-off Twitter OAuth access token
# Based on http://blog.beefyapps.com/2010/01/simple-ruby-oauth-with-twitter/
require 'rubygems'
require 'oauth'
puts <<EOS
Set up your application at https://twitter.com/apps/ (as a 'Client' app),
@marckohlbrugge
marckohlbrugge / batman.js
Created January 24, 2012 18:04
The Real Batman.js
document.getElementsByTagName('body')[0].innerHTML = '<object width="1" height="1"><param name="movie" value="http://www.youtube.com/v/VSaDPc1Cs5U&autoplay=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/VSaDPc1Cs5U&autoplay=1" type="application/x-shockwave-flash" wmode="transparent" width="1" height="1"></embed></object>'+document.getElementsByTagName('body')[0].innerHTML
@marckohlbrugge
marckohlbrugge / batman-example.html
Created January 24, 2012 18:05
How to use batman.js
<!-- Insert this in your BODY tag -->
<script language="javascript" src="https://raw.github.com/gist/1671569/77258cb95509125c25a9309ef7a52697f1dc28ba/batman.js"></script>
@marckohlbrugge
marckohlbrugge / shuffler-fm
Created February 15, 2013 16:54
Adds Shuffler.fm support to @Silouane20's 'Media' Alfred Extension ( http://silouane20.tumblr.com/post/16058261065/alfred-extension-for-music-websites ) I didn't edit the info.plist much, but I somehow must have messed up the indenting so the diff shows a lot of unchanged lines.
diff --git a/fave.js b/fave.js
new file mode 100644
index 0000000..0745838
--- /dev/null
+++ b/fave.js
@@ -0,0 +1,7 @@
+(function(){
+ switch(location.hostname){
+ case "shuffler.fm":
+ $('div#favorite')[0].click();
@marckohlbrugge
marckohlbrugge / Paste URL
Created March 21, 2013 18:48
TextExpander snippet which pastes the URL of the first search result it finds based on what's in your clipboard. For example copy "TextExpander" to your clipboard and run this snippet and you'll find it pastes the [TextExpander homepage](http://www.smilesoftware.com/textexpander). Recommend shortcut: /url Adapted from Brett Terpsta's [Markdown S…
#!/usr/bin/env ruby -wKU
require 'net/http'
clipboard = %x{__CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100 pbpaste}.strip
def e_url(string)
string.gsub(/([^a-zA-Z0-9_.-]+)/n) do
'%' + $1.unpack('H2' * $1.size).join('%').upcase
end
@marckohlbrugge
marckohlbrugge / mybetalist.css
Created June 5, 2013 23:31
An example of how to customise your My Beta List widget.
#MyBetaList {
font: 14px Arial, sans-serif;
color: black;
background-color: white;
font-size: 12px;
line-height: 15px;
padding: 20px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
margin: 10px auto 20px auto; }
@marckohlbrugge
marckohlbrugge / gist:6733672
Created September 27, 2013 19:10
Helper method to show current wizard progress for [Wicket](https://github.com/schneems/wicked)
def wizard_steps_list
methods = %w(past_step future_step previous_step next_step)
content_tag(:ol, { class: 'wizard_steps' }, false) do
wizard_steps.map do |wizard_step|
classes = methods.collect{ |method| method if send(method+'?', wizard_step) }.compact
classes = ['current_step'] unless classes.length > 0
concat(content_tag(:li, link_to_if(past_step?(wizard_step), wizard_step.to_s.titleize, wizard_path(wizard_step)), { class: classes.join(' ') }, false))
end
end
end

Lyft

  • A friendly, affordable ride whenever you need one.
  • Really fun way to travel. They have you sit in the front seat so you can talk, be social. Different from Uber. Fun experience and affordable.
  • First ride free ($25 value)
  • http://www.lyft.com/invited/GQ5FNETDQQ

Fancy Hands

  • Assistants for Everyone. Do what you love. We'll do the rest.
  • Couldn't live without this service. Delegation mind set can take some getting used to, but saves you A LOT of time.
  • 50% discount first month