roleとnodeを設定しておけばいい感じにrake taskを生成します
下記のようなディレクトリ構成を想定しています
roles/
<role名>.rb
nodes/
<node名>.yml
spec/
# Use this setup block to configure all options available in SimpleForm. | |
# https://github.com/patricklindsay/simple_form-materialize/blob/master/lib/generators/simple_form/materialize/templates/config/initializers/simple_form_materialize.rb | |
# contribute here: https://github.com/mkhairi/materialize-sass/issues/16 | |
SimpleForm.setup do |config| | |
config.wrappers :default, class: :input, | |
hint_class: :field_with_hint, error_class: :field_with_errors do |b| | |
## Extensions enabled by default | |
# Any of these extensions can be disabled for a | |
# given input by passing: `f.input EXTENSION_NAME => false`. |
module ActiveJobRetryControlable | |
extend ActiveSupport::Concern | |
DEFAULT_RETRY_LIMIT = 5 | |
attr_reader :attempt_number | |
module ClassMethods | |
def retry_limit(retry_limit) | |
@retry_limit = retry_limit |
require 'openssl' | |
require 'base64' | |
# ===== \/ sign ===== | |
# generate keys | |
key = OpenSSL::PKey::EC.new("secp256k1") | |
key.generate_key | |
public_key = key.public_key | |
public_key_hex = public_key.to_bn.to_s(16).downcase # public key in hex format |
#まず見るべき
以下のURLは、常に更新されているコンテンツです。
State: Draft
Based on the Peatio Stable branch
To the coin daemon's {coin}.conf
file, include the -walletnotify
command:
# Notify when receiving coins
import sublime, sublime_plugin | |
import os | |
class AutoSwitchViewTabSizeCommand(sublime_plugin.EventListener): | |
""" Auto switch tab_size with syntax""" | |
# def on_activated(self, view): | |
def on_load(self, view): | |
syntax = view.settings().get('syntax') |
[ | |
// how to move in the filer with hjkl | |
{ "keys": ["j"], "command": "move", "args": {"by": "lines", "forward": true}, "context": | |
[ {"key": "control", "operand": "sidebar_tree"} ] | |
}, | |
{ "keys": ["k"], "command": "move", "args": {"by": "lines", "forward": false}, "context": | |
[ {"key": "control", "operand": "sidebar_tree"} ] | |
}, | |
{ "keys": ["l"], "command": "move", "args": {"by": "characters", "forward": true}, "context": | |
[ {"key": "control", "operand": "sidebar_tree"} ] |
gem "haml-rails" | |
gem 'simple_form' | |
gem_group :development do | |
gem 'i18n_generators' | |
gem 'commands' | |
gem 'pry-rails' | |
gem 'hirb-unicode' | |
gem 'growl' # Mac OS only |