RandomNotes.wiki
changeset 1728 26fbc53190c5
parent 1726 c3de0c96ce6e
child 1731 4fc410bc434e
equal deleted inserted replaced
1727:6d99747d81e3 1728:26fbc53190c5
     1 #summary little tidbits that await proper structuring
     1 #summary Little tidbits that await proper structuring
     2 
     2 
     3 = Introduction =
     3 = Introduction =
     4 This page is a collection of random unsorted or unfinished stuff which is not good or structured enough to be put into one of the “real” wiki pages. Wiki editors: If something becomes actually useable, please move it to the appropriate wiki page and remove it from this page.
     4 This page is a collection of random unsorted or unfinished stuff which is not good or structured enough to be put into one of the “real” wiki pages. Wiki editors: If something becomes actually useable, please move it to the appropriate wiki page and remove it from this page.
     5 
     5 
     6 This page is intentionally chaotic and may change rapidliy at any time.
     6 This page is intentionally chaotic and may change rapidliy at any time.
    16 
    16 
    17 <code>IN="map.hwmap";OUT="temp.lua";base64 -d $IN | tail -c +7 | head -c -4 > foo;echo -ne "\x1f\x8b\x08\0\0\0\0\0\x02\xff" > bar;cat bar foo | gunzip > baz;C=0;echo -n "local map = { " >> $OUT;od -w240 -t u1 baz | grep -Ev "^[0-9]*[[:space:]]*$" | while read f;do C=$((C+1));if ((C!=1));then echo "," >> $OUT;fi;echo -n $f | sed "s/^......./'/;s/  */\\\\/g;s/$/'/" >> $OUT;done;echo "}" >> $OUT</code>
    17 <code>IN="map.hwmap";OUT="temp.lua";base64 -d $IN | tail -c +7 | head -c -4 > foo;echo -ne "\x1f\x8b\x08\0\0\0\0\0\x02\xff" > bar;cat bar foo | gunzip > baz;C=0;echo -n "local map = { " >> $OUT;od -w240 -t u1 baz | grep -Ev "^[0-9]*[[:space:]]*$" | while read f;do C=$((C+1));if ((C!=1));then echo "," >> $OUT;fi;echo -n $f | sed "s/^......./'/;s/  */\\\\/g;s/$/'/" >> $OUT;done;echo "}" >> $OUT</code>
    18 
    18 
    19 Input file: `map.hwmap`
    19 Input file: `map.hwmap`
    20 Output file: `temp.lua`
    20 Output file: `temp.lua`
    21 
       
    22 = Syntax test =
       
    23 
       
    24 == Bullet points ==
       
    25 
       
    26  * Single lonely bullet point
       
    27 
       
    28  * Two bullet points
       
    29  * Two bullet points
       
    30 
       
    31  * Three bullets!
       
    32  * Three bullets!
       
    33  * Three bullets!
       
    34 
       
    35  * Nested bullets, layer 1
       
    36   * Layer 2
       
    37    * Layer 3
       
    38 
       
    39 == Linktest ==
       
    40 
       
    41 [RandomNotes#Undocumented_LuaAP_functions TESTLINK1]
       
    42 [RandomNotes#Bullet_points TESTLINK2]