Pinterest • The world’s catalogue of ideas

Php append array

stack machine (bottom-up) 2016_09_15_07_44_38 diff --git a/manual4.py b/manual4.py index a609ed4..70f62ef 100644 --- a/manual4.py b/manual4.py @@ -2126 21214 @@ while line: str = "\"" tmp[0] "\"" "[color=palegreen penwidth=16 style = \"boldfilled\"]" array.append(str) elif tmp[1] == "PGR": str = "\"" tmp[0] "\"" "[color=palegoldenrod penwidth=5]" array.append(str) elif tmp[1] == "PGRNR"…

stack machine (bottom-up) 2016_08_11_09_37_56 diff --git a/gdb1.sh b/gdb1.sh index e6d7eba..cb69f0c 100755 --- a/gdb1.sh b/gdb1.sh @@ -13 13 @@ python gdb1.py gdb.txt > tmpdot -dot -Tpng tmpdot -o 1.png -\cp 1.png /var/www/html/codes/ \ No newline at end of file dot -Tpng tmpdot -o 1-gdb.png \cp 1-gdb.png /var/www/html/codes/ \ No newline at end of file diff --git a/gdb2.sh b/gdb2.sh index 0f0f26a..f5a41a5 100755 --- a/gdb2.sh b/gdb2.sh @@ -14 14 @@ python gdb2.py gdb.txt > tmpdot -dot…

stack machine (bottom-up) 2016_08_11_11_09_14 diff --git a/gdb1.sh b/gdb1.sh index e6d7eba..cb69f0c 100755 --- a/gdb1.sh b/gdb1.sh @@ -13 13 @@ python gdb1.py gdb.txt > tmpdot -dot -Tpng tmpdot -o 1.png -\cp 1.png /var/www/html/codes/ \ No newline at end of file dot -Tpng tmpdot -o 1-gdb.png \cp 1-gdb.png /var/www/html/codes/ \ No newline at end of file diff --git a/gdb2.sh b/gdb2.sh index 0f0f26a..f5a41a5 100755 --- a/gdb2.sh b/gdb2.sh @@ -14 14 @@ python gdb2.py gdb.txt > tmpdot -dot…

stack machine (bottom-up) 2016_08_17_04_58_47 diff --git a/gdb1.sh b/gdb1.sh index e6d7eba..cb69f0c 100755 --- a/gdb1.sh b/gdb1.sh @@ -13 13 @@ python gdb1.py gdb.txt > tmpdot -dot -Tpng tmpdot -o 1.png -\cp 1.png /var/www/html/codes/ \ No newline at end of file dot -Tpng tmpdot -o 1-gdb.png \cp 1-gdb.png /var/www/html/codes/ \ No newline at end of file diff --git a/gdb2.sh b/gdb2.sh index 0f0f26a..f5a41a5 100755 --- a/gdb2.sh b/gdb2.sh @@ -14 14 @@ python gdb2.py gdb.txt > tmpdot -dot…

stack machine (bottom-up) 2016_08_28_10_07_48 diff --git a/gdb1.sh b/gdb1.sh index e6d7eba..cb69f0c 100755 --- a/gdb1.sh b/gdb1.sh @@ -13 13 @@ python gdb1.py gdb.txt > tmpdot -dot -Tpng tmpdot -o 1.png -\cp 1.png /var/www/html/codes/ \ No newline at end of file dot -Tpng tmpdot -o 1-gdb.png \cp 1-gdb.png /var/www/html/codes/ \ No newline at end of file diff --git a/gdb2.sh b/gdb2.sh index 0f0f26a..f5a41a5 100755 --- a/gdb2.sh b/gdb2.sh @@ -14 14 @@ python gdb2.py gdb.txt > tmpdot -dot…

stack machine (bottom-up) 2016_08_29_04_07_53 diff --git a/gdb1.sh b/gdb1.sh index e6d7eba..cb69f0c 100755 --- a/gdb1.sh b/gdb1.sh @@ -13 13 @@ python gdb1.py gdb.txt > tmpdot -dot -Tpng tmpdot -o 1.png -\cp 1.png /var/www/html/codes/ \ No newline at end of file dot -Tpng tmpdot -o 1-gdb.png \cp 1-gdb.png /var/www/html/codes/ \ No newline at end of file diff --git a/gdb2.sh b/gdb2.sh index 0f0f26a..f5a41a5 100755 --- a/gdb2.sh b/gdb2.sh @@ -14 14 @@ python gdb2.py gdb.txt > tmpdot -dot…

block device driver 2016_12_30_04_18_35 diff --git a/manual4.py b/manual4.py index 3f84a05..6ddcbbe 100644 --- a/manual4.py b/manual4.py @@ -4111 4112 @@ while line: #alpha [label = "This is 1st node."]; lbl = re.split(r"@@" line) - if len(lbl) == 3: - print "\"" lbl[0] "\"" "->" "\"" lbl[1] "\"" "[dir = both label = " "\"" lbl[2] "\"" " color=red penwidth=5];" if len(lbl) == 3: print "edge[penwidth=15]" print "\"" lbl[0] "\"" "->" "\"" lbl[1] "\"" "[dir = both…

stack machine (bottom-up) 2016_08_27_09_25_51 diff --git a/gdb1.sh b/gdb1.sh index e6d7eba..cb69f0c 100755 --- a/gdb1.sh b/gdb1.sh @@ -13 13 @@ python gdb1.py gdb.txt > tmpdot -dot -Tpng tmpdot -o 1.png -\cp 1.png /var/www/html/codes/ \ No newline at end of file dot -Tpng tmpdot -o 1-gdb.png \cp 1-gdb.png /var/www/html/codes/ \ No newline at end of file diff --git a/gdb2.sh b/gdb2.sh index 0f0f26a..f5a41a5 100755 --- a/gdb2.sh b/gdb2.sh @@ -14 14 @@ python gdb2.py gdb.txt > tmpdot -dot…

Python List Examples – Insert, Append, Length, Index, Remove, Pop