Skip to content

Instantly share code, notes, and snippets.

@jed
jed / tweetToHTML.js
Created April 21, 2011 10:57
turning a tweet into html
function htmlify( tweet ) {
return tweet.replace(
/[@]+([A-Za-z0-9-_]+)|[#]+([A-Za-z0-9-_]+)|(\b(?:https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,
function( match, user, tag, url ) {
return 0,
user ? "@" + user.link( "http://twitter.com/" + user ) :
tag ? "#" + tag.link( "http://search.twitter.com/search?q=%23" + tag ) :
url ? url.split( "//" )[ 1 ].link( url ) : ""
})
}
@madrobby
madrobby / LICENSE.txt
Created August 1, 2011 21:34 — forked from 140bytes/LICENSE.txt
lettering.js
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Thomas Fuchs <http://mir.aculo.us/>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@tjogin
tjogin / README.md
Created September 5, 2011 06:56 — forked from rodrigorm/README.md
Configuration file to use PHP with Ruby rack

Installation

First you need php-cgi, i used brew with Formula below:

$ curl -O https://raw.github.com/gist/1194269/7ae1709453a8a19ce9c030bf41d544dd08d96d85/php.rb
$ mv php.rb `brew --prefix`/Library/Formula
$ brew install php --with-mysql

Second, install this ruby gems:

@mattsears
mattsears / README.md
Created September 5, 2011 07:41
Gittr: A Git key/value store

Gittr.rb

Git as a key-value store! Build with Grit, it supports SET, GET, KEYS, and DELETE operations. In addition, we can also get the change history of key/values.

And since it's Git, we can easily enhance it to include other awesome Git features such as branches, diffs, reverting, and more!

Example:

@madrobby
madrobby / forceScrollbars.coffee
Created September 13, 2011 16:16
Get Safari (Lion) to hopefully always indicate & show scrollbars correctly
# CoffeeScript source
$.fn.forceScrollbars = ->
@css position: 'static'
@[0].offsetHeight if @length > 0
@css position: 'relative'
@tvandervossen
tvandervossen / gist:1502845
Created December 20, 2011 19:25
Encode WebM with -aspect to make sure Firefox displays it with the correct aspect ratio
Commands:
$ ffmpeg -i source.mp4 -s 1280x720 -vpre libvpx-720p -b 3900k -pass 1 -an -f webm -aspect 16:9 -y output.webm
$ ffmpeg -i source.mp4 -s 1280x720 -vpre libvpx-720p -b 3900k -pass 2 -acodec libvorbis -ab 100k -f webm -aspect 16:9 -y output.webm
Assumes the following preset (in /usr/local/share/ffmpeg/libvpx-720p.ffpreset):
vcodec=libvpx
g=120
rc_lookahead=16

I'm getting rid of some stuff, who wants it? Pickup in Vienna's 6th district. Email thomas@fesch.at if you want something! All of the stuff is well cared-for.

Household stuff

  • Miele washing machine W1749 Softronic. (Very fancy, has a tank for liquid detergent so you don't need to fill in detergent every time you wash). 3 years old, €850,- (original price €1200,-)
@dr-dimitru
dr-dimitru / BroadcomBluetoothHostControllerUSBTransport
Created June 22, 2014 08:43
Mac OS X Mavericks 10.9 bluetooth adapter driver reset
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport