Skip to content

Instantly share code, notes, and snippets.

@Nurdok
Nurdok / python_conversion.md
Last active June 18, 2025 08:46
Python Conversion

Python Number Conversion Chart

From To Expression
@dropwhile
dropwhile / install-setup.txt
Last active February 28, 2020 05:43
python serialization speed comparison
virtualenv --no-site-packages hodor
hodor/bin/pip install simplejson ujson cbor tnetstring msgpack-python
curl -s 'http://www.json-generator.com/api/json/get/cvfsLVmKiG?indent=2' > test.json
hodor/bin/python shootout.py
@morganp
morganp / timeformat.v
Last active July 29, 2020 16:53
Verilog time format
//To change the way (below) is displayed
$display("%t", $realtime);
//$timeformat(unit#, prec#, "unit", minwidth);
$timeformat(-3, 2, " ms", 10); // -3 and " ms" give useful display msg
unit is the base that time is to be displayed in, from 0 to -15
precision is the number of decimal points to display.
"unit" is a string appended to the time, such as " ns".
minwidth is the minimum number of characters that will be displayed.
¯\_(ツ)_/¯
┌( ಠ_ಠ)┘
{ಠಠ}_,,|,
ಥ_ಥ
(///_ಥ)
๏̯͡๏
טּ_טּ
◪_◪
◮_◮
◔_◔