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
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
#example | |
class Request | |
attr_accessor :delegate | |
def self.initWithPath(*args, &block) | |
instance = allocate | |
instance.myInitializer(*args, &block) | |
instance | |
end |
plugins: | |
sitemap_generator: # all optional | |
file_name: sitemap.xml | |
exclude_id: | |
- search.html | |
- pages.html | |
change_frequency_custom_name: changefreq | |
priority_custom_variable_name: priority |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
require "mysql_big_table_migration_helper" | |
class AddIndexOnSomeColumnToSomeTable < ActiveRecord::Migration | |
extend MySQLBigTableMigrationHelper | |
def self.up | |
add_index_using_tmp_table :some_table, :some_column | |
end |
Do not use rvm (or install and run from JRuby). The google-appengine gem must install into your system MRI. The appengine-sdk gem includes a complete Java app server. We bootstrap Java from MRI, then your app runs inside a servlet container (with access to all the APIs) using the version of JRuby installed into each app.
We assumed Rails 2 would never work without rubygems, and we committed to gem bunlder for JRuby on App Engine, so we were waiting for Rails 3. Fortunately, Takeru Sasaki was able to patch the Rails 2.3.x calls to rubygems, and now we have it working. Rails 2.3.x currently spins up several seconds faster than Rails 3, and just a few seconds behind Sinatra.
See the TInyDS version also: gist.github.com/gists/269075