Skip to content

Instantly share code, notes, and snippets.

View gotar's full-sized avatar
🏠
Working from home

Oskar Szrajer gotar

🏠
Working from home
View GitHub Profile
%button.btn.dropdown-toggle{ "data-toggle"="dropdown }
Artice
%span
@gotar
gotar / .gitconfig
Created November 5, 2013 08:38
My ~/.gitconfig
[user]
name = Oskar Szrajer
email = oskarszrajer@gmail.com
[alias]
br = branch
co = checkout
ci = commit
df = diff
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
@gotar
gotar / .bash_profile
Created November 8, 2013 11:44
.bash_profile
export EDITOR=mvim
alias l='ls'
alias g='git'
alias sl='shelly list'
alias sc='shelly console'
alias e='mvim'
alias bers='bundle exec rspec'
ll () {
@gotar
gotar / db.rake
Created May 16, 2016 13:40 — forked from rpanachi/db.rake
Rakefile for Sequel database operations
namespace :db do
require 'sequel'
Sequel.extension(:migration)
MIGRATIONS_PATH = 'db/migrations'
def db_conn_env
ENV["BOOKSHELF_DATABASE_URL"]
end
@gotar
gotar / .vimrc
Created August 11, 2016 15:29
vimrc file
set nocp
set encoding=utf-8
call plug#begin('~/.vim/plugged')
Plug 'kien/ctrlp.vim'
Plug 'rking/ag.vim'
Plug 'tpope/vim-bundler'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-endwise'
@gotar
gotar / test_mapper.rb
Created December 9, 2015 14:11
mapper problem
require 'rom-mapper'
class MyMapper1 < ROM::Mapper
reject_keys true
attribute :foo, from: [:bar, :baz] do |bar, baz|
[bar, baz]
end
end
@gotar
gotar / vimrc
Created September 28, 2017 08:54
My vimrc
set nocp
set encoding=utf-8
call plug#begin('~/.vim/plugged')
let g:plug_url_format = 'git@github.com:%s.git'
Plug 'kien/ctrlp.vim'
Plug 'rking/ag.vim'
Plug 'tpope/vim-bundler'
@gotar
gotar / .vimrc
Created November 14, 2012 09:00
My vim rc
" Pathogen *******************************************************************
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
" General ********************************************************************
set nocompatible
set encoding=utf-8
set fileencodings=utf-8,latin2
@gotar
gotar / code.rb
Created December 13, 2019 12:32
ROM (SQLite) + DRY-V example
#!/usr/bin/env ruby
require 'bundler/inline'
DB_URL = "postgres://localhost/gotar"
gemfile(true) do
source 'https://rubygems.org'
gem 'rom', '~> 5.1'
@gotar
gotar / code.rb
Created December 13, 2019 12:32
ROM(PG, Sequel) + Dry-v example
#!/usr/bin/env ruby
require 'bundler/inline'
DB_URL = "postgres://localhost/gotar"
gemfile(true) do
source 'https://rubygems.org'
gem 'pg'