Skip to content

Instantly share code, notes, and snippets.

View mibamur's full-sized avatar

Michael mibamur

  • Freelance
  • Russia
View GitHub Profile
@mibamur
mibamur / routes.rb
Last active September 3, 2016 11:45 — forked from kryzhovnik/routes.rb
Интеграция Яндекс.Кассы с Rails
# config/routes.rb
YandexKassaIntegration::Application.routes.draw do
# ...
scope '/yandex_kassa' do
controller 'yandex_kassa', constraints: { subdomain: 'ssl' } do
post :check
post :aviso
get :success
get :fail
@mibamur
mibamur / esnextbin.md
Last active April 6, 2016 15:21
esnextbin sketch
@mibamur
mibamur / esnextbin.md
Last active March 22, 2016 19:27
esnextbin sketch
@mibamur
mibamur / 0_reuse_code.js
Created December 5, 2013 16:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
require 'digest/md5'
hash = {}
Dir.glob("**/*", File::FNM_DOTMATCH).each do |filename|
next if File.directory?(filename)
# puts 'Checking ' + filename
key = Digest::MD5.hexdigest(IO.read(filename)).to_sym
if hash.has_key? key