Skip to content

Instantly share code, notes, and snippets.

@bryanjswift
bryanjswift / Vagrantfile
Last active February 25, 2016 02:26 — forked from helloIAmPau/Vagrantfile
A file to install redis server onto an Ubuntu virtual machine.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
@bryanjswift
bryanjswift / twitter-entities.js
Created August 19, 2012 02:31 — forked from wadey/twitter-entities.js
JavaScript parser for Tweet Entities
/*
* twitter-entities.js
* This function converts a tweet with "entity" metadata
* from plain text to linkified HTML.
*
* See the documentation here: http://dev.twitter.com/pages/tweet_entities
* Basically, add ?include_entities=true to your timeline call
*
* Copyright 2010, Wade Simmons
* Licensed under the MIT license
var Card = new Class({
Implements: [Options, Events],
options: {
index: 0,
bg: null
},
initialize: function(el, options){