This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyApp::Application.routes.draw do | |
my_draw = Proc.new do | |
#get "widgets" => "widgets#index" | |
# add routes here | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
Cloning into rvm... | |
remote: Counting objects: 4672, done. | |
remote: Compressing objects: 100% (2350/2350), done. | |
remote: Total 4672 (delta 3021), reused 3189 (delta 1672) | |
Receiving objects: 100% (4672/4672), 1.56 MiB, done. | |
Resolving deltas: 100% (3021/3021), done. | |
WARNING: Could not source script '/usr/local/rvm/scripts/base', file does not exist. RVM will likely not work as expected. | |
WARNING: Could not source script '/usr/local/rvm/scripts/version', file does not exist. RVM will likely not work as expected. | |
WARNING: Could not source script '/usr/local/rvm/scripts/selector', file does not exist. RVM will likely not work as expected. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function card_select(e, card) { | |
document.getElementById("card_type").value = card; | |
var cards = document.getElementsByTagName("dl"); | |
for (x = 0; x < cards.length; x++) { | |
if (cards[x].className == "selected") | |
cards[x].className = ""; | |
} | |
e.className = "selected"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"<!-- [DocumentBodyStart:dd3b99e5-c157-40b9-a7ce-c57c6224ac57] --><div class=\"jive-rendered-content\"><p class=\"MsoNormal\">In what cannot be seen as a positive development, <a class=\"jive-link-external-small\" href=\"http://online.wsj.com/article/SB10001424052748704353504575596382919985208.html\" target=\"_blank\">Clearwire sent a “going concern” disclosure to the SEC</a> on Thursday and announced it is laying off 15% of its workforce. Further they have suspended their 4G WiMAX service launches in Denver and Miami and delayed the introduction of their own branded smartphone. According to Clearwire’s CFO, Eric Prusch, the combined moves are expected to save $100 to $200 million this year, and the company has enough cash on hand to last through the middle of next year.</p><p class=\"MsoNormal\" style=\"min-height: 8pt; height: 8pt; padding: 0px;\"> </p><p class=\"MsoNormal\">This is the second round of bad news for the beleaguered WiMAX provider. Last month <a class=\"jive-link-extern |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["Daily Deals", "Clothing & Accessories", "Home & Garden", "Baby, Kids & Toy", "Department Stores", "Pets", "Electronics", "Flowers & Gifts", "Sports & Recreation", "Food & Drink", "Automotive", "Health & Medical", "Beauty & Spas", "Travel", "Arts & Entertainment", "Other"]. | |
CATEGORIES = { | |
'Art, Craft & Supplies' => Category.find_by_name('Other'), | |
'Arts & Entertainment' => Category.find_by_name('Arts & Entertainment'), | |
'Automotive' => Category.find_by_name('Automotive'), | |
'Beauty & Spas' => Category.find_by_name('Beauty & Spas'), | |
'Classes & Workshops' => Category.find_by_name('Other'), | |
'Clothing & Accessories' => Category.find_by_name('Clothing & Accessories'), | |
'Dance' => Category.find_by_name('Arts & Entertainment'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img src="data:image/gif;base64,R0lGODlhOgAUANUAACAYGFWf6ZiDYPYeGccWE1qar70REfv/7/0Zcvrv4v+aW3ReSvxo2P+9veNdLeiERfg3pP48ItjFs9re6PrG+f9ra11INduQZv+qhPe9fdweM1JffvQbOP9JSf9bW/nmscOi1q2zw9lkYSMqP/+l//+ZmaGWif8zM/46OtogIEtUa//u/+d7lPK4aMAxMdaemJDb//97e9Q6QpSt3v8qKTA7VfTLidZRR////zgqIoWTs/0td//W1vxatfzHgv/pzSH5BAAHAP8ALAAAAAA6ABQAAAb/QJxwSCwah41GqRSrVDydqLTj8Thjy9Jxy+U2OijUaUwun8JUZyXGrjS6cO+ARq+bx3RUGltq8L48WxcqM0KDhXEVAw4PjY1iZg8ddCd7S0paRwkqKkILKhNxOB0DNkU7EWURCQw0ZZZMXCY1EwkWOqIJKDRWHys9FbuqrJSvVk1cPDkzEjkhOAkhzzgHEqHWODx4Ay0rCAMRDhwn4qsMAzfjJ4vpVB44LQAACwEPAZ4bArS2OTkb2TlwWfjHw9W6DCt2DFBwAIGDAxAi/KDwAQcDDhFMWeSgRwgGGBcKCLiHw0S/fyZGTHihMkFAHAOzGRyAUKECbw5wRPxBwgNP/w4PdGLAoRCFRxgvBBRApMwZDn04moVwKfBfg5k1F+LUaW6ADwocWoCNgKPHAKNdLKh8OiIqgKkvY14dQzOhVodcf5z7GjaqKbNouViosYKtW7hVZdLNehPvzr1guyVpsIMGigRpCRuW8JYqTIJ16trc+thrZLADUmiwjFmwZgFtOSP+LJNO3W8PSA9gRSDDaQ4PIZyFM7gw5w0LWuZQsWDDvwQaUkhHiCBFUBamIKSYKOIDCQ3XWxBNcQPOp8Ilc4yYlnxGcyEypBNokQABgZwUWCTQrjcQBAIpvCBEDykQIIIoRBwAxw0ENChfgxpoAKB0FErYIAERXsgCghw2YDTAhSCGKOKI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ey_smtp_settings = { | |
:domain => "my-domain.com", | |
:address => "smtp", | |
:port => 25, | |
:perform_deliveries => true | |
} | |
config.action_mailer.smtp_settings = ey_smtp_settings | |
config.action_mailer.delivery_method = :smtp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hey everyone! | |
At the school I work at I am a memeber of the Green Team. This weekend we are having an electronics recycling event. If you have any old cellphones, i-pods, computers, tvs, microwaves, or any other old electronic device you can bring it by and we will recycle it for you. | |
It is happening at Madison Elementary School, 5100 Madison Street Skokie Illinois from 9 to Noon. (I will be there from 10:30-12:30 helping out!) | |
I just wanted to throw it out there, becasue I know a lot of people have those old electronics that you just don't want to throw in the garbage. This is the perfect chance to get rid of them! | |
Have a wonderful weekend! | |
-Em |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
def self.nearby(lat, lon) | |
Place.all(:origin => [lat,lon], :within => '.5') | |
end | |
end | |
#then you can call this with | |
Place.nearby(session[:user_lat], session[:user_lon]) |
NewerOlder