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 characters
(module USB_C_Receptacle_PCBEdge (layer F.Cu) (tedit 5AC3C029) | |
(descr "USB Type-C Receptacle, PCB edge, Conductive shell, http://www.usb.org/developers/docs/usb_31_033017.zip") | |
(tags "USB Type-C Receptacle PCB edge conductive") | |
(attr virtual) | |
(fp_text reference REF** (at 0 -1) (layer F.SilkS) | |
(effects (font (size 1 1) (thickness 0.15))) | |
) | |
(fp_text value USB_C_Receptacle_PCBEdge (at 0 5.5) (layer F.Fab) | |
(effects (font (size 1 1) (thickness 0.15))) | |
) |
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 characters
#!/bin/python3 | |
def num2bin(n): | |
p = f'{n:b}'.count('1')%2 | |
b = (n<<3) | (p << 2) | ((p^1) <<1) | 1 | |
return b | |
def bin2str(b): | |
return f'{b:013b}' |
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 characters
#!/bin/python | |
import requests, datetime, netCDF4, re | |
# 6215: Voorschoten | |
# 6344: Rotterdam The Hague Airport | |
# 6330: Hoek van Holland | |
weather_stations = [6330, 6344, 6215] | |
apiKey = 'ey...J9' |
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 characters
CREATE TABLE mqtt ( | |
ts timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
topic text[] NOT NULL, | |
retain boolean NOT NULL, | |
value text, | |
PRIMARY KEY (ts, topic) | |
) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 characters
# apt install hedgewars | |
Reading package lists... Done | |
Building dependency tree... Done | |
Reading state information... Done | |
The following additional packages will be installed: | |
adwaita-icon-theme alsa-topology-conf alsa-ucm-conf at-spi2-core dconf-gsettings-backend dconf-service fontconfig | |
fonts-wqy-zenhei glib-networking glib-networking-common glib-networking-services gsettings-desktop-schemas | |
gtk-update-icon-cache hedgewars-data hicolor-icon-theme libaacs0 libaom0 libasound2 libasound2-data libasyncns0 | |
libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0 libavahi-client3 libavahi-common-data | |
libavahi-common3 libavcodec58 libavformat58 libavutil56 libbdplus0 libbluray2 libcairo-gobject2 libcairo2 |
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 characters
peter@doosje /tmp> ./test.py | |
normal stdout (should be empty): | |
Index list with 1 item | |
hci0: Primary controller | |
addr 9C:FC:E8:F2:41:6B version 10 manufacturer 2 class 0x3c0104 | |
supported settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le advertising secure-conn debug-keys privacy configuration static-addr phy-configuration wide-band-speech | |
current settings: powered ssp br/edr le secure-conn | |
name doosje | |
short name | |
hci0: Configuration options |
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 characters
import wasp | |
import icons | |
from ubinascii import a2b_base64 | |
WEEKDAYS = [ | |
'Maandag', | |
'Dinsdag', | |
'Woensdag', | |
'Donderdag', | |
'Vrijdag', |

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 characters
<domain type="kvm"> | |
<name>win10</name> | |
<uuid>36cb74f0-d9f2-4970-98a0-f70332f20cc8</uuid> | |
<metadata> | |
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0"> | |
<libosinfo:os id="http://microsoft.com/win/10"/> | |
</libosinfo:libosinfo> | |
</metadata> | |
<memory unit="KiB">28311552</memory> | |
<currentMemory unit="KiB">28311552</currentMemory> |
NewerOlder