Tuesday, October 18, 2016
MATLAB: Downloading Trial Version
MATLAB Trial Version
Download page:
https://jp.mathworks.com/campaigns/products/ppc/google/matlab-trial-request.html
macOS Sierra: tclsh: Using Tk Package and Adding Label and Button
Command:
$ tclsh
% set label1 "Hello World"
Result:
Hello World
Command:
% set button1 "Quit"
Result:
Quit
Command:
% puts $label1,$button1
Result:
Hello World,Quit
Command:
% package require Tk
Result:
8.5.9
Command:
% label .l -text $label1
Result:
.l
Command:
% button .b -text $button1 -command { exit }
Result:
.b
Command:
% pack .l .b
Result:
Command:
% exit
macOS Sierra: wish (Unix shell): Label and Button
Command:
$ wish
Result:
Command:
% label .x1 -text "Hello World"
Result:
.x1
Command:
% pack .x1
Result:
Command:
% button .b1 -text "Quit" -command { exit }
Result:
.b1
Command:
% pack .b1
Result:
Top 10 Table Tennis Points of 2015
Jean-Michel Saive (BEL) vs. Chuang Chih-Yuan (TPE): Tai-Ben International
Monday, October 17, 2016
Bash (Unix shell): Select Menu Example: Variable
Command:
$ select item in {a..z}; do echo $item ":" $REPLY; done
Result:
1) a 3) c 5) e 7) g 9) i 11) k 13) m
15) o
17) q 19) s 21) u 23) w 25) y
2) b 4) d 6) f 8) h 10) j 12) l 14) n
16) p
18) r 20) t 22) v 24) x 26) z
#?
User input:
1
Result:
a : 1
Bash (Unix shell): Changing Command Prompt
Command:
$ PS1="( ^ω^ ) "
Result:
( ^ω^ )
Command:
( ^ω^ ) PS1="$ "
Result:
$
Bash (Unix shell): Select Menu Example: PS3
Command:
$ PS3="please select item > "; select item in "item1" "item2" "item3"; do if [ $REPLY = "q" ]; then break; fi; done;
Result:
1) item1
2) item2
3) item3
please select item >
User input:
1
Result:
please select item >
User input:
q
Bash (Unix shell): Command prompt (コマンドプロンプト)
Command:
$ read -p "Do something? "; if [ $REPLY == "y" ]; then echo yay; fi
Result:
Do something?
User input:
y
Result:
yay
Gary Vaynerchuk: DailyVee: The Upside of Tasting Innovation: Meeting with Billy Corgan
Gary Vaynerchuk
Casey Neistat: BABY GOT BACK!: Talks about the Interview with Billy Corgan of Smashing Pumpkins
Casey Neistat
Hinako Sakurai (桜井日奈子): そんなバカなマン: パシフィックヒム
Hinako Sakurai
Sunday, October 16, 2016
Tao Tsuchiya (土屋太鳳): 赤坂5丁目ミニマラソン オールスター感謝祭2016秋
Tao Tsuchiya
C (programming language): Displaying Printing ASCII Characters
Command:
$ cat testascii.c
Result:
#include<stdio.h>
#include<ctype.h>
int main(void){
for(int i=0;i<=255;i++){
if (isprint((char)i)){
printf("%3d:%c\n", i, i);
}
}
return 0;
}
Command:
$ gcc testascii.c
$ ./a.out
Result:
32:
33:!
34:"
35:#
36:$
37:%
38:&
39:'
40:(
41:)
42:*
43:+
44:,
45:-
46:.
47:/
48:0
49:1
50:2
51:3
52:4
53:5
54:6
55:7
56:8
57:9
58::
59:;
60:<
61:=
62:>
63:?
64:@
65:A
66:B
67:C
68:D
69:E
70:F
71:G
72:H
73:I
74:J
75:K
76:L
77:M
78:N
79:O
80:P
81:Q
82:R
83:S
84:T
85:U
86:V
87:W
88:X
89:Y
90:Z
91:[
92:\
93:]
94:^
95:_
96:`
97:a
98:b
99:c
100:d
101:e
102:f
103:g
104:h
105:i
106:j
107:k
108:l
109:m
110:n
111:o
112:p
113:q
114:r
115:s
116:t
117:u
118:v
119:w
120:x
121:y
122:z
123:{
124:|
125:}
126:~
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)