[CentralOH] 2015-03-13 道場 Scribbles 落書/惡文? Effective Python book; doppler gestures; c structs; ball of mud; ioccc; panda3d; nand2tetris; arduino; VM mac; ASCII; test code coverage; emacs v emacs; skydive
jep200404 at columbus.rr.com
jep200404 at columbus.rr.com
Sat Mar 14 20:21:11 CET 2015
wp: prefix means Wikipedia
To get good answers, consider following the advice in the links below.
http://catb.org/~esr/faqs/smart-questions.html
http://web.archive.org/web/20090627155454/www.greenend.org.uk/rjk/2000/06/14/quoting.html
http://www.southpolestation.com/trivia/90s/skydive.html
test code coverage program
https://pypi.python.org/pypi/coverage/3.7.1
http://git.kernel.org/cgit/editors/uemacs/uemacs.git
https://www.kernel.org/doc/Documentation/CodingStyle
http://marc.info/?l=git&m=122955159617722&w=2
https://plus.google.com/u/0/+LinusTorvalds/posts/iySKQGtkmtb
http://ioccc.org/1984/anonymous.c
knick at dojo:~/20150313$ cat dash.c
#include <stdlib.h>
#include <stdio.h>
int main(int argc,char *argv[])
{
printf("%d\n", '-');
printf("%d %d\n", '-', '-');
printf("%d\n", '-'-'-');
printf("\n");
printf("%d\n", '/');
printf("%d %d\n", '/', '/');
printf("%d\n", '/'/'/');
}
knick at dojo:~/20150313$ make dash
cc dash.c -o dash
knick at dojo:~/20150313$ ./dash
45
45 45
0
47
47 47
1
knick at dojo:~/20150313$ cat dash.py
print "%d" % ord('-')
print "%d %d" % (ord('-'), ord('-'))
print "%d" % (ord('-') - ord('-'))
print
print "%d" % ord('/')
print "%d %d" % (ord('/'), ord('/'))
print "%d" % (ord('/') / ord('/'))
knick at dojo:~/20150313$ python dash.py
45
45 45
0
47
47 47
1
knick at dojo:~/20150313$
knick at dojo:~/20150313/c$ cat foo.c
#include <stdlib.h>
#include <stdio.h>
char foo[]="hello world\n";
int c='A';
int main(int argc, char *argv[])
{
printf("%d\n", 'A');
printf("%c\n", 'A');
}
knick at dojo:~/20150313/c$ make foo
cc foo.c -o foo
knick at dojo:~/20150313/c$ ./foo
65
A
knick at dojo:~/20150313/c$ cat foo.py
print ord('A')
print chr(65)
knick at dojo:~/20150313/c$ python foo.py
65
A
knick at dojo:~/20150313/c$
Effective Python: 59 Specific Ways to Write Better Python (Effective Software Development Series)
“This is an immensely useful resource for advanced Python usage and
building cleaner, more maintainable software. Anyone looking to take their
Python skills to the next level would benefit from putting the book’s
advice into practice.”
–Wes McKinney, creator of pandas; author of Python for Data Analysis
wp:Panda3D
learn hardware from very low-level (NAND) to high level (tetris)
http://nand2tetris.org/
learn low-level software
What is the equivalent of nand2tetris for software?
wp:Arduino
wp:Parallels Desktop for Mac
http://www.chromeindustries.com/us/en/customs
Big Ball of Mud www.laputan.org/mud/mud.html
http://danielrapp.github.io/doppler/
C structs
struct employeeStruct {
char first_name[80];
char last_name[80];
int age;
};
struct employeeStruct joe;
struct employeeStruct bob;
strcpy(joe.first_name, "John");
strcpy(joe.last_name, "Doe");
joe.age = 123;
class Namespace():
pass
More information about the CentralOH
mailing list