Skip to content

Instantly share code, notes, and snippets.

View cuber's full-sized avatar

Cube cuber

View GitHub Profile
@cuber
cuber / protobuf.rb
Last active August 29, 2015 14:00
Library/Formula/protobuf.rb 2.4.0a
require 'formula'
class Protobuf < Formula
url 'http://protobuf.googlecode.com/files/protobuf-2.4.0a.tar.bz2'
homepage 'http://code.google.com/p/protobuf/'
sha1 '5816b0dd686115c3d90c3beccf17fd89432d3f07'
fails_with_llvm
def options
@cuber
cuber / gist:11292869
Created April 25, 2014 15:07
How To install Scala 2.10 with homebrew
# you should checkout to the history version of scala.rb
cd /path/to/homebrew (default is /usr/local)
git checkout d64edec425df44918c58b6b021ffef2628242248 Library/Formula/scala.rb
brew info scala # you will see the 2.10 version
brew install scala
# after install, turn back to the master version
brew checkout master Library/Formula/scala.rb
# you can install both 2.10 & 2.11, brew switch can easily switch to any specific version
brew switch scala 2.10
brew switch scala 2.11
<style>
span { display: inline-block; }
#left { text-align: left; }
#right { text-align: right; }
</style>
<div style="width: 100px; height: 30px; overflow:hidden; ">
<span id="left"></span>
<span id="right"></span>
</div>