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
// app/assets/javascripts/app/controllers/movies.js | |
'use strict'; | |
angular.module('popcornApp') | |
.controller('MoviesController', ["$scope", | |
function($scope) { | |
$scope.movies = [ | |
{ | |
youtubeId: "8Eg6yIwP2vs", |
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
# vim: set ft=ruby | |
# | |
# Nate Murray's ~/.irbrc | |
# | |
# Can be found at: | |
# http://gist.github.com/6626 | |
# git clone git://gist.github.com/6626.git gist-6626 | |
# | |
# Include colorization | |
require 'rubygems' |
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
/* | |
** Copyright (c) 2012, Romain Dura romain@shazbits.com | |
** | |
** Permission to use, copy, modify, and/or distribute this software for any | |
** purpose with or without fee is hereby granted, provided that the above | |
** copyright notice and this permission notice appear in all copies. | |
** | |
** THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
** WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
** MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY |
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
define session-ruby | |
source ~/.gdb/ruby | |
end | |
define uberrubydebug | |
set unwindonsignal on | |
thread apply all bt | |
session-ruby | |
redirect_stdout | |
eval "puts '=====================' + Process.pid.to_s" |
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 'popup) | |
(require 'pos-tip) | |
(require 'popup-kill-ring) | |
(require 'auto-complete-config) | |
(add-to-list 'ac-dictionary-directories (concat libfiles-dir "/ac-dict")) | |
(ac-config-default) | |
(setq ac-use-menu-map t) | |
(define-key ac-menu-map (kbd "ESC") 'viper-exit-popup-menu) | |
(define-key ac-complete-mode-map (kbd "ESC") 'viper-exit-popup-menu) |
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
# see: http://www.jroller.com/b0b0b0b/entry/compile_waffles_mac_os_x | |
sudo ln -s /usr/X11/lib/libpng.dylib /sw/lib | |
sudo ln -s /usr/X11/include/png.h /sw/include/ | |
sudo ln -s /usr/X11/include/pngconf.h /sw/include/ |
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 Tar <Formula | |
url 'http://ftp.gnu.org/gnu/tar/tar-1.26.tar.gz' | |
homepage 'http://www.gnu.org/software/tar/' | |
md5 '00d1e769c6af702c542cca54b728920d' | |
# depends_on 'cmake' | |
def install |
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
set -ex | |
export MYJAVAHOME=$JAVA_HOME | |
PREFIX=$HOME/usr | |
TMPDIR=$HOME/tmp | |
mkdir -p $TMPDIR | |
mkdir -p $PREFIX | |
pushd $TMPDIR |
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 TokyoCabinetJava <Formula | |
url 'http://downloads.sourceforge.net/project/tokyocabinet/tokyocabinet-java/1.22/tokyocabinet-java-1.22.tar.gz' | |
homepage 'http://fallabs.com/tokyocabinet/' | |
md5 '60c1b118ee4d7663446ff63634efe0ab' | |
def patches | |
# As of Java update 3 for 10.6 apple seems to include stuff like headers we | |
# need (jni.h) in a separate Java developer package. This package installs |
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 Libpst < Formula | |
url 'http://www.five-ten-sg.com/libpst/packages/libpst-0.6.53.tar.gz' | |
homepage 'http://www.five-ten-sg.com/libpst/' | |
md5 'e030d3128562ac189c2400dedec36b86' | |
depends_on 'boost' | |
def install |