vimで使うキーの機能使用頻度と打ちやすさを整理してみました。 今回整理したのはnormalモードについてだけです。 機能の使用頻度と打ちやすさは、完全に個人の見解です。 キーボードによっても打ちやすさは変わると思います。
すべてのキーを網羅しているわけではありません。
| # Sample as to how to initialize s3 client to work with Minio API compatible - https://github.com/minio/minio | |
| # AWS CLI counterpart - https://docs.minio.io/docs/aws-cli-with-minio | |
| import boto3 | |
| s3 = boto3.resource('s3', | |
| endpoint_url='http://<minio_IP>:9000', | |
| config=boto3.session.Config(signature_version='s3v4') | |
| ) |
| # -*- coding: utf-8 -*- | |
| import requests | |
| import json | |
| from datetime import date | |
| def make_month_prog_msg(work): | |
| grades = ['B4', 'M1', 'M2'] | |
| month = date.today().month | |
| return '{}さん,{}の進捗どうですか?'.format(grades[month%3], work) |
| <?php | |
| /** | |
| * printf is template engine | |
| * | |
| * @license WTFPL http://www.wtfpl.net/ | |
| * @author USAMI Kenta <[email protected]> | |
| * @param string $format | |
| * @param string|int|float $args... | |
| * @return string |
| Host handson | |
| User admin | |
| Port 22 | |
| IdentityFile インスタンスを作るときにダウンロードしたpemファイル | |
| HostName パブリックIPアドレス | |
| ServerAliveInterval 300 |
| /** | |
| * Google Spreadsheet向けBigQuery取り込みスクリプト | |
| * http://toreta.blog.jp/archives/20649904.html | |
| * License: MIT 2014- Toreta, Inc. | |
| * | |
| * runAllQueries() をトリガーで毎日実行してください | |
| * Queries, Single row queries, Dataの三つのシートを作って下さい | |
| * Queries, Single row queriesのシートには実行するクエリを書きます | |
| * A列にクエリ名、B列にクエリです。 | |
| * conuntなどの集約関数で1行しか返らないクエリは「Single row queries」、それ以外は「Queries」に書いて下さい |
| public class Perlin { | |
| public int repeat; | |
| public Perlin(int repeat = -1) { | |
| this.repeat = repeat; | |
| } | |
| public double OctavePerlin(double x, double y, double z, int octaves, double persistence) { | |
| double total = 0; |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>AOP Example</title> | |
| <style type="text/css"> | |
| #log { | |
| background: #EEE; | |
| height: 300px; | |
| overflow: auto; | |
| } |
| lua有効のvim7.4をコンパイルインストールする | |
| 検証環境: CentOS6.4 64bit | |
| インストール先 | |
| ${HOME}/local/bin | |
| luaソースファイル | |
| http://www.lua.org/ftp/lua-5.2.3.tar.gz | |
| UTF-8対応版? |
| /** | |
| * 連続する数値から割り当てる色を算定する.<br> | |
| * @param sequence シーケンス番号 | |
| * @return 割り当てられた色 | |
| */ | |
| protected Color makeColor(int sequence) { | |
| int pos = sequence % 7; // 色相を7分割で1周 | |
| int lev = sequence / 7; // 周数 | |
| lev = lev % 4; // 4段階以上は暗くせず、最初に戻る. |