Skip to content

Instantly share code, notes, and snippets.

View netskink's full-sized avatar

John F. Davis netskink

View GitHub Profile
@netskink
netskink / diagram.md
Last active May 7, 2020 00:08
state machine demo

alt text

@netskink
netskink / ns_MouseAction.py
Last active April 29, 2020 19:53
a state machine
# Example usage of state machine class
#
#
#
class ns_MouseAction:
def __init__(self, action):
self.action = action
def __str__(self):
@netskink
netskink / README.md
Last active March 14, 2020 00:38
Google Hangouts Method for Hosting an Online Meetup

Google Calendar

Using google calendar, create a calendar entry. Invite members by email. Assuming you know the email of all members who RSVP for meetup. Use the message function in meetup.com to ask for email if you don't know someone who has RSVP.

In the calendar invite, for the conference location specify hangouts. You do not need GSuite for this currently. For the location specify "online".

Voila! You have a scheduled an online meeting.

root@raspberrypi:~# ls -l /usr/src/
total 16
drwxr-xr-x 24 root root 4096 Feb 19 11:46 linux-headers-4.19.97+
drwxr-xr-x 24 root root 4096 Feb 19 11:46 linux-headers-4.19.97-v7+
drwxr-xr-x 24 root root 4096 Feb 19 11:46 linux-headers-4.19.97-v7l+
drwxr-xr-x 3 root root 4096 Feb 13 11:02 sense-hat
@netskink
netskink / notes.txt
Last active February 17, 2020 19:35
Access point on a USB dongle
Using two wifi access points on debian
(Do this to copy and paste to github gist xclip -sel c < file )
Thanks to tds on freenode.
Using this guide
https://www.shellvoide.com/wifi/setup-wireless-access-point-hostapd-dnsmasq-linux/
Do this as root. It appears i am not in a group for networking. I'll
@netskink
netskink / notes.txt
Created February 17, 2020 15:44
Trying to get a USB EOUP adapter working with Debian as client and access point
Using two wifi access points on debian
Using this guide
https://www.shellvoide.com/wifi/setup-wireless-access-point-hostapd-dnsmasq-linux/
Do this as root. It appears i am not in a group for networking. I'll
try to do this again as user davis and update the notes later.
Regarding the hardware. I have built in wifi adapter on
# from
# https://www.tensorflow.org/beta/tutorials/estimators/boosted_trees
# TODO: 2.0 is out now
#!pip install tensorflow==2.0.0-rc1
#try:
# %tensorflow_version 2.x
#except Exception:
# pass
@netskink
netskink / minimal.py
Created December 11, 2019 18:26
xgboosted tree demo and tensorflow 2.0 bug
# from
# https://www.tensorflow.org/beta/tutorials/estimators/boosted_trees
# TODO: 2.0 is out now
#!pip install tensorflow==2.0.0-rc1
#try:
# %tensorflow_version 2.x
#except Exception:
# pass
CREATE TEMP FUNCTION
my_corr(x FLOAT64, y FLOAT64)
RETURNS FLOAT64
AS (
(x*y)
);
WITH
cte1 (feat, colname, bc) AS (
SELECT col1, 'col1', bc
@netskink
netskink / jupyter-minimal_ipynb
Last active October 11, 2019 21:20
kernel restart error in jupyter notebook
# from
# https://www.tensorflow.org/beta/tutorials/estimators/boosted_trees
import numpy as np
import pandas as pd
from IPython.display import clear_output
from matplotlib import pyplot as plt
import platform
try:
%tensorflow_version 2.x
except Exception: