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
javascript:(function(){var asin,_,_ref;_ref=location.pathname.match(/(?:\/dp\/|\/gp\/product\/|\/asin\/)([^\/]+)/i),_=_ref[0],asin=_ref[1];if(asin!=null){return history.replaceState("","","/dp/"+asin+"/")}})(); |
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/bash | |
seq 0 10 | { | |
declare -i sum | |
while read num ; do | |
let sum+=$num | |
done | |
# bash => 55 (^^)v | |
# zsh => 55 |
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
HISTFILE=~/.zsh_history | |
HISTSIZE=100000 | |
SAVEHIST=10000 | |
autoload -Uz compinit | |
compinit | |
zstyle ':completion:*:default' menu select=2 | |
bindkey "^[[Z" reverse-menu-complete | |
autoload -Uz history-search-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 'nokogiri' | |
require 'open-uri' | |
=begin | |
パラメータ: | |
node: ジャンル。例: 2293143051=コミック, 2275256051=本, 2292700051=SF/ホラー/ファンタジー | |
field-releasedate: 発売日の範囲。nxはn日前、nyはn日後らしい。 | |
例: "0x-0x"=今日, "1x-1y"=昨日から明日, "0x-"=今日以降, "-0x"=今日以前 | |
発売日未設定の本は無限に昔の扱いらしい。"-1000000x"とかやるとヒットする。 | |
page: 最大400(19200件)まで。400ページを超えた場合、401以上は400と同じ結果になる。 |
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
<b:if cond='data:blog.isMobile'> | |
<script> | |
(function() { | |
var el = document.querySelector('#main'); | |
el.__addEventListener = el.addEventListener; | |
el.addEventListener = function(type) { | |
if (!type.match(/^touch/)) { | |
this.__addEventListener.apply(this, arguments); | |
} | |
}; |
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
Content-Security-Policy: default-src 'self'; script-src 'self' https://ssl.gstatic.com/accessibility/ chrome-extension: 'unsafe-eval' 'unsafe-inline'; object-src 'self'; style-src 'self' chrome-extension: 'unsafe-inline'; img-src http: https: data:; media-src 'self'; frame-src https:; font-src https: data:; connect-src 'self'; report-uri /_/csp |
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
jsforce = require 'jsforce' | |
Promise = require 'bluebird' | |
streamify = require 'stream-array' | |
csv = require 'csv' | |
fs = require 'fs' | |
program = require 'commander' | |
program | |
.option '-d, --deploy', 'deploy' | |
.parse process.argv |
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
{ | |
"name": "retrieve_folders", | |
"dependencies": { | |
"bluebird": "^2.4.2", | |
"dotenv": "^0.4.0", | |
"jsforce": "^1.3.1", | |
"underscore": "^1.7.0", | |
"unzip": "^0.1.11" | |
} | |
} |
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
jsforce = require 'jsforce' | |
Promise = require 'bluebird' | |
streamify = require 'stream-array' | |
csv = require 'csv' | |
fs = require 'fs' | |
program = require 'commander' | |
program | |
.option '-d, --deploy', 'deploy' | |
.parse process.argv |
OlderNewer