The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55
will be the first on the list, already selected:
🇧🇷 [pt-BR]
The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55
will be the first on the list, already selected:
🇧🇷 [pt-BR]
I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)
source 'https://rubygems.org' | |
gem 'rake' | |
gem 'lotus-router' | |
gem 'lotus-controller' | |
gem 'lotus-view' | |
group :test do | |
gem 'rspec' | |
gem 'capybara' |
require "active_record" | |
namespace :db do | |
db_config = YAML::load(File.open('config/database.yml')) | |
db_config_admin = db_config.merge({'database' => 'postgres', 'schema_search_path' => 'public'}) | |
desc "Create the database" | |
task :create do | |
ActiveRecord::Base.establish_connection(db_config_admin) |
#!/usr/bin/env ruby | |
# Teststack: A way to preload your Rails app stack for your iterative test running | |
# Based on ideas from Jesse Storimer here: | |
# http://www.jstorimer.com/blogs/workingwithcode/8136295-screencast-faster-rails-test-runs-with-unix | |
# https://gist.github.com/jstorimer/5862436 | |
# Usage: Run this file without args to run the server; run it with test file args to connect to the server and run tests | |
require 'socket' |
You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.
# For context, this was inspired by the RubyRogues podcast #79 where they talked about | |
# documentation in Ruby, and specifically grumbled quite a bit about the failings of RDoc. | |
# | |
# http://rubyrogues.com/079-rr-documenting-code/ | |
# | |
# As someone who's spent a lot of time using an IDE for programming C# and Java, I think | |
# Ruby could do a lot better at putting documentation at our fingertips as we program. | |
# | |
# Maybe making the documentation part of the structure of the code would facilitate this? | |
# |
set list listchars=tab:\ \ ,trail:· |
# this don't work (bundler don't support nested platform/grouping https://github.com/carlhuda/bundler/issues/1298) | |
group :development, :test do | |
gem 'pg', :platforms => :ruby | |
gem 'activerecord-jdbcpostgresql-adapter', :platforms => :jruby | |
end | |
# you should do something like this | |
group :development, :test do | |
gem 'pg' if RUBY_PLATFORM != 'java' | |
gem 'activerecord-jdbcpostgresql-adapter' if RUBY_PLATFORM == 'java' |