Skip to content

Instantly share code, notes, and snippets.

@itstommymorgan
itstommymorgan / my_macbook_install.sh
Last active August 26, 2022 15:38
Install script for my_macbook
#!/bin/bash
mkdir -p ~/projects/itstommymorgan
root_path=~/projects/itstommymorgan/my_mackbook
git clone git@github.com:itstommymorgan/my_macbook.git ${root_path}
pip3 install --upgrade pip
pip3 install ansible
# Set the path so that the ansible commands are accessible
python_dir=/Users/`whoami`/Library/Python
cd $python_dir
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFb6zZ4Z6VJyCIZGEvnXC9bhLA8PgGRKqaAa5tD35LmC tmorgan@crystalknows.com

Keybase proof

I hereby claim:

  • I am wellbredgrapefruit on github.
  • I am duwanis (https://keybase.io/duwanis) on keybase.
  • I have a public key whose fingerprint is AF72 03C8 BCD9 D42F 8444 A597 858F 6D93 980B FBC7

To claim this, I am signing this object:

def on_unsubscribe(incoming)
@payload = incoming.payload
# puts fired_at
# puts action
# puts reason
# puts id
# puts list_id
# puts email
# puts email_type
# puts payload_with_email
def show
["twitter", "facebook", "tumblr"].each do |service|
account_name = Authentication.where(:provider => service, :user_id => current_user.id).first.try(:accountname)
self.instance_variable_set("@#{service}", account_name)
end
end
@itstommymorgan
itstommymorgan / Virtual Book Club
Created November 2, 2010 18:17
Some basic ideas for the "virtual book club" that was pitched earlier. All are open to discussion.
Name:
We may want to pick something just so that we have a unique identifier
we can use on the interwebs.
Focus:
We're mostly coders, so it makes sense that we'd have a focus on comp sci
and programming related books. I don't know that we necessarily need to
stay there, though. There are plenty of other books - fiction and non - that
the group as a whole might be interested in reading and discussing. To that
end, I don't think it's necessary to create an explicit scope.
Loaded suite test_chop
Started
.
Finished in 0.002076 seconds.
1 tests, 19 assertions, 0 failures, 0 errors
class Parent
def foo
puts "I'm a good parent."
end
end
module Interloper
def foo
puts "I've got candy in the van."
end
class SomeParent
def foo
puts "Parenting is fun."
end
end
module SomeModule
def foo
puts "Module time."
end
# If I were, say, working on a Swing app in JRuby
# This is code I'd love to be able to write...
main_window.ok_button.when_clicked do |event|
if validate_form
controller.submit_form (form_data)
else
display_error_messages
end
end