I hereby claim:
- I am zhuravel on github.
- I am zhuravel (https://keybase.io/zhuravel) on keybase.
- I have a public key ASAeBrQBfefR5DEE4wOV7r2rtwoTWvNdQh_QhlOtPFqGrQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
[ | |
{ "keys": ["ctrl+,"], "command": "show_panel", "args": {"panel": "console", "toggle": true}}, | |
{ "keys": ["ctrl+t"], "command": "new_file" }, | |
{ "keys": ["super+v"], "command": "paste_and_indent" }, | |
{ "keys": ["super+shift+v"], "command": "paste" }, | |
{ "keys": ["f12"], "command": "reindent"}, | |
{ "keys": ["ctrl+shift+r"], "command": "reindent" , "args": { "single_line": false } }, | |
{ "keys": ["ctrl+alt+w"], "command": "prompt_select_workspace" }, | |
{ "keys": ["ctrl+b"], "command": "toggle_side_bar" }, | |
{ "keys": ["f5"], "command": "refresh_folder_list" }, |
class LobsterMigration < ActiveRecord::Migration[5.1] | |
shard :none | |
def change | |
return if reverting? || Rails.env.test? | |
lobster = Zlib::Inflate.inflate('eJx9kEEOwyAMBO99xd7MAcytUhPlJyj2 | |
P6jy9i4k9EQyGAnBarEXeCBqSkntNXsi/ZCvC48zGQoZKikGrFMZvgS5ZHd+aGWVuWwhVF0 | |
t1drVmiR42HcWNz5w3QanT+2gIvTVCiE1lm1Y0eU4JGmIIbaKwextKn8rvW+p5PIwFl8ZWJ | |
I8jyiTlhTcYXkekJAzTyYN6E08A+dk8voBkAVTJQ=='.delete("\n ").unpack('m*')[0]) |
# app/models/concerns/memoizable.rb | |
module Memoizable | |
extend ActiveSupport::Concern | |
class_methods do | |
def memoize(*method_names) | |
method_names.each do |method_name| | |
memoized_ivar = "@_memoized_#{method_name.to_s.sub(/\?\Z/, '_query').sub(/!\Z/, '_bang')}".to_sym | |
memoized_module = Module.new do | |
module_eval <<-EVAL |
#!/bin/sh | |
# | |
# Git pre-commit hook to check all staged Ruby (*.rb/haml/coffee) files | |
# for Pry binding references | |
# | |
# Installation | |
# | |
# cd .git/hooks | |
# ln -s relative/path/to/pre-commit | |
# |
AD login | FR login | Jaro distance | Substring distance | Similar before change | Similar after change | |
---|---|---|---|---|---|---|
andreadubbert | adubbert | 80.96 | 100.0 | yes | yes | |
yana-moiseeva-2016 | yana-moiseeva | 94.44 | 100.0 | yes | yes | |
freychuatwork | freychu | 90.77 | 100.0 | yes | yes | |
julian.winkler | julian.winkler94 | 97.5 | 100.0 | yes | yes | |
tonight | tonight13 | 95.56 | 100.0 | yes | yes | |
natasha.febriana | natasha | 88.75 | 100.0 | yes | yes | |
kwetzel | kwetzel12 | 95.56 | 100.0 | yes | yes | |
kkawaige | kawaige | 96.25 | 100.0 | yes | yes | |
maximommy | maximommy2 | 98.0 | 100.0 | yes | yes |
module ActiveSupport | |
module Testing | |
class SimpleStubs # :nodoc: | |
Stub = Struct.new(:object, :method_name, :original_method) | |
def initialize | |
@stubs = {} | |
end | |
def stub_object(object, method_name, return_value) |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
#----------------------------------------------------------------------+ | |
# Port of Device.js library | | |
# https://github.com/matthewhudson/device.js/blob/master/lib/device.js | | |
#----------------------------------------------------------------------+ | |
class Device | |
def initialize(user_agent) | |
@user_agent = user_agent | |
end |