This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "マウスボタン4/5でリロード(Safari限定)", | |
"rules": [ | |
{ | |
"description": "マウスボタン4でリロード(Safari限定)", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"pointing_button": "button4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"meta": { | |
"manifest_version": 1, | |
"locale_version": "1.0", | |
"locale_name": "English", | |
"locale_type": "en_US", | |
"locale_last_updated": "2019-10-18 12:00:00 UTC", | |
"locale_author_name": "Nodetics", | |
"locale_author_email": "nodetics@gmail.com", | |
"locale_source_url": "https://nodetics.com/feedbro/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var doc = app.activeDocument;$.writeln( doc === | |
app.activeDocument // Document | |
.stories // Stories | |
.item(0) // Story | |
.paragraphs // Paragraphs | |
.item(0) // Paragraph | |
.parentTextFrames[0] // TextFrame (item() does not exist) | |
.parent // Page | |
.parent // Spread | |
.parent // Document |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# ref http://d.hatena.ne.jp/pasela/20120710/random | |
usage() { | |
cat << EOF | |
Usage: ${0##*/} [-l letter_set] [-w word_num] [-n number_of_passwords] | |
Generates random letters for password. | |
OPTIONS: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
require 'sass' # 3.3.0.alpha136 | |
abs_dir = File.expand_path '..', __FILE__ | |
sass_path_rel = 'views/application.sass' | |
sass_path_abs = File.join abs_dir, sass_path_rel | |
css_path_rel = 'css/application.css' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BlockConf | |
CONF_NAMES = [:id, :pw] | |
CONF_NAMES.each do |name| | |
define_method name { |v| @conf[name] = v } | |
end | |
def self.configure &blk | |
self.new &blk | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$: << '.' | |
require 'whatever_service' | |
wsc1 = WhateverService.configure do | |
user_id 'foo' | |
password 'bar_baz' | |
end | |
wsc2 = WhateverService::Client.new(:user_id => 'baz', :password => 'foo_bar') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hue : 0-360 | |
// Saturation : 0-100% | |
// Lightness : 0-100% | |
@clr_primary : hsl(0, 70%, 50%); | |
@clr_spin_deg : 120; | |
@clr_lighten_deg : 20%; | |
@clr_darken_deg : 20%; | |
@clr_saturate_deg : 20%; | |
@clr_desaturate_deg : 20%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
GIT=$(which git) | |
TARGET_DIR="four-parents" | |
if [[ -d $TARGET_DIR ]]; then | |
echo $TARGET_DIR already exists. | |
exit 1 | |
fi |
NewerOlder