- Rails + SPA
- TDD Beginner tips for Rails
- Performances tests for Rails
- Nested Forms alternatives
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
-- activity.sql | |
select procpid, query_start, current_query from pg_stat_activity WHERE current_query <> '<IDLE>' order by query_start | |
-- cancel.sql | |
select pg_cancel_backend(procpid) | |
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
require 'benchmark/ips' | |
require 'ohm' | |
require 'dm-core' | |
require 'dm-redis-adapter' | |
Ohm.redis = Redic.new("redis://127.0.0.1:6379") | |
DataMapper.setup(:default, {:adapter => "redis"}) | |
class DMUser | |
include DataMapper::Resource |
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
Feature: champion uses dragonfly to process images | |
In order to be a champion | |
A user uses dragonfly | |
Background: | |
Given we are using the app for images | |
Given a stored image "beach.png" with dimensions 200x100 | |
Scenario: Go to url for original | |
When I go to the url for "beach.png", with format 'png' |
I hereby claim:
- I am wevtimoteo on github.
- I am wevtimoteo (https://keybase.io/wevtimoteo) on keybase.
- I have a public key ASCxVAq3Q_TDbyGbyaca2ZfGB9M1kFS-uZZhi0nxSEfIBQo
To claim this, I am signing this object:
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
%w( | |
months* | |
extract* | |
payment* | |
consolidate* | |
agenda* | |
brands | |
car_model* | |
car* | |
visit_types* |
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
# Refers to https://github.com/rubocop-hq/rubocop/pull/6686#discussion_r264747095 | |
cd rubocop | |
git subtree split -P lib/rubocop/ast -b lib/ast | |
git subtree split -P spec/rubocop/ast -b spec/ast | |
cd .. | |
mkdir rubocop-astx | |
cd rubocop-astx | |
git init |
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
const GitHubDeliveryManager = { | |
retryReasons: [ | |
"Couldn't connect to server", | |
"Service Timeout", | |
"An Exception Occurred", | |
"502 Bad Gateway", | |
"timed out" | |
], | |
sleep: function(lf_ms) { |
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
--- | |
engines: | |
rubocop: | |
enabled: true | |
channel: latest |
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
--- | |
styleguide: sourcelevel/linters | |
engines: | |
credo: | |
enabled: true | |
channel: latest | |
fixme: | |
enabled: true | |
remark-lint: | |
enabled: true |