Skip to content

Instantly share code, notes, and snippets.

View iBublik's full-sized avatar

Artem Piankov iBublik

View GitHub Profile
@iBublik
iBublik / Links.txt
Last active August 8, 2018 01:45
Useful links
@iBublik
iBublik / 20150402084453_create_identities.rb
Last active October 4, 2018 04:47 — forked from ssuprunenko/20150402084453_create_identities.rb
Rails 4, Devise, Omniauth (with multiple providers)
class CreateIdentities < ActiveRecord::Migration
def change
create_table :identities do |t|
t.string :provider
t.string :uid
t.integer :user_id
t.timestamps null: false
end
@iBublik
iBublik / gist:a56f8de37a301d680550
Created January 16, 2016 14:36 — forked from palkan/gist:d89757a90cfbeb047c63
Rails debug cheat sheet

Setup

Replace IRB with Pry (in your Gemfile) and Byebug with pry-byebug.

gem 'pry-rails', group: [:development, :test]
gem 'pry-byebug', group: [:development, :test]

Using PRY

@iBublik
iBublik / test-guru-question.txt
Created January 30, 2019 16:19
Вопрос из теста CSS от TestGuru
Is it a language that describes the look and feel of web pages?
Correct answer to CSS
Incorrect answer to CSS