acme
This commit is contained in:
commit
c2271ba672
43 changed files with 886 additions and 0 deletions
40
docs/9p.txt
Normal file
40
docs/9p.txt
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
|
||||
# write works:
|
||||
echo очешуеть | 9p write acme/2/body
|
||||
|
||||
# read works:
|
||||
9p read acme/2/body
|
||||
...
|
||||
очешуеть
|
||||
|
||||
# ls
|
||||
9p ls acme
|
||||
9p ls plumb
|
||||
|
||||
# read current windows:
|
||||
9p read acme/index
|
||||
|
||||
# read default rules
|
||||
9p read plumb/rules
|
||||
|
||||
// // //
|
||||
|
||||
# write window body with $winid == 2 into another window
|
||||
Edit , < 9p read acme/2/body
|
||||
|
||||
# close window with $winid == 3
|
||||
echo del | 9p write acme/3/ctl
|
||||
|
||||
// // //
|
||||
|
||||
touch /Users/ev/Desktop/wtf2.txt
|
||||
|
||||
echo opanki >> /Users/ev/Desktop/wtf2.txt
|
||||
|
||||
echo 'name /Users/ev/Desktop/wtf2.txt' | 9p write acme/2/ctl
|
||||
echo clean | 9p write acme/2/ctl
|
||||
echo get | 9p write acme/2/ctl
|
||||
|
||||
// // //
|
||||
|
||||
echo 'текст в новом окне' | 9p write acme/new/body
|
||||
BIN
docs/RobPike_AcmeUserInterfaceForProgrammers.pdf
Normal file
BIN
docs/RobPike_AcmeUserInterfaceForProgrammers.pdf
Normal file
Binary file not shown.
BIN
docs/SamCommands.pdf
Normal file
BIN
docs/SamCommands.pdf
Normal file
Binary file not shown.
3
docs/erlang_unicode.txt
Normal file
3
docs/erlang_unicode.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
erl +pc unicode
|
||||
|
||||
io:setopts([{encoding, utf8}]).
|
||||
13
docs/music.txt
Normal file
13
docs/music.txt
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
1. window:
|
||||
/path/to/legally/purchased/music
|
||||
|
||||
2. add tag:
|
||||
## play 10 seconds
|
||||
afplay -t 10
|
||||
|
||||
## play full song
|
||||
afplay
|
||||
|
||||
3. L-select song
|
||||
|
||||
4. M-hold + L-click
|
||||
19
docs/read_body_from_erlang.txt
Normal file
19
docs/read_body_from_erlang.txt
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
## ACME WITH WINID == 7
|
||||
## -----------------------------------------------------------------------------
|
||||
|
||||
каждый охотник желает знать где сидит фазан
|
||||
|
||||
|
||||
## ERLANG
|
||||
## -----------------------------------------------------------------------------
|
||||
|
||||
erl +pc unicode
|
||||
|
||||
io:setopts([{encoding, unicode}]).
|
||||
|
||||
Winid = "7".
|
||||
|
||||
Body = os:cmd("9p read acme/" ++ Winid ++ "/body").
|
||||
|
||||
Body =:= "каждый охотник желает знать где сидит фазан".
|
||||
true
|
||||
24
docs/single_quote_in_perl_one_liner.txt
Normal file
24
docs/single_quote_in_perl_one_liner.txt
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
## IN
|
||||
## -----------------------------------------------------------------------------
|
||||
apple => 'apple.png',
|
||||
cherry_pie => 'cherry_pie.png',
|
||||
berries => 'berries.png',
|
||||
yummy_taco => 'yummy_taco.png',
|
||||
|
||||
## OUT
|
||||
## -----------------------------------------------------------------------------
|
||||
|
||||
apple.png
|
||||
cherry_pie.png
|
||||
berries.png
|
||||
yummy_taco.png
|
||||
|
||||
## BASH
|
||||
## -----------------------------------------------------------------------------
|
||||
|
||||
Edit , > lne '/'\''(.+)'\''/; say $1'
|
||||
|
||||
## RC
|
||||
## -----------------------------------------------------------------------------
|
||||
|
||||
Edit , > lne '/''(.+)''/; say $1'
|
||||
38
docs/single_quote_rc_vs_sh.txt
Normal file
38
docs/single_quote_rc_vs_sh.txt
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
## RC
|
||||
## -----------------------------------------------------------------------------
|
||||
|
||||
echo $%
|
||||
/Users/ev/
|
||||
|
||||
echo ''''
|
||||
'
|
||||
|
||||
a '1
|
||||
bb '22
|
||||
ccc '333
|
||||
|
||||
|a+ ''''
|
||||
|
||||
a '1
|
||||
bb '22
|
||||
ccc '333
|
||||
|
||||
|
||||
## SH
|
||||
## -----------------------------------------------------------------------------
|
||||
|
||||
echo $%
|
||||
$%
|
||||
|
||||
echo "'"
|
||||
'
|
||||
|
||||
a '1
|
||||
bb '22
|
||||
ccc '333
|
||||
|
||||
|a+ "'"
|
||||
|
||||
a '1
|
||||
bb '22
|
||||
ccc '333
|
||||
Loading…
Add table
Add a link
Reference in a new issue