I hereby claim:
- I am s-mage on github.
- I am smagin (https://keybase.io/smagin) on keybase.
- I have a public key whose fingerprint is 349B 7B52 9D18 E43B 1014 45E7 E2C5 C5D9 1549 AC85
To claim this, I am signing this object:
| AllCops: | |
| Exclude: | |
| - 'vendor/**/*' | |
| - 'spec/fixtures/**/*' | |
| - 'tmp/**/*' | |
| - 'vagrant/**/*' | |
| TargetRubyVersion: 2.3 | |
| Lint/EndAlignment: | |
| EnforcedStyleAlignWith: variable |
| jQuery($ => | |
| $(document).on('wheel', '.scrollable', function(ev) { | |
| let $el = $(this); | |
| let height = $el.outerHeight(true); | |
| let delta = ev.originalEvent.deltaY; | |
| let up = delta < 0; | |
| let prevent = function() { | |
| ev.stopPropagation(); | |
| ev.preventDefault(); |
| begin | |
| require 'bundler/inline' | |
| rescue LoadError => e | |
| $stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
| raise e | |
| end | |
| gemfile(true) do | |
| source 'https://rubygems.org' | |
| gem 'activerecord', '5.1' |
I hereby claim:
To claim this, I am signing this object:
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <style> | |
| body { | |
| font: 10px sans-serif; | |
| } | |
| svg { |
| def vim(*args) | |
| if self.class == Rush::Dir | |
| system "cd #{full_path}; vim +NERDTree" | |
| else | |
| super | |
| end | |
| end | |
| alias_method :v, :vim |
| require 'matrix' | |
| class TwoSquare | |
| attr_accessor :first_square, :second_square | |
| ALPHABET = 'йцукенгшщзхъэждлорпавыфячсмитьбю.,- '.split('') | |
| def initialize | |
| @first_square = build_square | |
| @second_square = build_square |
| # Search of graph. | |
| # | |
| # Algorightm of graph construction: | |
| # Define start state. | |
| # Define finish state. | |
| # Define valid state. | |
| # For each not opened node | |
| # open node | |
| # end | |
| # |
| TAG_STRING = /(@\w+\W?)+/ | |
| EMPTY_STRING = /^\W*$/ | |
| def scan_project(dirname, tag) | |
| Dir.new(dirname). | |
| select { |file| File.extname(file) == '.feature' }. | |
| inject('') { |r, f| r << format_file(f, scan_file(f, tag)) } | |
| end | |
| def format_file(filename, scan_result) |
| #!/usr/bin/env ruby | |
| require 'flickraw' | |
| require 'json' | |
| CREATE_API_KEY = 'https://secure.flickr.com/services/apps/create/apply' | |
| CONFIG_FILE = File.expand_path '~/.config/2flickr.json' | |
| def init |