Skip to content

Instantly share code, notes, and snippets.

View evanwalsh's full-sized avatar
❤️‍🔥
You make me feel almost human

Evan Walsh evanwalsh

❤️‍🔥
You make me feel almost human
View GitHub Profile
# This helper method will either generate a regular link => <a href="/whatever">Whatever</a>
# or it will generate a link with a "current class => <a href="/whatever" class="current">Whatever</a>
# Easy, huh?
def link_to_or_current(name, options = {}, html_options = {})
link_to_unless_current(name, options, html_options) do
link_to(name, options, { :class => :current })
end
---
Title: Insomnia
What is the disorder?:
- Too little or poor quality sleep caused by:
- Significant life stress
- Illness
- Emotional or physical discomfort
- Environmental factors like: light, noise, extreme temperature
- Some medications
http://www.myspace.com/wearewhitenoise
http://djearworm.com/
http://hawkinsmashups.blogspot.com/
http://www.bootieusa.com/ (scroll down to BEST OF BOOTIE ALBUM DOWNLOADS)
Question One:
An East German's reaction would depend on one major factor: age. In either case, having bought into the system would make their reaction negative. However, if the person was old, the anguish would be exponential. Being completely sold out for the system and then having that system disentigrate would bring dissatisfaction like no other. Most of the negativity would stem from the deep hatred of the West and its ways. East Germany and West Germany, separated by a small wall, could not have been farther apart. The wall coming down would not be as hard on the younger socialists as much, though. Even though they will have bought into the socialist philosophy, their longevity as a socialist would be nearly null. Therefore, change would not be all that difficult for them. Although, any age would struggle with the intense change in daily life.
Question Two:
I think Germany is much better off as a single country. I think it was incredibly good that the wall fell when it did. The USSR hadn't quite disso
Evan Walsh
Mrs. Cumberworth
AP English
26 January 2010
Fear No Evil
The LORD is my shepherd, I shall not be in want.
He makes me lie down in green pastures, he leads me beside quiet waters,
He restores my soul. 
He guides me in paths of righteousness for his name's sake.
Evan Walsh
Mr. Bolser
AP Art History
29 January 2010
Giotto di Bondone
The man who may have started the Italian Renaissance was not born in Florence. He was born in Vespignano in 1267. However, this was close enough to Florence that he came to impact the area eventually.
Proclaimed later as the “first genius” of the Italian Renaissance, he wasn’t always the famous artist. His father was a small-time farmer and Giotto (as he was commonly referred to) helped out around the farm. One theory says that the start of the great artist came about as Giotto was sketching on a flat rock a picture of his father’s sheep one day. Cimabue, a well-known painter at the time, happened to come upon Giotto in his travels. He was so impressed with the young boy’s skill, he took him on as his pupil. Another possibly story is that Giotto frequented Cimabue’s studio so much that he was eventually allowed to study painting underneath the famed painter.
Regardless of his origins, he went on to complete one of his earliest works:
# = YERB
#
# Who needs HAML when you have YAML + ERB? :)
#
# See example.yaml below for an example. You can run this code
# by cloning this gist and then `ruby _yerb.rb example.yaml`.
#
# Notice that you need Ruby 1.9 so the hash order is preserved.
# Obviously, this is just for fun. Definitely slow as hell.
#
Globalism is a great idea. However, it's all in the execution. Connecting the world is a wonderful deed (and I hope to see it done soon), but I fear that we will lose our "cottage industry", so to speak. I want the world to be unified for the betterment of man, but I don't want to lose the friendly service and the connection to local businesses. Therefore, I cannot fully say that I support globalization.
Human rights will definitely be (and already is) an issue. When outsourcing work to places with less stringent labor laws, companies are probably tempted to cut costs by cutting workplace rights. The only solution I can see is either some sort of global sanction against worker exploitation or consumers demanding moral business operations. Losing money during the labor process may be upsetting for companies, but losing money due to lack of sales will upset much more. Therefore, the businesses and the consumers are equally responsible.
National security is an issue, but I am not overly concerned. I
> #kill-defaults
g http://www.google.com/search?q=%s Google Search
m http://www.google.com/maps?q=%s Google Maps
i http://www.google.com/images?q=%s Google Image Search
tr http://translate.google.com/translate?u=%r&tl=%s Translate the current page
w http://wikipedia.org/wiki/Special:Search/%s Wikipedia Search
a http://amazon.com/s/?url=search-alias%3Daps&field-keywords=%s Amazon Search
imdb http://www.imdb.com/find?s=all&q=%s IMDB Search
nf http://www.netflix.com/Search?v1=%s Netflix Search
f http://flickr.com/search/?q=%s Flickr Search
@evanwalsh
evanwalsh / template.rb
Created October 23, 2010 20:36
My personal template for my Rails projects
# Evan Walsh Rails template - version 3
@after_blocks = []
def after_bundler(&block); @after_blocks << block; end
def say_wizard(text); say "\033[36m" + "wizard".rjust(10) + "\033[0m" + " #{text}" end
# Remove some junk I don't need
inside('public') do
FileUtils.rm_rf %w(index.html 404.html 422.html 500.html favicon.ico)