Skip to content

Instantly share code, notes, and snippets.

View zevisert's full-sized avatar

Zev Isert zevisert

View GitHub Profile
@zevisert
zevisert / pyproject.json
Created September 26, 2020 04:17
pyproject.toml json-schema including poetry definitions
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"poetry-authors": {
"type": "array",
"description": "List of authors that contributed to the package. This is typically the main maintainers, not the full list.",
"items": {
"type": "string",
"pattern": "^(?:\\S+?\\s)+?(?:<(?:[a-z\\d!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z\\d!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z\\d](?:[a-z\\d-]*[a-z\\d])?\\.)+[a-z\\d](?:[a-z\\d-]*[a-z\\d])?|\\[(?:(?:25[0-5]|2[0-4][\\d]|[01]?[\\d][\\d]?)\\.){3}(?:25[0-5]|2[0-4][\\d]|[01]?[\\d][\\d]?|[a-z\\d-]*[a-z\\d]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])>)?$"
}
@zevisert
zevisert / dotfiles-setup.sh
Last active May 23, 2019 23:19
Initialize from my private dotfiles repository
# Call this using curl:
# curl -Lks https://bit.do/zevisert-dots | /bin/bash
# Fallback to MD5(zevisert-ssh) if no hash is specified
MD5_KEY=${1:-d2:68:da:ce:5c:d8:d1:30:19:6c:63:b8:e9:fa:38:d1}
# Check for an ssh-agent
if [ -n "$SSH_AGENT_PID" -a -e /proc/$SSH_AGENT_PID ];
then
matching_hashes=$(ssh-add -E MD5 -l | grep -c $MD5_KEY);
@zevisert
zevisert / cars-parallel.png
Last active March 14, 2019 16:38
DataVis Presentation Images
cars-parallel.png
@zevisert
zevisert / auto-mpg.csv
Last active March 14, 2019 06:29
Dust and Magnet Data
mpg cylinders displacement horsepower weight acceleration model_year origin name
18 8 307 130 3504 12 70 1 chevrolet chevelle malibu
15 8 350 165 3693 11.5 70 1 buick skylark 320
18 8 318 150 3436 11 70 1 plymouth satellite
16 8 304 150 3433 12 70 1 amc rebel sst
17 8 302 140 3449 10.5 70 1 ford torino
15 8 429 198 4341 10 70 1 ford galaxie 500
14 8 454 220 4354 9 70 1 chevrolet impala
14 8 440 215 4312 8.5 70 1 plymouth fury iii
14 8 455 225 4425 10 70 1 pontiac catalina
@zevisert
zevisert / .zshrc
Last active February 8, 2019 08:03
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="zev"
## Uncomment the following line to use case-sensitive completion.
@zevisert
zevisert / all-polymer-builds.txt
Last active January 6, 2019 11:32
Polymer build configs
js.compile: "es2018"
# build name | browser capabilities
"2018-psm" | ["es2018", "push", "serviceworker", "modules"]
"2018-ps" | ["es2018", "push", "serviceworker"]
"2018-pm" | ["es2018", "push", "modules"]
"2018-sm" | ["es2018", "serviceworker", "modules"]
"2018-s" | ["es2018", "serviceworker"]
"2018-m" | ["es2018", "modules"]
"2018-p" | ["es2018", "push",]
"2018-0" | ["es2018"]
@zevisert
zevisert / gamepad-control.js
Last active April 15, 2018 07:29
Demo code for sending UDP datagrams from a Logitech Attack 3 joystick to a Roomba iRobot Create
var GamePad = require( 'node-gamepad' );
var dgram = require( 'dgram' );
var controller = new GamePad('logitech/attack3');
controller.connect();
var socket = dgram.createSocket('udp4');
socket.on('listening', function(){
socket.setBroadcast(true);
});
@zevisert
zevisert / shadowdom-instagram-embed.html
Created September 29, 2017 09:12
Demo of an instagram embed in Shadow DOM
<html lang="en">
<head>
<title>Instagram in Polymer demo</title>
<!-- Import the webcomponents polyfill and Polymer -->
<base href="https://polygit.org/components/">
<script src="webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="polymer/polymer-element.html">
</head>
@zevisert
zevisert / mlp.ipynb
Created August 1, 2017 03:07
How I did NLP assignment 3 Q2 - maybe useful for our project as we move into MLP's
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zevisert
zevisert / keybase.md
Created June 6, 2017 17:18
My online identity proof

Keybase proof

I hereby claim:

  • I am zevisert on github.
  • I am zevisert (https://keybase.io/zevisert) on keybase.
  • I have a public key ASCjvtZm5q54-yFoTOY8VfaO_J95DUq8TSeimtytiJBOFwo

To claim this, I am signing this object: