| 更新: | 2026-05-05 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2026.4 |
| url: | https://voluntas.github.io/ |
概要
| set dFolder to "~/Desktop/screencapture/" | |
| do shell script ("mkdir -p " & dFolder) | |
| set i to 0 | |
| repeat 960 times | |
| do shell script ("screencapture " & dFolder & "frame-" & i & ".png") | |
| delay 30 -- Wait for 30 seconds. | |
| set i to i + 1 | |
| end repeat |
| 更新: | 2026-05-05 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2026.4 |
| url: | https://voluntas.github.io/ |
概要
By @foldleft.bsky.social, see also Unfollow everyone on bsky.app.
https://twitter.com/YOUR_USER_NAME/following// Unfollow everyone on twitter.com, by Jamie Mason (https://twitter.com/fold_left)| #配列要素の分割 | |
| > "foo bar bazz".split | |
| => ["foo", "bar", "bazz"] | |
| #配列要素の指定文字列での分割 | |
| > "fooxbarxxxxbazz".split('x') | |
| => ["foo", "bar", "", "", "", "bazz"] | |
| #配列要素の順番入れ替え |
| #********************************************* | |
| # 住所から緯度・経度を取得する、又は、 | |
| # 緯度・経度から住所を取得する。 | |
| # ( by Google Geocode API ) | |
| #********************************************* | |
| # | |
| require 'json' | |
| require 'net/http' | |
| BASE_URL = "http://maps.googleapis.com/maps/api/geocode/json" |
| ############### | |
| # zsh Setting | |
| ############### | |
| ############### | |
| # ヒストリ関連 | |
| ############### | |
| # 履歴の保存先 | |
| HISTFILE=$HOME/.zsh-history | |
| ## メモリに展開する履歴の数 |
| require 'rubygems' | |
| require 'mechanize' | |
| agent = Mechanize.new | |
| agent.set_proxy('proxy.example.com', 80, 'username', 'password') | |
| agent.add_auth('http://hoge.com','b_username','b_password') | |
| agent.user_agent_alias = "Windows Mozilla" | |
| res = agent.get('http://hoge.com/some/page') | |
| puts res.body |
| <select> | |
| <option value="1">Hokkaido</option> | |
| <option value="2">Aomori</option> | |
| <option value="3">Iwate</option> | |
| <option value="4">Miyagi</option> | |
| <option value="5">Akita</option> | |
| <option value="6">Yamagata</option> | |
| <option value="7">Fukushima</option> | |
| <option value="8">Ibaraki</option> | |
| <option value="9">Tochigi</option> |