Skip to content

Instantly share code, notes, and snippets.

View amalkov's full-sized avatar

Alex Malkov amalkov

View GitHub Profile
@amalkov
amalkov / 01-activerecord.rb
Created December 1, 2015 22:23 — forked from janko/01-activerecord.rb
PostgreSQL JSON querying in Sequel (my presentation from our local Ruby meetup)
require "active_record"
ActiveRecord::Base.establish_connection('postgres:///testing')
ActiveRecord::Migration.verbose = false
ActiveRecord::Migration.class_eval do
create_table :played_quizzes, force: true do |t|
t.integer :player_ids, array: true
t.json :quiz_snapshot
end

Front-end Tools

Test

Jasmine vs Mocha + Chai...

Linters

JSCS vs ESLint...

@amalkov
amalkov / 1.md
Created November 10, 2015 11:07 — forked from richardbatty/1.md
SOLID Workshops

Workshop 1

What is SOLID?

Requirements always change. We need to write code that is able to change in the future. The process of doing so is usually called design. Design principles are often-cited rules that lead to easily-changed code. Design principles have been derived from the initial goal: to have easily-changed code. They are not arbitrary rules. SOLID principles are an often-used set of design principles.

@amalkov
amalkov / hack.sh
Created April 17, 2012 09:35
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#