(Forked fork, that works on macos, too)
Makes little scrolly text jiffs in Flywheel colors.
- macos:
brew install fontconfig imagemagick gifsicle - Linux:
sudo apt install fontconfig imagemagick gifsicle
| // https://rust-lang.github.io/api-guidelines/future-proofing.html | |
| /* | |
| The following traits should never be used in bounds on data structures: | |
| * Clone | |
| … | |
| */ | |
| #[derive(Clone, Debug)] |
| use std::ops::Deref; | |
| struct StateFn(fn(&mut Machine) -> StateFn); | |
| impl Deref for StateFn { | |
| type Target = fn(&mut Machine) -> StateFn; | |
| fn deref(&self) -> &Self::Target { | |
| &self.0 | |
| } |
| =begin | |
| Message Pack vs similar utilities | |
| ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0] | |
| Packing | |
| user system total real | |
| pack: bert 60.850000 0.270000 61.120000 ( 62.003839) | |
| pack: bson 2.750000 0.010000 2.760000 ( 2.799844) | |
| pack: bson (moped) 12.260000 0.030000 12.290000 ( 12.468642) |
| -module(date_util). | |
| -compile(export_all). | |
| epoch() -> | |
| now_to_seconds(now()) | |
| . | |
| epoch_hires() -> | |
| now_to_seconds_hires(now()) | |
| . |
| # Run this file with `RAILS_ENV=production rackup -p 3000 -s thin` | |
| # Be sure to have rails and thin installed. | |
| require "rubygems" | |
| # We are not loading Active Record, nor the Assets Pipeline, etc. | |
| # This could also be in your Gemfile. | |
| gem "actionpack", "~> 3.2" | |
| gem "railties", "~> 3.2" | |
| # The following lines should come as no surprise. Except by |
| TestRocket is a simple, tiny testing library for Ruby 1.9. | |
| If => in a hash is a "hash rocket", then +-> and --> for tests should be | |
| "test rockets"! | |
| Simple syntax: | |
| +-> { block that should succeed } | |
| --> { block that should fail } |