View gibbon.rb
gibbon =
view ='app/views/', {instance_variable_for_templates: 5324},
campaign = gibbon.campaigns.create(
type: "regular",
options: {
list_id: 'xxxy',
from_email: '',
from_name: 'Your From',
subject: "the subject",
View docx_to_markdown.xslt
<?xml version="1.0"?>
<xsl:output method="text"/>
<xsl:template match="//w:p">

Resources for Machine Learning in Ruby


View clickable-element.html
<!-- This is the HTML element that, when clicked, will cause the popup to appear. -->
<button id="open-popup">Subscribe to our mailing list</button>
View gist:1a5275d9dbb692338607
Extracted from
Aglaonike (2nd century BCE), the first woman astronomer in Ancient Greece
Agnodike (4th century BCE), the first woman physician to practice legally in Athens
Arete of Cyrene (5th–4th centuries BCE), natural and moral philosopher, North Africa
Artemisia of Caria (c. 300 BCE), botanist
Aspasia of Miletus (4th century BCE), philosopher and scientist
Cleopatra the Alchemist - identity is unclear, but her book, The Chrysopoeia of Cleopatra, is[1] first recorded as existing in the 2nd century A.D./C.E. in Alexandria.
Diotima of Mantinea (4th century BCE), philosopher and scientist, ancient Greece (sources vary as to her historicity; possibly a fictionalized character based on Aspasia of Miletus)
Enheduanna (c. 2285–2250 BCE), Sumerian/Akkadian astronomer and poet
View ActiveRepository.rb
# MOTIVATION: As rails apps are growing, people are noticing the drawbacks
# of the ActiveRecord pattern. Several apps I have seen, and several
# developers I have spoken to are looking towards other patterns for object
# persistence. The major drawback with ActiveRecord is that the notion
# of the domain object is conflated with what it means to store/retrieve
# it in any given format (like sql, json, key/value, etc).
# This is an attempt to codify the Repository pattern in a way that would
# feel comfortable to beginner and seasoned Ruby developers alike.
View Open in Chrome from Safari.scpt
-- from
-- install FastScripts and place this AppleScript in the Scripts applications folder for Google Chrome.
-- For me that was ~/Library/Scripts/Applications/Safari
-- You can then assign it a keyboard shortcut. I went with Cmd-Shift-C
property theURL : ""
tell application "Safari"
set theURL to URL of current tab of window 1
end tell
tell application "Google Chrome"
View history.txt
* Only the releases of the stable versions are enumerated in principle. The releases of the unstable versions especially considered to be important are indicated as "not stable."
* The branches used as the source of each releases are specified, and the branching timing of them are also shown. BTW, before subversionizing of the repository, the term called "trunk" was not used, but this list uses it in order to avoid confusion.
* In order to show a historical backdrop, big conferences (RubyKaigi, RubyConf and Euruko) are also emurated. About the venues of such conferences, general English notations are adopted, in my hope.
* ruby_1_8_7 branch was recut from v1_8_7 tag after the 1.8.7 release becaouse of an accident.
* 1.2.1 release was canceled once, and the 2nd repelase called "repack" was performed. Although there were other examples similar to this, since the re-releases were performed during the same day, it does not write clearly in particular.
* Since 1.0 was released with the date in large quantities
View irb3.rb
#!/usr/bin/env ruby
# encoding: utf-8
# irb3 - Runs an IRB-esque prompt (but it's NOT really IRB!) over multiple
# versions of Ruby at once (using RVM)
# By Peter Cooper, BSD licensed
# Main dependency is term-ansicolor for each impl:
# rvm exec gem install term-ansicolor
View import-example.rb
# This is a basic example how to create an import from csv data. This could
# be called in a rake task:
namespace :db do
namespace :import do
desc "Import customer of old shop from csv"
task :customer => :environment do
csv_file = 'db/customer_data.csv'
importer =