Vimについての怪文書です。
ある日、プログラマのタカシは古びた書店で埃をかぶった本を見つけた。それは「Vimの真髄」と題された手書きの写本だった。表紙には謎めいたシンボルが描かれ、ただならぬ気配を漂わせていた。タカシは好奇心に勝てず、その本を手に取った。
ページをめくると、古代の呪文のようなVimのコマンドが並んでいた。「i」で挿入、「:wq」で保存して終了といった基本的なものから、「g~」や「=G」など、見たこともない呪術のようなコマンドまでが記されていた。
unkoJudge :: Double -> String | |
unkoJudge volume | |
| volume <= 10.0 = "Too little..." | |
| volume <= 20.0 = "Uh... OK. It may be safe." | |
| otherwise = "Oh!! Your unko is very big!!! You are LEGEND!!!" |
public class Unko{ | |
public static void main(String[] args){ | |
int i = 1; | |
if(i == 0){ | |
System.out.println("unko..."); | |
}else{ | |
System.out.println("unko!?"); | |
} | |
} |
#!/bin/sh | |
clear && while mpc status; do sleep 1 && clear; done |
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ | |
./hardware-configuration.nix |
alarm="aplay ~/any-sound.wav" # 任意のコマンドに変更するが良い!! | |
d=`date '+%M'` | |
while sleep 10; do | |
if [ $d -eq 00 ]; then | |
$alarm | |
break | |
else | |
echo "not yet..." | |
fi |
Import-Module PSReadline | |
Set-PSReadLineOption -EditMode Emacs | |
function Prompt { | |
$username = "$($env:USER)" | |
$path = "$($executionContext.SessionState.Path.CurrentLocation)" | |
Write-Host $username -NoNewline -ForeGroundColor blue | |
Write-Host "`$" -NoNewline -ForeGroundColor green | |
Write-Host $path -NoNewline -ForeGroundColor DarkMagenta |
Import-Module PSReadline | |
Set-PSReadLineOption -EditMode Emacs -BellStyle None | |
function Prompt { | |
$username = "$($env:USER)" | |
$path = "$($executionContext.SessionState.Path.CurrentLocation)" | |
Write-Host $path -NoNewline -ForeGroundColor blue | |
Write-Host " $(Get-Date -Format "MM/dd/yyyy HH:mm")" -ForeGroundColor yellow | |
Write-Host ">" -NoNewline -ForeGroundColor yellow |
shell: | |
# program: "bash" | |
# program: "nu" | |
program: "pwsh" | |
args: | |
- -NoLogo | |
font: | |
size: 14.0 |
# FROM https://github.com/philj56/tofi/blob/v0.9.1/themes/dmenu | |
anchor = top | |
width = 100% | |
height = 30 | |
horizontal = true | |
font-size = 14 | |
prompt-text = " run: " | |
font = monospace | |
outline-width = 0 |