Skip to content

Instantly share code, notes, and snippets.

View jashkenas's full-sized avatar

Jeremy Ashkenas jashkenas

View GitHub Profile

From Imperium by Ryszard Kapuściński, first published in Poland in 1993:

Page 277

It is not surprising that the Ukrainian Language Society was among those groups attacked and oppressed. The revolution in the Ukraine, like everywhere else, was waged at least partly over language. Half of the fifty-two million inhabitants of the Ukraine either do not speak Ukrainian, or they speak it poorly. Three hundred and fifty years of Russification have inevitably produced such a result. The ban against printing book in Ukrainian was in force for decades. As early as 1876, Alexander II ordered that instruction in Ukrainian schools take place only in Russian. Several months ago I visited the third-largest city in the Ukraine — Donetsk. The battle to open at least one elementary school teaching Ukrainian was by then already in its second year. Teachers assembled children in the park and there instructed them in Ukrainian. Teaching Ukrainian? Why, that was counterrevolution, an imperialist conspiracy!

Also in Donets

Keybase proof

I hereby claim:

  • I am jashkenas on github.
  • I am jashkenas (https://keybase.io/jashkenas) on keybase.
  • I have a public key whose fingerprint is 691E E60E 85BF 0C7F 9CA8 2051 C8D8 109B 7A3F 658B

To claim this, I am signing this object:

Here are some pointers on what to look for on a used bike purchase. Take a clipboard with you when viewing the bike, and look for the following items:

ENGINE Check the oil prior to starting, is it clean? Or at least filled to the correct level? Check the coolant (if applicable) is it filled properly? Check the air filter as well if possible. After all the checks, start the motor...does it start and run smooth? Any visible smoke coming out of the pipe(s)? Does the throttle rev smoothly? Any odd noises coming from the engine, like valve ticking or coughs, spits, sputters, or rattles? Does the clutch engage easily and does the shifter click naturally as you go into gear? (many bikes have a side stand safety feature that prevents the motor from going into gear while parked, raise the side stand before doing this...and then put it down while it's in gear/clutch in to see if the feature works). Check for oil leaks around the motor, any trails of dust/dirt build-up at any of the engine seams?

TIRES Are they new?

#!/bin/bash
seqs="public/_big_assets/imageseqs"
rm ${seqs}/*/montage*.jpg
for dir in ${seqs}/*
do
dir=${dir%*/}
base=${dir##*/}
graph "line" do
timeline :from => "jul 2008", :to => "yesterday",
:in => "months", :chunks => 120
data "List User Signups" do
time_query "select created_at from users
where (type = 'ListUser'
or converted_at is not null)
and disabled_at is null"
Wishing I had moved everything to Zenbe ... having Outlook issues (ugh). Rainy day in Midothian.
05:46 AM October 18, 2008 from mobile web
Stefanie Hahn
Discovering zenbe, a great webmail: http://www.zenbe.com
05:46 PM October 18, 2008 from Zenbe
yvesg
def display_in_an_applet
JRUBY_APPLET.setSize(@width, @height)
JRUBY_APPLET.background_color = nil
JRUBY_APPLET.double_buffered = false
JRUBY_APPLET.add self
JRUBY_APPLET.validate
# Add the callbacks to peacefully expire.
JRUBY_APPLET.on_stop { self.stop }
JRUBY_APPLET.on_destroy { self.destroy }
self.init
# Ruby-Processing is for Code Art.
# Send suggestions, ideas, and hate-mail to jashkenas [at] gmail.com
# Also, send samples and libraries.
#
# This class is a thin wrapper around Processing's PApplet.
# Most of the code here is for interfacing with Swing,
# web applets, going fullscreen, and drawing sliders.
#
# Revision 0.8
# - omygawshkenas
desc "Completely wipe and resurrect dev and test databases"
task :resurrect do
puts 'dropping and recreating dev and test dbs'
`rake db:drop RAILS_ENV=development`
`rake db:drop RAILS_ENV=test `
`rake db:create RAILS_ENV=development`
`rake db:create RAILS_ENV=test`
puts 'migrating dev back up'
`rake db:migrate`
puts 'loading reference data'
# Classes in org.jruby that were not loaded in a basic sketch
org.jruby.IErrno
org.jruby.JRubyApplet
org.jruby.JRubyClient
org.jruby.JRubyServer
org.jruby.JRubyService
org.jruby.MiniJava
org.jruby.RubyBigDecimal
org.jruby.RubyComplex