Skip to content

Instantly share code, notes, and snippets.

View hipek's full-sized avatar

Jacek Hiszpanski hipek

  • Tooploox
  • Wroclaw/Poland
View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@hipek
hipek / pyenv+direnv on OSX.md
Created November 13, 2018 08:48 — forked from alexhayes/ pyenv+direnv on OSX.md
Awesomely easy virtualenvs on OSX using pyenv and direnv

Awesomely easy virtualenvs on OSX using pyenv and direnv

Never forget to activate that virtualenv or set that environment variable ever again...

Install

  1. Install pyenv

     brew install pyenv
    
@hipek
hipek / 01-activerecord.rb
Created August 1, 2016 06:17 — 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
@hipek
hipek / gist:08e93f48186e8e58b13a
Created May 22, 2015 06:13
meteor - load yaml
yaml = __meteor_bootstrap__.require('js-yaml')
fs = __meteor_bootstrap__.require('fs')
content = fs.readFileSync(file, 'utf8')
object = yaml.load(content)