This file contains hidden or 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
| var http = require('http'), | |
| express = require("express"), | |
| sys = require("sys"), | |
| io = require('socket.io'); | |
| var app = express.createServer(); | |
| app.set('view engine', 'jade'); | |
| app.get("/", function(req, res){ |
This file contains hidden or 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 File.dirname(__FILE__) + '/config/environment' | |
| run ActionController::Dispatcher.new |
This file contains hidden or 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 'rubygems' | |
| require 'mechanize' | |
| require 'httparty' | |
| # Ugly code, for an ugly hack. | |
| # Hey, if Lighthouse didn't suck then none of this would happen. | |
| # It's been lotsa fun coding it though, so I suppose I should be thankful for the "opportunity" |
This file contains hidden or 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
| Surround these with : e.g. :calling: | |
| +1 | |
| -1 | |
| bulb | |
| calling | |
| clap | |
| cop | |
| feet |
This file contains hidden or 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
| ;; emacs configuration | |
| (push "/usr/local/bin" exec-path) | |
| (add-to-list 'load-path "~/.emacs.d") | |
| (setq make-backup-files nil) | |
| (setq auto-save-default nil) | |
| (setq-default tab-width 2) | |
| (setq-default indent-tabs-mode nil) | |
| (setq inhibit-startup-message t) |
This file contains hidden or 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 a/src/org/jruby/RubyProcess.java b/src/org/jruby/RubyProcess.java | |
| index 4d16468..ac6a105 100644 | |
| --- a/src/org/jruby/RubyProcess.java | |
| +++ b/src/org/jruby/RubyProcess.java | |
| @@ -29,6 +29,10 @@ | |
| ***** END LICENSE BLOCK *****/ | |
| package org.jruby; | |
| +import java.lang.management.ManagementFactory; | |
| +import java.lang.management.ThreadMXBean; |
This file contains hidden or 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
| send_file '/path/to/404.html', :type => 'text/html; charset=utf-8', :status => 404 | |
| render :file => "public/404.html", :status => 404, :layout => false |
This file contains hidden or 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
| FactoryGirl.define do | |
| sequence :email do |n| | |
| "user#{n}@example.com" | |
| end | |
| factory :user do | |
| password "test" | |
| aliased_as :author | |
| end |
This file contains hidden or 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
| export RUBY_HEAP_MIN_SLOTS=1000000 | |
| export RUBY_HEAP_SLOTS_INCREMENT=1000000 | |
| export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 | |
| export RUBY_GC_MALLOC_LIMIT=1000000000 | |
| export RUBY_HEAP_FREE_MIN=500000 |
This file contains hidden or 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 'rubygems' | |
| require 'benchmark' | |
| require 'erb' | |
| require 'erubis' | |
| require 'bundler' | |
| #gem 'haml', '3.0.21' | |
| # gem 'haml', '3.1.0.alpha.14' | |
| require 'haml' |