Skip to content

Instantly share code, notes, and snippets.

View erget's full-sized avatar
🏃‍♂️
Zipping along

Daniel Lee erget

🏃‍♂️
Zipping along
View GitHub Profile
@erget
erget / tenet
Created February 10, 2021 09:50
Reverse text, TeneT style
#!/usr/bin/python
import sys
print(" ".join(sys.argv[1:])[::-1])
@erget
erget / MICMoR Daniel Lee.ipynb
Created August 5, 2019 17:47
MICMoR Daniel Lee.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@erget
erget / python-foundation-proposal.adoc
Last active March 30, 2019 21:11
Python Software Foundation project proposal: Full Stack Embedded 2020

Full Stack Embedded project proposal

Full Stack Embedded’s vision

People in the developing world face some of the world’s biggest challenges. This creates the opportunity to make some of the world’s most innovative and effective solutions. Modern electronics can play a large role in creating these solutions. For many years, developing, building and deploying electronics in developing economies has been cost-prohibitive and ineffective, but with the advent of low-cost embedded systems, this is changing. The time is ripe to introduce these systems to the developing world and empower users there to find and build the tools they need to tackle today’s and tomorrow’s challenges.

Full stack projects help students learn the full range of technologies for implementing hardware projects, from sensor and actuator drivers to scheduling routines, web servers and clients.

@erget
erget / fill-state-log.csv
Last active January 4, 2019 17:28
Sample log files for use with the Basura Trash Can
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
uuid;time;trash_can_uuid;fill_state
4073c6f9-0d93-4169-99f3-e6ad49ca7712;2019-01-04 16:44:17.201312;00000000-0000-0000-0000-000000000000;0.7
fd260e5c-0f92-44ee-868f-52c39f4bd168;2019-01-04 16:46:17.201313;00000000-0000-0000-0000-000000000000;0.7
a8c04c01-86dd-4afa-bc9c-f025225d9a83;2019-01-04 16:47:17.201314;00000000-0000-0000-0000-000000000000;0.7
6233f961-a127-481e-bb14-f9c8c27b81d0;2019-01-04 16:48:17.201315;00000000-0000-0000-0000-000000000000;0.7
a8cf2dba-13e2-4c19-a52f-e90736d09e14;2019-01-04 16:49:17.201315;00000000-0000-0000-0000-000000000000;0.7
2cde031a-bf05-4999-ae52-d76e0d2aab98;2019-01-04 16:50:17.201315;00000000-0000-0000-0000-000000000000;0.7
22547a86-4654-4842-bb2b-4ded2f876fe6;2019-01-04 16:51:17.201315;00000000-0000-0000-0000-000000000000;0.7
18df850c-665a-48cd-b9b9-347376e793c0;2019-01-04 16:52:17.201315;00000000-0000-0000-0000-000000000000;0.7
c594064b-2464-4706-a2e7-0e31b5b1543a;2019-01-04 16:53:17.201315;00000000-0000-0000-0000-000000000000;0.7
@erget
erget / Plotting CAMS nitrogen dioxide products.ipynb
Created June 26, 2018 19:30
Sample code for plotting Copernicus nitrogen dioxide products
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@erget
erget / all-hands.jpg
Last active July 28, 2018 08:50
Full Stack Embedded certificate of participation: Accra 2017
all-hands.jpg
@erget
erget / led.py
Created December 6, 2017 10:00
An example minimal LED driver using the GPIO Manager from FSE 2017
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of FSE 2017.
#
# FSE 2017 is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# FSE 2017 is distributed in the hope that it will be useful,
@erget
erget / remote_client.py
Created November 19, 2017 14:33
An (incomplete) example of how to control the FSE 2017 robot over a network connection.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of FSE 2017.
#
# FSE 2017 is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# FSE 2017 is distributed in the hope that it will be useful,
@erget
erget / show_domain.py
Last active August 15, 2017 09:18
Show value domain given scale and reference value and width of field in bits
#!/usr/bin/env python
"""Show range and precision of encodable values."""
import argparse
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("scale", help="Scale value", type=int)
parser.add_argument("reference", help="Reference value", type=int)
parser.add_argument("width", help="Width in bits", type=int)
@erget
erget / Headless pygame.ipynb
Created July 5, 2017 19:02
Headless pygame - get key state
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.