Skip to content

Instantly share code, notes, and snippets.

View tatmush's full-sized avatar

tat mush tatmush

View GitHub Profile
@tatmush
tatmush / Developer Checklist for a hackathon
Last active March 25, 2019 06:42
This is what I think a developer should know before attending a hackathon so that they can contribute meaningfully. (Zimbabwe)
Developer checklist
Read my blog here http://tatalmondmush.me/saturday-thorns/2019/03/14/hackerthon-culture-in-Zimbabwe.html which inspired this gist.
Items not in any order, please add more.
- git/github/gitlab
- trello
- know what an API is
- ssh
- basic terminal usage is extremly important
@tatmush
tatmush / github-graphql-queries.md
Last active March 21, 2019 09:08
github-graphql-queries

Inspired by my project here. What i'm actually looking for is a query to find the actor who closed off an issue. Please help___

  • Give a description of what your query does.
  • Paste the query here

Keybase proof

I hereby claim:

  • I am tatmush on github.
  • I am tatmush (https://keybase.io/tatmush) on keybase.
  • I have a public key ASBR1uW2NtU03lvxIeWdD4xWQcYYFvXp-xQLjlNd5M824Ao

To claim this, I am signing this object:

import csv
import sys
"""
Gets all silver plans out of plans.csv.
Returns a silverPlans dictionary consisting of
a tuple key and array value.
{(state, rate_area): [...], }
"""
@tatmush
tatmush / timeRides.txt
Created August 21, 2019 07:41
Install pocketsphinx on ubuntu 16.04
1. sudo apt-get install portaudio19-dev python-pyaudio
2. pip3 install pyaudio
3. sudo apt-get install swig
4. sudo apt-get install libpulse-dev
#### make sure you have pip3 (its not there by default)
5. pip3 install pocketsphinx
@tatmush
tatmush / Node, Ethereum, Remix-IDE, Solidity
Created November 7, 2019 05:04
I found it difficult to install node and remix ide to begin solidity developement. Here is a gist of the steps i took to make it happen
# Installing remix-ide on Ubuntu 18.04
### How To Install Node.js on Ubuntu 18.04
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04
1. cd ~
2. curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
3. nano nodesource_setup.sh
4. sudo bash nodesource_setup.sh
5. sudo apt install nodejs
@tatmush
tatmush / breakIntoFrames.py
Last active May 3, 2020 20:38
1. Collect images from the internet which can be done using code. 2. Resize the images. - `find . -maxdepth 1 -iname "*jpeg" | xargs -L1 -I{} convert -resize 600x800\> "{}" _resized/"{}"` 3. Detect faces use script 4. Crop the detected face 5. pick only Noku's face/choose Noku 6. Make Noku encodings. 7. Detect Noku's face. 8. find the `Hie` subt…
# import the necessary packages
import face_recognition
import argparse
import imutils
import pickle
import time
import cv2
# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()