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 Kitten | |
| def clothing | |
| [] | |
| end | |
| end | |
| kitten = Kitten.new | |
| kitten.clothing | |
| => [] |
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
| 1.9.2p290 :002 > class String | |
| 1.9.2p290 :003?> def quote | |
| 1.9.2p290 :004?> "'#{self}'" | |
| 1.9.2p290 :005?> end | |
| 1.9.2p290 :006?> end | |
| => nil | |
| 1.9.2p290 :007 > def omgLifeIsWonderful(language) | |
| 1.9.2p290 :008?> unless language.blank? | |
| 1.9.2p290 :009?> "I program in the language #{language.quote} and life is wonderful" | |
| 1.9.2p290 :010?> else |
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
| Shhhh... I'm wearing kitten mittens now. | |
| Shhhh... I'm wearing kitten mittens now. | |
| Shhhh... I'm wearing kitten mittens now. | |
| Hey, I'm Ken. | |
| Sfaf | |
| Hey, You're not Ken. | |
| Hey guys. | |
| Hello | |
| Sdfguhdfk ghdf kfj fj hfjghdkfjgdfhgkdjhg dkjfh dfkljghdlkjgh ddfk gdflkjghdf kh dflkgjh dflkj dfhlgkj dfg | |
| Asdasd |
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
| require 'rubygems' | |
| require 'amqp' | |
| def process(exchange_name, queue_name, configuration, key) | |
| AMQP.start(configuration) do |connection| | |
| channel = AMQP::Channel.new(connection) | |
| exchange = channel.fanout("amq.fanout") | |
| queue = channel.queue(queue_name, | |
| :durable => true, |
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
| package com.pandemic.recommendation_core.web | |
| import akka.actor._ | |
| import akka.actor.Actor.actorOf | |
| import akka.http._ | |
| import org.eclipse.jetty.server.Server | |
| import org.eclipse.jetty.servlet.ServletHolder | |
| import org.eclipse.jetty.servlet.ServletContextHandler | |
| import org.eclipse.jetty.http.security.Constraint; | |
| import org.eclipse.jetty.http.security.Credential; |
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
| require 'rubygems' | |
| require 'active_support/all' | |
| module Haha | |
| extend ActiveSupport::Concern | |
| module ClassMethods | |
| def make_lol(&block) | |
| define_method :lol do | |
| puts instance_eval &block |
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 OmgLol < HTTParty::Request | |
| def perform(&block) | |
| validate | |
| setup_raw_request | |
| chunked_body = nil | |
| # stored locally, changed from just using the method | |
| http_client = http | |
| http_client.ciphers = 'RC4-SHA' |
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
| cd /Library/StartupItems/ | |
| mv: NortonMissedTasks, SMC, SymAutoProtect | |
| cd /Library/Application Support | |
| mv: Symantec |
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
| OmgPullRequest::Plugin.initialize do |args| | |
| puts "initialize" | |
| OmgPullRequest::Plugin.subscribe("closed") do |args| | |
| puts "closed: #{args[:pull_request].number}" | |
| end | |
| OmgPullRequest::Plugin.subscribe("merged") do |args| | |
| puts "merged: #{args[:pull_request].number}" | |
| 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
| /home/deploy/.rbenv/versions/1.9.3-p362/bin/ruby /home/deploy/.rbenv/versions/1.9.3-p362/bin/rake assets:precompile:all RAILS_ENV=qa RAILS_GROUPS=assets --trace | |
| ** Invoke assets:precompile:all (first_time) | |
| ** Execute assets:precompile:all | |
| ** Invoke assets:precompile:primary (first_time) | |
| ** Invoke assets:environment (first_time) | |
| ** Execute assets:environment | |
| ** Invoke environment (first_time) | |
| ** Execute environment | |
| ** Invoke tmp:cache:clear (first_time) | |
| ** Execute tmp:cache:clear |