This file contains 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 TweetToTheWorld < Struct.new(:person) | |
extend Forwardable | |
#def delegators :person, :twitter_handle, :name | |
delegate :twitter_hande, to: :person | |
delegate :name, to: :person | |
def call | |
Tweetirific.tweet(handle, twitter_message) | |
end |
This file contains 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 CategoryCacheClearer < Struct.new(:article) | |
def call | |
article.category_list = '' | |
article.save | |
end | |
end | |
describe CategoryCacheClearer do | |
describe '#call' do | |
let(:article) { mock(:save, :category_list=) } |
This file contains 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
@Arc.module "Entities", (Entities, App, Backbone, Marionette, $, _) -> | |
class Entities.Map extends Entities.Model | |
initialize: ()-> | |
$.getJSON "locations/2/geometries.json", (data) -> | |
this.zones = data | |
App.MapApp.Show.Controller.showMap(this) |
This file contains 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
@Arc.module "Entities", (Entities, App, Backbone, Marionette, $, _) -> | |
class Entities.Map extends Entities.Model | |
initialize: ()-> | |
this.on "change", ()-> | |
alert "I changed myself" | |
$.getJSON "locations/2/geometries.json", (data) -> | |
this.zones = data | |
#App.vent.trigger("map:show", this) | |
#App.MapApp.Show.Controller.showMap(this) |
This file contains 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
task :rvm_app_alias, roles: :app do | |
run "rvm alias create #{application} #{rvm_ruby_string_evaluated}" | |
#run "rvm wrapper #{application} --no-links --all" | |
end | |
after "deploy:finalize_update", "deploy:rvm_app_alias" |
This file contains 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
SELECT DISTINCT("tracked_points"."decisecond_recorded_at") | |
FROM "tracked_points" WHERE | |
"tracked_points"."recorded_at" >= '2014-03-05 06:00:00.000000' |
This file contains 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
SELECT DISTINCT("tracked_points"."decisecond_recorded_at") | |
FROM "tracked_points" WHERE | |
"tracked_points"."decisecond_recorded_at" >= 1393987371 | |
ORDER BY decisecond_recorded_at |
This file contains 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
import org.voltdb.client.ClientFactory; | |
import com.google.gson.Gson; | |
import com.rabbitmq.client.Channel; | |
import com.rabbitmq.client.Connection; | |
import com.rabbitmq.client.ConnectionFactory; | |
import com.rabbitmq.client.QueueingConsumer; | |
public class Recv { |
This file contains 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 MyClass{ | |
{ | |
oneFunction: function(){ print "hi";} | |
} | |
function twoFunction(){ | |
print "bye"; | |
} | |
} |
This file contains 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
chmod: changing permissions of `/home/user/.rvm/log/1392754423': Operation not permitted | |
chmod: changing permissions of `/home/user/.rvm/log/1392754423/update_system.log': Operation not permitted | |
chmod: changing permissions of `/home/user/.rvm/log/1392754423/package_install_gawk_g++_make_libreadline6-dev_libyaml-dev_libsqlite3-dev_sqlite3_autoconf_libgdbm-dev_libncurses5-dev_automake_libtool_bison_pkg-config_libffi-dev.log': Operation not permitted | |
- failed - /home/user/.rvm/log/1392754423 |
OlderNewer