Skip to content

Instantly share code, notes, and snippets.

View Nick-Harvey's full-sized avatar

Nick Harvey Nick-Harvey

View GitHub Profile
import board
import neopixel
import time
import random
import argparse
num_pixels = 60
iterations = 2
pixels = neopixel.NeoPixel(board.D18, num_pixels)
I0404 09:25:16.189599 123145420140544 video.py:50] Thread <datasources.video.Video object at 0x1571cced0>: starting
04/04 09:25 INFO Thread <datasources.video.Video object at 0x1571cced0>: starting
[[[ 23 21 26]
[ 22 20 25]
[ 22 20 25]
...
[ 9 12 12]
[ 9 12 12]
[ 9 12 12]]
@Nick-Harvey
Nick-Harvey / pipeline.py
Created March 17, 2020 18:28
Pipeline.py from Pachyderm Kubeflow Example
#!/usr/bin/env python3
import os
import json
import kfp
import kfp.dsl
import kfp.components
from kubernetes.client.models import V1EnvVar
default 18:35:13.047064 -0400 loginwindow -[ApplicationManager checkInAppContext:refCon:eventData:] | enter
default 18:35:13.048349 -0400 CommCenter #I handleLSNotitifcation_sync: Application launched: <private>
default 18:35:13.050550 -0400 loginwindow -[PersistentAppsSupport applicationLaunched:] | enter. clearing logout in progress and last logout time
default 18:35:13.050587 -0400 loginwindow -[PersistentAppsSupport applicationReady:] | App: Brave Browser Beta, ready, updating active tracking timer
default 18:35:13.050609 -0400 loginwindow -[PersistentAppsSupport(Internal) updateActiveTrackingTimer] | Creating timer
default 18:35:13.051061 -0400 loginwindow -[ApplicationManager checkInAppContext:refCon:eventData:] | checked in app : Brave Browser Beta
default 18:35:13.067393 -0400 mds directQueryFetchResultsReply 40962 1795162112 35
default 18:35:13.120021 -0400 Brave Browser Beta [0411/183513.119136:ERROR:file_io.cc(89)] ReadExactly: expected 8, observed 0
default 18:35:13.120296 -0400 Brave Browser
@Nick-Harvey
Nick-Harvey / gist:e14963a7325293cd3695a72fd2da1469
Created April 11, 2019 22:31
Post-font Validation Brave Beta Install
Process: Brave Browser Beta [16872]
Path: /Applications/Brave Browser Beta.app/Contents/MacOS/Brave Browser Beta
Identifier: com.brave.Browser.beta
Version: 74.0.63.35 (63.35)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Brave Browser Beta [16872]
User ID: 501
Date/Time: 2019-04-11 18:30:58.363 -0400
{
"pipeline": {
"name": "Mobile_Object_Train"
},
"transform": {
"image": "nickharvey/detect-tf2:v2",
"cmd": [ "sh" ],
"stdin": [
"python -m scripts.retrain --bottleneck_dir=/pfs/out/bottlenecks --how_many_training_steps=500 --model_dir=/pfs/out/models/ --summaries_dir=/pfs/out/training_summaries/${ARCHITECTURE} --output_graph=/pfs/out/retrained_graph.pb --output_labels=/pfs/out/retrained_labels.txt --architecture=${ARCHITECTURE} --image_dir=/pfs/flower_photos/",
"tensorboard --logdir /pfs/out/training_summaries &"
Process: Brave Browser Beta [4366]
Path: /Applications/Brave Browser Beta.app/Contents/MacOS/Brave Browser Beta
Identifier: com.brave.Browser.beta
Version: 73.0.63.29 (63.29)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Brave Browser Beta [4366]
User ID: 501
Date/Time: 2019-04-03 09:23:44.383 -0400
$ kubectl describe node
Name: minikube
Roles: master
Labels: beta.kubernetes.io/arch=amd64
beta.kubernetes.io/os=linux
kubernetes.io/hostname=minikube
node-role.kubernetes.io/master=
Annotations: kubeadm.alpha.kubernetes.io/cri-socket: /var/run/dockershim.sock
node.alpha.kubernetes.io/ttl: 0
volumes.kubernetes.io/controller-managed-attach-detach: true
@Nick-Harvey
Nick-Harvey / Pachyderm CLA
Last active March 12, 2020 00:01
Pachyderm CLA
Pachyderm Contributor License Agreement
Thank you for contributing code to Pachyderm! Similar to open source projects, we need a contributor license agreement from you before we can merge in your changes. You only need to fill out this agreement once.
In brief, by submitting your code to Pachyderm, you are granting us a right to use that code under the terms of this Agreement, including providing it to others. You are also certifying that you wrote it, and that you are allowed to license it to us. You are not giving up your copyright in your work.
Contributor License Agreements are important because they define the chain of ownership of a piece of software. Some companies won't allow the use of free software without clear agreements around code ownership.
Please read this document carefully before signing and keep a copy for your records. (You'll get an email confirmation when you electronically sign the CLA.) If you have questions about these terms, or if you cannot submit an electronic copy, please con
@Nick-Harvey
Nick-Harvey / Pachyderm_Evangelist.md
Created October 16, 2018 17:44
Pachyderm Evangelist Role

Description:
Pachyderm is seeking an expert data science Evangelist to evangelize our brand, product, and thought leadership to our customers, prospects, and partners. This is an incredibly unique and exciting role where you will get to build out a grass-roots following and grow brand awareness through engaging with other industry influencers, speaking at key conferences, creating thought leadership content, and more. The role will also be focused on developer advocacy and collaborating with open source users to further improve the overall project. Our vision of the perfect candidate is someone who loves to build machine learning projects and data science examples, write blog posts, give talks, evangelize Go, Docker, and Kubernetes, and generally just get Pachyderm in on the conversation.

Qualifications:

  • A quick study, with technical machine learning and data science experience and an ability to translate complex subjects into concise explanations.
  • An already-established social network and rel