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
| ; USAGE: | |
| ; 1. Install autohotkey. | |
| ; 2. Install the Firefox extension "CSS Reloader". | |
| ; 3. Save this script anywhere on your computer. | |
| ; 4. Open your website in Firefox. | |
| ; 5. In this script, replace "Expresto - Mozilla Firefox" with the title of the Firefox window you want to auto-refresh. | |
| ; 6. Run this script, it stays in the backgound. | |
| ; 7. Edit your website inside your preferred text editor or IDE. | |
| ; 8. Now, save your work, but instead of ctrl+s, use ctrl+alt+s (or altgr+s) and see Firefox refreshing stylesheets automagically in the background. |
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
| 'script configuration: | |
| 'the coordinates of each monitor, either of the full screen area or parts of it, need to be specified, ordered from left to right. | |
| 'to take taskbars and desktop toolbars into account when maximizing or moving a window, specify the workspace coordinates instead of | |
| 'the screen coordinates. both types of coordinates are shown for each monitor under UltraMon menu > About | |
| ' | |
| 'sample script configuration: | |
| 'two monitors at 1024x768, the first monitor is split in a left and right half, the second monitor isn't split: | |
| 'MONITORS = Array("0,0,512,768","512,0,1024,768","1024,0,2048,768") | |
| Option Explicit |
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
| # inheritance in yml files: | |
| development: &defaults | |
| adapter: mysql | |
| encoding: utf8 | |
| database: acme_development | |
| username: root | |
| test: | |
| <<: *defaults |
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
| # based on: | |
| # http://www.hackido.com/2010/12/install-ruby-on-rails-on-ubuntu.html | |
| # http://thekindofme.wordpress.com/2010/10/24/rails-3-on-ubuntu-10-10-with-rvm-passenger-and-nginx/ | |
| # http://ascarter.net/2011/01/02/rails-development-on-ubuntu-10.10.html | |
| sudo apt-get update | |
| sudo apt-get dist-upgrade | |
| sudo apt-get install build-essential | |
| sudo apt-get install git-core |
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
| ## based on the example at: | |
| ## http://gist.github.com/17371 | |
| ## | |
| ## put me in lib/un_haml.rb (in the haml-based project) | |
| ## | |
| ## call me on the command line thus: | |
| ## $ script/runner UnHaml app/views/layouts/application.html.haml | |
| ## $ script/runner UnHaml */*/*/*.haml | |
| ## | |
| class UnHaml < Haml::Engine |
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
| production: | |
| adapter: mysql | |
| database: my_db | |
| username: db_user | |
| password: <%= begin IO.read("/home/my_deploy_user/.db") rescue "" 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
| # General Apache options | |
| # AddHandler fastcgi-script .fcgi | |
| AddHandler cgi-script .cgi | |
| Options +FollowSymLinks +ExecCGI | |
| # If you don't want Rails to look in certain directories, | |
| # use the following rewrite rules so that Apache won't rewrite certain requests | |
| # | |
| # Example: | |
| # RewriteCond %{REQUEST_URI} ^/notrails.* |
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
| class ToHaml | |
| def initialize(path) | |
| @path = path | |
| end | |
| def convert! | |
| Dir["#{@path}/**/*.erb"].each do |file| | |
| `html2haml -rx #{file} #{file.gsub(/\.erb$/, '.haml')}` | |
| end | |
| 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
| ActiveRecord::Schema.define(:version => 20101119175732) do | |
| create_table "categories", :force => true do |t| | |
| t.string "name" | |
| t.string "shortname" | |
| t.datetime "created_at" | |
| t.datetime "updated_at" | |
| end | |
| create_table "categories_posts", :id => false, :force => true do |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
| <p> | |
| <a href="/signup/" class="multiline_button blue" style="width: 245px"> | |
| <big>Start Free Trial</big> | |
| <small>30-days free! Signup in 60 seconds</small> | |
| </a> | |
| </p> | |
| <p> | |
| <a href="/signup/" class="multiline_button brown" style="width: 245px"> | |
| <big>Start Free Trial</big> |