Skip to content

Instantly share code, notes, and snippets.

View gambala's full-sized avatar
🟢
Online

Vitaliy Emeliyantsev gambala

🟢
Online
View GitHub Profile
@gambala
gambala / application_helper.rb
Last active August 1, 2017 16:27
http://images inside https://site with proxying in nginx
module ApplicationHelper
def http_url(url)
return url if Rails.env.development?
"/http_proxy?url=#{url}"
end
end
class Developer
end
class DataBase
def find_developer(platform: :ruby, region: :london)
all_developers(platform, region).select do |you|
you.are.crazy
.and { your.skill_level is :high }
.and { you.are.not.in :plumbee }

Keybase proof

I hereby claim:

  • I am gambala on github.
  • I am gambala (https://keybase.io/gambala) on keybase.
  • I have a public key ASAcNq3bEZkYNOoxulD8WtPjwhUaFzzl4PZQCw3cycIKxwo

To claim this, I am signing this object:

@gambala
gambala / checkvist-feels-good-at-night.css
Last active March 7, 2020 16:48
Checkvist feels good CSS theme
/* https://www.color-hex.com/color-palette/36646 */
html, body, .main_div {
background: #4b5162;
background: #282A36;
background: #3b3d4a;
color: #e5e5e5;
color: #F8F8F2;
}
@gambala
gambala / Gemfile
Created June 6, 2020 15:02
blueimp-gallery inside rails
gem 'blueimp-gallery'
@gambala
gambala / Makefile
Last active December 22, 2021 22:26
Makefile for Rails
# https://stackoverflow.com/a/14061796/2237879
#
# This hack allows you to run make commands with any set of arguments.
#
# For example, these lines are the same:
# > make g devise:install
# > bundle exec rails generate devise:install
# And these:
# > make add-migration add_deleted_at_to_users deleted_at:datetime
# > bundle exec rails g migration add_deleted_at_to_users deleted_at:datetime