Last active
August 29, 2015 14:06
-
-
Save r2k0/40a3c311866f27e4b740 to your computer and use it in GitHub Desktop.
Revisions
-
r2k0 revised this gist
Sep 15, 2014 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,10 @@ #Serve current directory tree at http://$HOSTNAME:8000/ python -m SimpleHTTPServer #swap b, a = a, b # a = [1,2,3,4,5] a[::2] # iterate over the whole list in 2-increments [1,3,5] a[::-1] # reversed [5,4,3,2,1] -
r2k0 revised this gist
Sep 15, 2014 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,7 @@ #Serve current directory tree at http://$HOSTNAME:8000/ python -m SimpleHTTPServer #swap b, a = a, b -
r2k0 revised this gist
Sep 15, 2014 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,9 @@ '''python #Serve current directory tree at http://$HOSTNAME:8000/ python -m SimpleHTTPServer #swap b, a = a, b ''' -
r2k0 revised this gist
Sep 15, 2014 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,6 @@ #Serve current directory tree at http://$HOSTNAME:8000/ python -m SimpleHTTPServer #swap b, a = a, b -
r2k0 created this gist
Sep 15, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ #Serve current directory tree at http://$HOSTNAME:8000/ python -m SimpleHTTPServer