Skip to content

Instantly share code, notes, and snippets.

Zev Isert zevisert

Block or report user

Report or block zevisert

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zevisert
zevisert / dotfiles-setup.sh
Last active May 23, 2019
Initialize from my private dotfiles repository
View dotfiles-setup.sh
# 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 / auto-mpg.csv
Last active Mar 14, 2019
Dust and Magnet Data
View auto-mpg.csv
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
View .zshrc
# 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 Jan 6, 2019
Polymer build configs
View all-polymer-builds.txt
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 Apr 15, 2018
Demo code for sending UDP datagrams from a Logitech Attack 3 joystick to a Roomba iRobot Create
View gamepad-control.js
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 Sep 29, 2017
Demo of an instagram embed in Shadow DOM
View shadowdom-instagram-embed.html
<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 Aug 1, 2017
How I did NLP assignment 3 Q2 - maybe useful for our project as we move into MLP's
View mlp.ipynb
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 Jun 6, 2017
My online identity proof
View keybase.md

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:

@zevisert
zevisert / mailgun_validate.js
Created Mar 30, 2017
This file merges mailgun validation functionality with jQuery Validation Plugin's surprisingly poor async validation customizability.
View mailgun_validate.js
/**
* Created by zevisert on 2017-03-27.
* This file merges mailgun validation functionality with jQueryValidationPlugin's surprisingly
* poor async validation customizability. Much of this code has been borrowed from
* * jQuery Validation remote method
* - https://github.com/jquery-validation/jquery-validation/blob/master/src/core.js#L1477
* * Mailgun validator jquery plugin
* - https://github.com/mailgun/validator-demo/blob/master/mailgun_validator.js#L30
*
*
You can’t perform that action at this time.