This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Preamble: OS detection, path setup, local functions | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
if !exists("g:os") | |
if has("win64") || has("win32") | |
let g:os = "Windows" | |
let g:VIMHOME = $HOME . "/_vim/" | |
else | |
let g:os = substitute(system('uname'), '\n', '', '') | |
let g:VIMHOME = $HOME . "/.vim/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/msp430-uniarch-20110716/bin/msp430-gcc main.o -mmcu=msp430g2231 -Wl,-M -L /usr/local/msp430-uniarch-20110716/include -o main.elf | |
Archive member included because of file (symbol) | |
/usr/local/msp430-uniarch-20110716/lib/gcc/msp430/4.5.3/libgcc.a(_divmodsi4.o) | |
main.o (__divmodsi4) | |
/usr/local/msp430-uniarch-20110716/lib/gcc/msp430/4.5.3/libgcc.a(_udivmodsi4.o) | |
/usr/local/msp430-uniarch-20110716/lib/gcc/msp430/4.5.3/libgcc.a(_divmodsi4.o) (__udivmodsi4) | |
/usr/local/msp430-uniarch-20110716/lib/gcc/msp430/4.5.3/libcrt0.a(_reset_vector__.o) | |
/usr/local/msp430-uniarch-20110716/lib/gcc/msp430/4.5.3/crt0ivtbl16.o (_reset_vector__) | |
/usr/local/msp430-uniarch-20110716/lib/gcc/msp430/4.5.3/libcrt0.a(__init_stack.o) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/Projects/ti/gcc/bin/msp430-elf-gcc main.o -mmcu=msp430g2231 -Wl,-M -L ~/Projects/ti/gcc/include -T msp430g2231.ld -o main.elf | |
Archive member included to satisfy reference by file (symbol) | |
/Users/csammis/Projects/ti/gcc/bin/../lib/gcc/msp430-elf/5.2.1/430/libgcc.a(lib2divSI.o) | |
main.o (__mspabi_divli) | |
/Users/csammis/Projects/ti/gcc/bin/../lib/gcc/msp430-elf/5.2.1/430/libgcc.a(epilogue.o) | |
/Users/csammis/Projects/ti/gcc/bin/../lib/gcc/msp430-elf/5.2.1/430/libgcc.a(lib2divSI.o) (__mspabi_func_epilog_6) | |
/Users/csammis/Projects/ti/gcc/bin/../lib/gcc/msp430-elf/5.2.1/430/libgcc.a(_udivdi3.o) | |
/Users/csammis/Projects/ti/gcc/bin/../lib/gcc/msp430-elf/5.2.1/430/libgcc.a(lib2divSI.o) (__mspabi_divull) | |
/Users/csammis/Projects/ti/gcc/bin/../lib/gcc/msp430-elf/5.2.1/430/libgcc.a(_lshrdi3.o) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Choose the RHS from among the production choices | |
if (system[rule].productions[0].probability == 1.0) { | |
rhs = system[rule].productions[0].rhs; | |
} else { | |
var choice = Math.random(); | |
var last = 0.0; | |
for (var i = 0; i < system[rule].productions.length; i++) { | |
if (choice >= last && choice < (last + system[rule].productions[i].probability)) { | |
rhs = system[rule].productions[i].rhs; | |
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="drawing"> | |
<h1>Drawing stuff</h1> | |
<canvas id="canvas" width="400" height="400" style="border:1px solid #d3d3d3;"></canvas> | |
<script language="javascript"> | |
var zoomingcircles = | |
{ | |
start : function () | |
{ | |
var context = this.getContext(); |