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
function htman() { | |
TMPPATH="${TMPDIR:=/tmp/}${@}$RANDOM.html" | |
groffer --html --html-viewer-tty=cat -- ${@} > "${TMPPATH}" | |
[[ "$?" == "1" ]] && return 1 | |
${BROWSER:=/usr/bin/open} "${TMPPATH}" | |
} |
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
// | |
// CodeSignConveniences.h | |
// | |
// Created by Travis Tilley on 2/4/12. | |
// Copyright (c) 2012 Travis Tilley. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <Security/CodeSigning.h> |
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
#!/usr/bin/env bash | |
LLVM_SVN='http://llvm.org/svn/llvm-project/llvm/trunk' | |
CLANG_SVN='http://llvm.org/svn/llvm-project/cfe/trunk' | |
POLLY_SVN='http://llvm.org/svn/llvm-project/polly/trunk' | |
COMPILER_RT_SVN='http://llvm.org/svn/llvm-project/compiler-rt/trunk' | |
LIBCXX_SVN='http://llvm.org/svn/llvm-project/libcxx/trunk' | |
export BASE=`pwd` | |
export LLVM_SRC="${BASE}/llvm" |
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
top = this | |
top.logJPlayerCreate ?= true | |
top.logJPlayerPublishCreate ?= true | |
top.logAllJPlayerEvents ?= false | |
do ($ = jQuery) -> | |
if !$.subscribe | |
o = $({}) | |
$.subscribe = -> |
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
#!/usr/bin/env PeanutButterJellyTime | |
# ----------------------------------------------------------------------------- | |
# keyword => C equiv (description) | |
# ----------------------------------------------------------------------------- | |
# peanut => ++*ptr (increase value of cell) | |
# PEANUT => ++ptr (move to next cell) | |
# butter => --*ptr (decrease value of cell) | |
# BUTTER => --ptr (move to previous cell) | |
# jelly => putchar(*ptr) (print character value of cell) | |
# JELLY => *ptr=getchar() (store numeric value of char input in cell) |
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 Formula | |
def configure_path_args(choices={}) | |
vars = { | |
:prefix => self.prefix, | |
:'exec-prefix' => self.prefix, | |
:bindir => self.bin, | |
:sbindir => self.sbin, | |
:libexecdir => self.libexec, |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
Vagrant::Config.run do |config| | |
config.package.name = 'vagrant-stackato.box' | |
config.vm.guest = :ubuntu | |
config.ssh.forward_agent = true | |
# config.vm.forward_port 80, 8080, :name => "nginx", :protocol => :tcp, :auto => true | |
# config.vm.forward_port 443, 8443, :name => "nginx ssl", :protocol => :tcp, :auto => true |
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 'date' | |
require 'time' | |
require 'uri' | |
require 'net/http' | |
require 'typhoeus' | |
class PasswordOfTheDay | |
TABLE1 = [ | |
[15, 15, 24, 20, 24], |
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 'eventmachine' | |
require 'digest/md5' | |
require 'fiber' | |
require 'thread' | |
unless defined?(ActiveSupport) | |
class String; def blank?; self !~ /[^[:space:]]/; end; end | |
class NilClass; def blank?; true; end; end | |
class Object; def blank?; false; end; 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
diff --git c/gc.c w/gc.c | |
index 861379b..2f4d596 100644 | |
--- c/gc.c | |
+++ w/gc.c | |
@@ -86,11 +86,13 @@ void *alloca (); | |
#endif | |
#define HEAP_MIN_SLOTS 10000 | |
#define FREE_MIN 4096 | |
+#define HEAP_SLOTS_GROWTH_FACTOR 1.8 | |