Last active
June 18, 2025 08:46
-
Star
(250)
You must be signed in to star a gist -
Fork
(39)
You must be signed in to fork a gist
Revisions
-
Nurdok revised this gist
Nov 30, 2016 . 1 changed file with 0 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 @@ -36,7 +36,6 @@ Python Number Conversion Chart <td>int(data)</td> </tr> <tr> <td>"45"</td> <td>"3435"</td> <td>data.encode('hex')</td> -
Nurdok revised this gist
Nov 30, 2016 . 1 changed file with 1 addition 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 @@ -41,6 +41,7 @@ Python Number Conversion Chart <td>"3435"</td> <td>data.encode('hex')</td> </tr> <tr> <td>"101101"</td> <td>45</td> <td>int(data, 2)</td> -
Nurdok revised this gist
Apr 20, 2013 . 1 changed file with 1 addition 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 @@ -61,7 +61,7 @@ Python Number Conversion Chart <td>struct.unpack('!i', data)[0]</td> </tr> <tr> <td>"\x2d"</td> <td>"2D"</td> <td>binascii.hexlify(data)</td> </tr> -
Nurdok revised this gist
Apr 20, 2013 . 1 changed file with 1 addition 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 @@ -39,7 +39,7 @@ Python Number Conversion Chart <tr> <td>"45"</td> <td>"3435"</td> <td>data.encode('hex')</td> </tr> <td>"101101"</td> <td>45</td> -
Nurdok revised this gist
Apr 20, 2013 . 1 changed file with 2 additions and 2 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 @@ -67,8 +67,8 @@ Python Number Conversion Chart </tr> <tr> <td>"3435"</td> <td>"45"</td> <td>data.decode('hex')</td> </tr> </tbody> </table> -
Nurdok revised this gist
Apr 20, 2013 . 1 changed file with 5 additions and 5 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 @@ -36,6 +36,11 @@ Python Number Conversion Chart <td>int(data)</td> </tr> <tr> <tr> <td>"45"</td> <td>"3435"</td> <td>data.decode('hex')</td> </tr> <td>"101101"</td> <td>45</td> <td>int(data, 2)</td> @@ -51,11 +56,6 @@ Python Number Conversion Chart <td>binascii.unhexlify(data) or data.decode('hex')</td> </tr> <tr> <td>"\x00\x00\x00\x2d"</td> <td>45</td> <td>struct.unpack('!i', data)[0]</td> -
Nurdok revised this gist
Apr 20, 2013 . 1 changed file with 1 addition 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 @@ -48,7 +48,7 @@ Python Number Conversion Chart <tr> <td>"2D"</td> <td>"\x2d"</td> <td>binascii.unhexlify(data) or data.decode('hex')</td> </tr> <tr> <td>"2D"</td> -
Nurdok revised this gist
Apr 20, 2013 . 1 changed file with 1 addition 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 @@ -47,7 +47,7 @@ Python Number Conversion Chart </tr> <tr> <td>"2D"</td> <td>"\x2d"</td> <td>binascii.unhexlify(data)</td> </tr> <tr> -
Nurdok revised this gist
Apr 20, 2013 . 1 changed file with 4 additions and 4 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 @@ -27,7 +27,7 @@ Python Number Conversion Chart </tr> <tr> <td>45</td> <td>"\x00\x00\x00\x2d"</td> <td>struct.pack('!i', data)</td> </tr> <tr> @@ -47,7 +47,7 @@ Python Number Conversion Chart </tr> <tr> <td>"2D"</td> <td>"\x00\x00\x00\x2d"</td> <td>binascii.unhexlify(data)</td> </tr> <tr> @@ -56,12 +56,12 @@ Python Number Conversion Chart <td>data.decode('hex')</td> </tr> <tr> <td>"\x00\x00\x00\x2d"</td> <td>45</td> <td>struct.unpack('!i', data)[0]</td> </tr> <tr> <td>"\x00\x00\x00\x2d"</td> <td>"2D"</td> <td>binascii.hexlify(data)</td> </tr> -
Nurdok revised this gist
Apr 20, 2013 . 1 changed file with 1 addition 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 @@ -73,4 +73,4 @@ Python Number Conversion Chart </tbody> </table> Comments are welcome here or <a href="http://blog.amir.rachum.com/post/48428590088/python-number-conversion-chart">in my original blog post</a> regarding this table. -
Nurdok revised this gist
Apr 20, 2013 . 1 changed file with 3 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 @@ -71,4 +71,6 @@ Python Number Conversion Chart <td>data.encode('hex')</td> </tr> </tbody> </table> Comments are welcome here or [in my original blog post][http://blog.amir.rachum.com/post/48428590088/python-number-conversion-chart] regarding this table. -
Nurdok revised this gist
Apr 20, 2013 . 1 changed file with 71 additions and 14 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,17 +1,74 @@ Python Number Conversion Chart -------------------------- <table> <thead> <tr> <th>From</th> <th>To</th> <th>Expression</th> </tr> </thead> <tbody> <tr> <td>45</td> <td>"45"</td> <td>str(data)</td> </tr> <tr> <td>45</td> <td>"101101"</td> <td>bin(data)</td> </tr> <tr> <td>45</td> <td>"2D"</td> <td>hex(data)</td> </tr> <tr> <td>45</td> <td>"\x00\x00\x002d"</td> <td>struct.pack('!i', data)</td> </tr> <tr> <td>"45"</td> <td>45</td> <td>int(data)</td> </tr> <tr> <td>"101101"</td> <td>45</td> <td>int(data, 2)</td> </tr> <tr> <td>"2D"</td> <td>45</td> <td>int(data, 16)</td> </tr> <tr> <td>"2D"</td> <td>"\x00\x00\x002d"</td> <td>binascii.unhexlify(data)</td> </tr> <tr> <td>"2D"</td> <td>"3435"</td> <td>data.decode('hex')</td> </tr> <tr> <td>"\x00\x00\x002d"</td> <td>45</td> <td>struct.unpack('!i', data)[0]</td> </tr> <tr> <td>"\x00\x00\x002d"</td> <td>"2D"</td> <td>binascii.hexlify(data)</td> </tr> <tr> <td>"3435"</td> <td>"2D"</td> <td>data.encode('hex')</td> </tr> </tbody> </table> -
Nurdok revised this gist
Apr 20, 2013 . 1 changed file with 1 addition 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 @@ -2,7 +2,7 @@ Python Number Conversion Chart -------------------------- From|To|Expression -- | -- | -- 45|"45"|str(data) 45|"101101"| bin(data) 45|"2D"|hex(data) -
Nurdok revised this gist
Apr 20, 2013 . 1 changed file with 1 addition 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 @@ -2,7 +2,7 @@ Python Number Conversion Chart -------------------------- From|To|Expression ----|--|---------- 45|"45"|str(data) 45|"101101"| bin(data) 45|"2D"|hex(data) -
Nurdok revised this gist
Apr 20, 2013 . 1 changed file with 1 addition and 2 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 @@ -2,13 +2,12 @@ Python Number Conversion Chart -------------------------- From|To|Expression ------------------ 45|"45"|str(data) 45|"101101"| bin(data) 45|"2D"|hex(data) 45|"\x00\x00\x002d"|struct.pack('!i', data) "45"|45|int(data) "101101"|45|int(data, 2) "2D"|45|int(data, 16) "2D"|"\x00\x00\x002d"|binascii.unhexlify(data) -
Nurdok renamed this gist
Apr 20, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Nurdok renamed this gist
Apr 20, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Nurdok revised this gist
Apr 20, 2013 . 1 changed file with 7 additions and 2 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,7 +1,6 @@ Python Number Conversion Chart -------------------------- From|To|Expression |:-:| 45|"45"|str(data) @@ -10,4 +9,10 @@ From|To|Expression 45|"\x00\x00\x002d"|struct.pack('!i', data) "45"|45|int(data) "45"|"\x00\x00\x002d"|struct.pack('!i', int(data)) "101101"|45|int(data, 2) "2D"|45|int(data, 16) "2D"|"\x00\x00\x002d"|binascii.unhexlify(data) "2D"|"3435"|data.decode('hex') "\x00\x00\x002d"|45|struct.unpack('!i', data)[0] "\x00\x00\x002d"|"2D"|binascii.hexlify(data) "3435"|"2D"|data.encode('hex') -
Nurdok revised this gist
Apr 20, 2013 . 1 changed file with 1 addition 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,7 @@ Python Number Conversion Chart -------------------------- From|To|Expression |:-:| 45|"45"|str(data) -
Nurdok revised this gist
Apr 20, 2013 . 1 changed file with 1 addition 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 @@ -2,7 +2,7 @@ Python Number Conversion Chart -------------------------- From|To|Expression |:-:| 45|"45"|str(data) 45|"101101"| bin(data) 45|"2D"|hex(data) -
Nurdok renamed this gist
Apr 20, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Nurdok revised this gist
Apr 20, 2013 . 1 changed file with 11 additions and 21 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,22 +1,12 @@ Python Number Conversion Chart -------------------------- From|To|Expression |-| 45|"45"|str(data) 45|"101101"| bin(data) 45|"2D"|hex(data) 45|"\x00\x00\x002d"|struct.pack('!i', data) "45"|45|int(data) "45"|"\x00\x00\x002d"|struct.pack('!i', int(data)) -
Nurdok created this gist
Nov 17, 2012 .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,22 @@ Python Hex =========== +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | | TO | +------+-------------------------------+----------------------+--------------------------------+------------------+-----------------------+--------------------------+--------------------------------+------------------------------+ | FROM | | Example | Integer | Integer String | ASCII Binary String | ASCII Hex String | Binary String | ASCII Hex of Integer String | + +-------------------------------+----------------------+--------------------------------+------------------+-----------------------+--------------------------+--------------------------------+------------------------------+ | | Example | | 45 | "45" | "101101" | "2D" | "\x00\x00\x00\x2d" | "3435" | + +-------------------------------+----------------------+--------------------------------+------------------+-----------------------+--------------------------+--------------------------------+------------------------------+ | | Integer | 45 | - | str(data) | bin(data)* | hex(data)* | struct.pack('!i', data)** | - | + +-------------------------------+----------------------+--------------------------------+------------------+-----------------------+--------------------------+--------------------------------+------------------------------+ | | Integer String | "45" | int(data) | - | T | T | struct.pack('!i', int(data)) | - | + +-------------------------------+----------------------+--------------------------------+------------------+-----------------------+--------------------------+--------------------------------+------------------------------+ | | ASCII Binary String | "101101" | int(data, 2) | T | - | T | T | - | + +-------------------------------+----------------------+--------------------------------+------------------+-----------------------+--------------------------+--------------------------------+------------------------------+ | | ASCII Hex String | "2D" | int(data, 16) | T | T | - | binascii.unhexlify(data) | data.decode('hex') | + +-------------------------------+----------------------+--------------------------------+------------------+-----------------------+--------------------------+--------------------------------+------------------------------+ | | Binary String | "\x00\x00\x00\x2d" | struct.unpack('!i', data)[0] | T | T | binascii.hexlify(data) | - | - | + +-------------------------------+----------------------+--------------------------------+------------------+-----------------------+--------------------------+--------------------------------+------------------------------+ | | ASCII Hex of Integer String | "3435" | - | - | - | data.encode('hex') | - | - | +------+-------------------------------+----------------------+--------------------------------+------------------+-----------------------+--------------------------+--------------------------------+------------------------------+