This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
r "github.com/dancannon/gorethink" | |
"io/ioutil" | |
"labix.org/v2/mgo" | |
"labix.org/v2/mgo/bson" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func copyNonZero(dst, src interface{}) { | |
dstVal := reflect.Indirect(reflect.ValueOf(dst)) | |
srcVal := reflect.Indirect(reflect.ValueOf(src)) | |
srcType := srcVal.Type() | |
for i := 0; i < srcType.NumField(); i++ { | |
srcField := srcType.Field(i) | |
dstField := dstVal.FieldByName(srcField.Name) | |
if dstField.IsValid() { | |
val := srcVal.Field(i) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Screen < Formula | |
homepage 'http://www.gnu.org/software/screen' | |
url 'http://ftpmirror.gnu.org/screen/screen-4.0.3.tar.gz' | |
mirror 'http://ftp.gnu.org/gnu/screen/screen-4.0.3.tar.gz' | |
version '4.00.03' | |
sha1 '7bc6e2f0959ffaae6f52d698c26c774e7dec3545' | |
head 'git://git.savannah.gnu.org/screen.git', :branch => 'master' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Formula for python 3.0 based on https://github.com/adamv/homebrew-alt/blob/master/versions/python31.rb | |
require 'formula' | |
# Was a Framework build requested? | |
def build_framework?; ARGV.include? '--framework'; end | |
# Are we installed or installing as a Framework? | |
def as_framework? | |
(self.installed? and File.exists? prefix+"Frameworks/Python.framework") or build_framework? | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
<<-COMMENTS | |
fork of https://github.com/adamv/homebrew-alt/blob/master/versions/python25.rb | |
Options | |
------- | |
There are a few options for customzing the build. | |
--universal: Builds combined 32-/64-bit Intel binaries. | |
--framework: Builds a "Framework" version of Python. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# backport from http://hg.python.org/cpython/rev/150986ab3db2/ | |
# support building with subversion 1.7 #6094 | |
diff --git a/Makefile.pre.in b/Makefile.pre.in | |
--- a/Makefile.pre.in | |
+++ b/Makefile.pre.in | |
@@ -458,7 +458,7 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \ | |
$(SIGNAL_OBJS) \ | |
$(MODOBJS) \ | |
$(srcdir)/Modules/getbuildinfo.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Wanderlust < Formula | |
url 'http://www.jpl.org/elips/wl/wl-2.14.0.tar.gz' | |
homepage 'http://www.gohome.org/wl/' | |
md5 '60b94c9796ee40b6585ef19a509c90df' | |
head 'cvs://:pserver:anonymous@cvs.m17n.org:/cvs/root:wanderlust', :using => :cvs | |
depends_on 'emacs' | |
depends_on 'apel' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Semi < Formula | |
url 'http://kanji.zinbun.kyoto-u.ac.jp/~tomo/lemi/dist/semi/semi-1.14-for-flim-1.14/semi-1.14.6.tar.gz' | |
homepage 'http://www.kanji.zinbun.kyoto-u.ac.jp/~tomo/elisp/SEMI/' | |
md5 '22d735fa218c8c6268cd2c9395cd837b' | |
depends_on 'emacs' | |
depends_on 'apel' | |
depends_on 'flim' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Flim < Formula | |
url 'http://www.kanji.zinbun.kyoto-u.ac.jp/~tomo/comp/emacsen/lisp/flim/flim-1.14/flim-1.14.9.tar.gz' | |
homepage 'http://kanji.zinbun.kyoto-u.ac.jp/~tomo/elisp/FLIM/' | |
md5 '3dca42e2a1af4b089bb3f177bcf9321b' | |
depends_on 'emacs' | |
depends_on 'apel' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Apel < Formula | |
url 'http://kanji.zinbun.kyoto-u.ac.jp/~tomo/lemi/dist/apel/apel-10.8.tar.gz' | |
homepage 'http://kanji.zinbun.kyoto-u.ac.jp/~tomo/elisp/APEL/' | |
md5 '20b82300094b4377e1fb74d83ebbd972' | |
depends_on 'emacs' | |
def install |