UPDATE a fork of this gist has been used as a starting point for a community-maintained "awesome" list: machine-learning-with-ruby Please look here for the most up-to-date info!
- liblinear-ruby: Ruby interface to LIBLINEAR using SWIG
| # config/initializers/source_maps.rb | |
| if Rails.env.development? | |
| require 'open3' | |
| module CoffeeScript | |
| class SourceMapError < StandardError; end; | |
| class << self | |
| def map_dir |
| // | |
| // Variables | |
| // -------------------------------------------------- | |
| // Global values | |
| // -------------------------------------------------- | |
| // Grays |
| var fragment = document.createDocumentFragment(); | |
| for (var i = 0; i < 10; i++) { | |
| var child = document.createElement('div'); | |
| // here | |
| fragment.appendChild(child); | |
| } | |
| document.getElementById('parent').appendChild(fragment); |
| /* ---------------------------------------------------------- */ | |
| /* */ | |
| /* A media query that captures: */ | |
| /* */ | |
| /* - Retina iOS devices */ | |
| /* - Retina Macs running Safari */ | |
| /* - High DPI Windows PCs running IE 8 and above */ | |
| /* - Low DPI Windows PCs with IE zoomed in */ | |
| /* - Android hdpi devices and above */ | |
| /* - Android tvdpi devices, including Google Nexus 7 */ |
#Rails
##Creating a Rails project With the command line, navigate to where you want the project folder to be generated (e.g. documents/my_rails_projects/) and type the following to create a project called project_name:
rails new project_name
Navigate to that folder and type the following to create a controller called posts:
| Steps to install and run PostgreSQL 9.2 using Homebrew (Mac OS X) | |
| (if you aren't using version 9.1.5, change line 6 with the correct version) | |
| 1. launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist | |
| 2. mv /usr/local/var/postgres /usr/local/var/postgres91 | |
| 3. brew update | |
| 4. brew upgrade postgresql | |
| 5. initdb /usr/local/var/postgres -E utf8 | |
| 6. pg_upgrade -b /usr/local/Cellar/postgresql/9.1.5/bin -B /usr/local/Cellar/postgresql/9.2.0/bin -d /usr/local/var/postgres91 -D /usr/local/var/postgres | |
| 7. cp /usr/local/Cellar/postgresql/9.2.0/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/ |