Skip to content

Instantly share code, notes, and snippets.

>> require 'rbosa'
=> true
>> t = OSA.app('iTunes')
=> <OSA::ITunes::Application:0x10151ce88 desc="'sign'($6B6F6F68$)">
>> track = t.current_track
=> <OSA::ITunes::Track:0x101519a58 desc="'obj '{ 'want':'prop', 'from':'null'(), 'form':'prop', 'seld':'pTrk' }">
>> track.name
=> "The Way I Are"
>> track.played_count
=> 1
The last few jobs I've had have proved to be somewhat disappointing. What I realized
after a few months was that it was mostly my fault for not asking the right questions
In a way a job interview is really for both parties. Not only do they have to think
that you fit in, but you have to think that you'll enjoy working there. Here's a
pretty long list of questions to pull from. Or you could ask them all, up to you.
General Questions:
1. What is the dress code?
2. What are the normal business hours?
sntjon ~ $ rvm install ruby-1.9.2
/Users/sntjon/.rvm/rubies/ruby-1.9.2-p0, this may take a while depending on your cpu(s)...
ruby-1.9.2-p0 - #fetching
ruby-1.9.2-p0 - #downloading ruby-1.9.2-p0, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8296k 100 8296k 0 0 483k 0 0:00:17 0:00:17 --:--:-- 591k
ruby-1.9.2-p0 - #extracting ruby-1.9.2-p0 to $
/Users/sntjon/.rvm/scripts/manage: line 1245: ruby-1.9.2-p0 - #extracted to $: command not found
sntjon ~ $ rvm --trace install ruby-1.9.2
+ [[ -z '' ]]
+ export 'PS4=-[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() > }'
+ PS4='-[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() > }'
-[/Users/sntjon/.rvm/scripts/cli] : 562 : __rvm_parse_args() > [[ -z '' ]]
-[/Users/sntjon/.rvm/scripts/cli] : 562 : __rvm_parse_args() > [[ -n '' ]]
-[/Users/sntjon/.rvm/scripts/cli] : 564 : __rvm_parse_args() > [[ 0 -eq 1 ]]
-[/Users/sntjon/.rvm/scripts/cli] : 564 : __rvm_parse_args() > [[ -n '' ]]
-[/Users/sntjon/.rvm/scripts/cli] : 14 : __rvm_parse_args() > [[ -n install ]]
-[/Users/sntjon/.rvm/scripts/cli] : 15 : __rvm_parse_args() > rvm_token=install
class User < ActiveRecord::Base; end
User.table_name = "tblUsers"
User.first
ActiveRecord::ActiveRecordError: Table tblusers does not exist
from /Users/sntjon/.rvm/gems/jruby-1.5.3/gems/activerecord-2.3.8/lib/active_record/base.rb:1301:in `columns'
from /Users/sntjon/.rvm/gems/jruby-1.5.3/gems/activerecord-2.3.8/lib/active_record/base.rb:1314:in `column_names'
from /Users/sntjon/.rvm/gems/jruby-1.5.3/gems/activerecord-2.3.8/lib/active_record/base.rb:2887:in `inspect'
from /Users/sntjon/.rvm/rubies/jruby-1.5.3/lib/ruby/1.8/irb.rb:310:in `output_value'
@jondruse
jondruse / machine.js
Created April 20, 2020 19:13
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@jondruse
jondruse / machine.js
Created April 12, 2021 16:11
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions