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/.gitignore b/.gitignore | |
| index 57557c9..7955376 100644 | |
| --- a/.gitignore | |
| +++ b/.gitignore | |
| @@ -129,3 +129,4 @@ y.tab.c | |
| # /win32/ | |
| /win32/*.ico | |
| +ext/win32ole/.document | |
| diff --git a/array.c b/array.c |
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/gc.c b/gc.c | |
| --- a/gc.c | |
| +++ b/gc.c | |
| @@ -77,6 +77,41 @@ void *alloca (); | |
| #ifndef GC_MALLOC_LIMIT | |
| #define GC_MALLOC_LIMIT 8000000 | |
| #endif | |
| +#define HEAP_MIN_SLOTS 10000 | |
| +#define FREE_MIN 4096 | |
| + |
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
| How to setup Heroku Hostname SSL with GoDaddy SSL Certificate and Zerigo DNS | |
| Heroku recently added an exciting new 'Hostname SSL' option. This option offers the broad compatibility of IP-based SSL, but at 1/5 the price ($20 / month at the time of this writing). | |
| The following tutorial explains how to use Heroku's new 'Hostname SSL' option on your Heroku project. Before we begin, let's list what we're using here: | |
| * Heroku Hostname SSL | |
| * GoDaddy Standard SSL Certificate | |
| * Zerigo DNS |
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
| #!/usr/bin/env ruby | |
| workspaces = {} | |
| `wmctrl -d`.each_line do |line| | |
| columns = line.split | |
| if columns[7] == "N/A" | |
| workspace_name = columns[8..-1].join(" ") | |
| else | |
| workspace_name = columns[9..-1].join(" ") | |
| 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
| diff --git a/Gemfile b/Gemfile | |
| index fd90d42..9dd0146 100644 | |
| --- a/Gemfile | |
| +++ b/Gemfile | |
| @@ -1,4 +1,6 @@ | |
| source 'http://rubygems.org' | |
| +gem 'perftools.rb', '>= 0.4.4' | |
| +gem 'rack-perftools_profiler' | |
| gem 'rails', '3.0.0.rc' |
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
| module Authenticable | |
| def self.included(model) | |
| model.class_eval do | |
| extend ClassMethods | |
| include InstanceMethods | |
| field :username | |
| field :email | |
| field :crypted_password | |
| field :password_salt |
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
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
NewerOlder