public marks

PUBLIC MARKS from sylvainulg with tags programming & tips

2009

The For-Each Loop

(via)
void cancelAll(Collection<TimerTask> c) { for (TimerTask t : c) t.cancel(); }

Leaning toothpick syndrome - Wikipedia, the free encyclopedia

(via)
When you wish " wasn't " but ' or whatever else ... print qq|$text|; m{ftp://[^/]*/pub/}

2008

gbadev.org :: View topic - Need help with effective VRAM setup

F and G can map anywhere in the first 128K. The catch is, they mirror in two places it should be possible to make F and G contiguous with A (neat mapping technique by cydrak, using the best of VRAM_OFFSET(x)) to offer 112+48K on BG areas plus 448K contiguous as spare (LCD).

2006

perl.com: Perl Command-Line Options

e.g. perl -n -e 'some code' file1 Then Perl will interpret that as: LINE: while (<>) { # your code goes here } ... and much more of the like ^_^