I hereby claim:
- I am bugant on github.
- I am bugant (https://keybase.io/bugant) on keybase.
- I have a public key whose fingerprint is 1C65 1880 62C6 6ED5 D6D1 9B5C D7EE A8AE 294F B43C
To claim this, I am signing this object:
| alias g="git" | |
| if [ -f /usr/share/bash-completion/completions/git ]; then | |
| . /usr/share/bash-completion/completions/git | |
| __git_complete g __git_main | |
| fi |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName:'Ember Twiddle', | |
| boundProp: "initial value" | |
| }); |
I hereby claim:
To claim this, I am signing this object:
| require 'resque-scheduler' | |
| class Foo | |
| def self.queue | |
| :foo | |
| end | |
| def message | |
| 'hello from foo' | |
| end |
| matteo@fungo ~$ redis-cli | |
| redis 127.0.0.1:6379> config get save | |
| 1) "save" | |
| 2) "3600 1 300 100 60 10000" | |
| redis 127.0.0.1:6379> config set save "3600 2 200 50" | |
| OK | |
| redis 127.0.0.1:6379> config get save | |
| 1) "save" | |
| 2) "3600 2 200 50" | |
| redis 127.0.0.1:6379> |
| gem 'rails-api' | |
| gem 'active_model_serializers' | |
| gem_group :development, :test do | |
| gem 'debugger' | |
| gem 'rspec-rails' | |
| gem 'shoulda-matchers' | |
| gem 'factory_girl_rails' | |
| end |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'bundler/setup' | |
| require 'celluloid' | |
| class Table | |
| include Celluloid | |
| CHOPSTICK_FREE = 0 | |
| CHOPSTICK_USED = 1 |
| require 'delegate' | |
| class Account < Struct.new(:owner, :amount) | |
| end | |
| class MoneyTransferContext < Struct.new(:source, :destination) | |
| def transfer(amount) | |
| # applico i ruoli ai modelli "stupidi" | |
| source_account = SourceRole.new(source) | |
| destination_account = DestinationRole.new(destination) |
| require "em-synchrony" | |
| require "em-synchrony/em-http" | |
| class EchoUdpServer < EventMachine::Connection | |
| def post_init | |
| @f = Fiber.current | |
| end | |
| def receive_data(data) | |
| @f.resume(data) |