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
/** | |
* Helvetica Neue Normal (No Stretch) | |
*/ | |
/* Helvetica Neue Black Font Stack */ | |
.{font-family: "HelveticaNeueBlack", "HelveticaNeue-Black", "Helvetica Neue Black", "HelveticaNeue", "Helvetica Neue", 'TeXGyreHerosBold', "Arial Black", sans-serif; font-weight:800; font-stretch:normal;} | |
/* Helvetica Neue Heavy Font Stack */ | |
.{font-family: "HelveticaNeueHeavy", "HelveticaNeue-Heavy", "Helvetica Neue Heavy", "HelveticaNeue", "Helvetica Neue", 'TeXGyreHerosBold', "Arial Black", sans-serif; font-weight:700; font-stretch:normal;} |
/* Side notes for calling out things | |
-------------------------------------------------- */ | |
/* Base styles (regardless of theme) */ | |
.bs-callout { | |
margin: 20px 0; | |
padding: 15px 30px 15px 15px; | |
border-left: 5px solid #eee; |
# original Obj-C code by http://www.kuma-de.com/blog/2012-05-27/3544 | |
UIFont.familyNames.each do |familyName| | |
NSLog("--- family name: %@", familyName) | |
UIFont.fontNamesForFamilyName(familyName).each do |fontName| | |
NSLog(" font name: %@", fontName); | |
end | |
end |
#!/usr/bin/env ruby | |
# A Ruby script to delete files older than X days in a given directory. Pretty simple. | |
# Like this: file_control.rb /User/pelgrim/Documents '*.pdf' 7 | |
# The command above you remove ALL your pdfs inside Documents older than SEVEN DAYS. | |
# Quickly written by pelgrim < guskald at gmail dot com > | |
unless ARGV.size == 3 | |
puts "Usage: file_control <directory> <filename pattern> <max age>" | |
exit 1 |
## Prepare ################################################################### | |
# Remove RVM | |
rvm implode | |
# Ensure your homebrew is working properly and up to date | |
brew doctor | |
brew update | |
## Install ################################################################### |
=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') |