Usage example:
echo "#banana #banana #ololo #un_der-sco_re #по-русски #123" | ./extract_hashtags
#123
#banana
#ololo
#un_der-sco_re
#по-русски
{ | |
"description": "Use idempotent hotkeys to switch between two keyboard layouts", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "1", | |
"modifiers": { | |
"mandatory": ["left_command", "left_option"], | |
"optional": ["any"] | |
} |
Usage example:
echo "#banana #banana #ololo #un_der-sco_re #по-русски #123" | ./extract_hashtags
#123
#banana
#ololo
#un_der-sco_re
#по-русски
Create Github access token: https://github.com/settings/tokens
Setup backup tool:
pip3 install github-backup
export GITHUB_BACKUP_TOKEN=ghp_bananabananabananabananabananabanana
export GITHUB_BACKUP_USER=dreikanter
export GITHUB_BACKUP_PATH=~/github-backup/$GITHUB_BACKUP_USER
-- hs.hotkey.bind({"cmd", "shift"}, "1", function() | |
-- hs.keycodes.setLayout("English - Ilya Birman Typography") | |
-- end) | |
-- hs.hotkey.bind({"cmd", "shift"}, "2", function() | |
-- hs.keycodes.setLayout("Russian - Ilya Birman Typography") | |
-- end) | |
hs.hotkey.bind({"cmd", "alt"}, "1", function() | |
hs.keycodes.setLayout("English - Ilya Birman Typography") |
require 'yaml' | |
data = YAML.load_file('.rubocop_todo.yml') | |
data.each do |cop, options| | |
excludes = options['Exclude'] | |
next unless excludes | |
next if excludes.empty? | |
data[cop]['Exclude'] = excludes.select do |path| |
I hereby claim:
To claim this, I am signing this object:
# #fmap - bypass Failure object, or return Success(result) | |
# #bind - bypass Failure object, or return result | |
require 'dry/monads' | |
require 'dry/monads/do' | |
class SequenceExecutor | |
include Dry::Monads[:result] | |
# This will prepend the class with a module, bypassinf a block to #call |
Tested in Chrome 61.0.3163.100
Should be executed from the Issues page within a GitHub project.
Minified with http://chriszarate.github.io/bookmarkleter/
window.Templates = { | |
post: “<h2>{{ title }}</h2> <p>{{ body }}</p>”, | |
comment: “…” | |
} |