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
// ==UserScript== | |
// @name Czytam Prawicowe Strony Dla Beki | |
// @description Pokazuje pasek "czytam dla beki" na mocno prawicowych serwisach | |
// @icon http://tomash.wfb-pol.org/userscripts/dlabeki/icon32.png | |
// @icon64 http://tomash.wfb-pol.org/userscripts/dlabeki/icon128.png | |
// @version 1.0.0 | |
// @license MIT | |
// @include http://niezalezna.pl/* | |
// @include http://*.niezalezna.pl/* | |
// @include http://naszeblogi.pl/* |
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
// microwebapp microbenchmark, D/vibe version | |
import vibe.d; | |
void index(HttpServerRequest req, HttpServerResponse res) | |
{ | |
res.renderCompat!("index.dt")(); | |
} | |
void show(HttpServerRequest req, HttpServerResponse res) |
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
6733 /app/shared/bundle/ruby/1.8/gems/newrelic_rpm-3.1.0/lib/new_relic/agent/transaction_sampler.rb:106:String | |
6272 /app/shared/bundle/ruby/1.8/gems/activemodel-3.0.9/lib/active_model/attribute_methods.rb:297:__node__ | |
5060 /app/shared/bundle/ruby/1.8/gems/haml-3.1.2/lib/haml/util.rb:241:String | |
3136 /app/shared/bundle/ruby/1.8/gems/activemodel-3.0.9/lib/active_model/attribute_methods.rb:296:__node__ | |
3036 /app/shared/bundle/ruby/1.8/gems/haml-3.1.2/lib/haml/util.rb:241:Array | |
2476 /app/releases/20110722072656/app/helpers/application_helper.rb:42:String | |
1991 /app/shared/bundle/ruby/1.8/gems/activerecord-3.0.9/lib/active_record/attribute_methods/read.rb:80:__node__ | |
1568 /app/shared/bundle/ruby/1.8/gems/activemodel-3.0.9/lib/active_model/attribute_methods.rb:298:__node__ | |
1116 /app/shared/bundle/ruby/1.8/gems/activerecord-3.0.9/lib/active_record/attribute_methods/write.rb:14:__node__ | |
1012 /app/shared/bundle/ruby/1.8/gems/haml-3.1.2/lib/haml/util.rb:248:Array |
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
source 'http://rubygems.org' | |
gem "mongoid" | |
gem "bson_ext" | |
gem 'mongoid_denormalize' | |
gem "fabrication" | |
gem 'httparty' | |
gem 'acts_as_api' | |
gem "httparty" |
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 "daemon_spawn" | |
require "socket" | |
require "tmpdir" | |
require 'twitter/json_stream' | |
require 'json' | |
require "./config/environment" | |
# todo: write tests | |
class TwitterWorker |
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
tomek@asus-laptop:~/ruby_apps/backup$ bundle exec rspec spec/ | |
1) Backup::Encryptor::OpenSSL when a block is provided | |
Failure/Error: encryptor.password.should == "my_secret_password" | |
expected: "my_secret_password" | |
got: nil (using ==) | |
# ./spec/encryptor/open_ssl_spec.rb:37 | |
2) Backup::Encryptor::OpenSSL when a block is provided |
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 Calculator::PulpRate < Calculator | |
preference :category1_rate, :decimal, :default => 0 | |
preference :category2_rate, :decimal, :default => 0 | |
preference :category3_rate, :decimal, :default => 0 | |
preference :category4_rate, :decimal, :default => 0 | |
preference :category5_rate, :decimal, :default => 0 | |
WEIGHT_RANGES = { | |
0..350 => :preferred_category1_rate, | |
351..500 => :preferred_category2_rate, |
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
# fails after one call even when not doing anything invasive at all: | |
Devise::PasswordsController.class_eval do | |
# POST /resource/password | |
def create | |
# email is not unique, so iterate amongst all the users | |
resource_class.where(:email => params[resource_name][:email]).all.each do |res| | |
logger.info res.username | |
end | |
redirect_to new_session_path(resource_name) |
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
We build our client experience | |
Developing software is a complicated and challenging task. Therefore we are happy to make it great experience for our clients. By hiring only experts and having them work within great process, we put our best effort to create outstanding communication and best quality. | |
Every client is different and so is every project. We adjust our work style to best fit your project needs. Whatever is the key in your business is our goal as well: time to market, quality, user experience. | |
Agile | |
We use Scrum, Kanban and XP mixture as a base for our process, although we keep in mind that business requirements are the most important factor. Therefore we eliminate everything that does not bring a value for the project, adjusting our process to suit our clients while motivating team to create outstanding software. | |
100% of our production code is pair programmed or goes through code review. We use TDD/BDD, Continuous Integration and extensive human tests. We believe quality is the key to customer e |
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 AddTranslationsTable < I18n::Backend::Database::Migration | |
def self.up | |
create_table :translation_migrations do |t| | |
t.string :version | |
end | |
create_table :translations do |t| | |
t.string :locale | |
t.string :key | |
t.text :value |