- version 3.6
Check those constraints:
$this->anything()
| #!/bin/bash | |
| # have to hand install this one sorry http://www.cmake.org/files/v2.8/cmake-2.8.3-Darwin-universal.tar.gz | |
| if [ "$1" == "cleanup" ]; then | |
| echo "Cleaning up old luajit install" | |
| cd /usr/local/share | |
| sudo rm -rf lua luajit-2.0.0-beta6 |
| " copy all this into a vim buffer, save it, then... | |
| " source the file by typing :so % | |
| " Now the vim buffer acts like a specialized application for mastering vim | |
| " There are two queues, Study and Known. Depending how confident you feel | |
| " about the item you are currently learning, you can move it down several | |
| " positions, all the way to the end of the Study queue, or to the Known | |
| " queue. | |
| " type ,, (that's comma comma) |
| type = :info | |
| time = Time.now | |
| 2_000_000.times do | |
| msg = case type | |
| when :success then 'alert-success' | |
| when :error then 'alert-danger' | |
| when :warn then 'alert-warning' | |
| when :info then 'alert-info' | |
| end |
| #!/usr/bin/env ruby | |
| %w|rubygems active_record irb|.each {|lib| require lib} | |
| ActiveSupport::Inflector.inflections.singular("toyota", "toyota") | |
| ActiveRecord::Base.logger = Logger.new(STDOUT) | |
| ActiveRecord::Base.establish_connection( | |
| :adapter => "sqlite3", | |
| :database => ":memory:" | |
| ) |
| --[[! | |
| -- @return The current time in UTC | |
| --]] | |
| function gmtime() | |
| return os.time(os.date("!*t")); | |
| end |