Skip to content

Instantly share code, notes, and snippets.

Avatar

tat mush tatmush

View GitHub Profile
@tatmush
tatmush / breakIntoFrames.py
Last active May 3, 2020
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…
View breakIntoFrames.py
# 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()
@tatmush
tatmush / Node, Ethereum, Remix-IDE, Solidity
Created Nov 7, 2019
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
View Node, Ethereum, Remix-IDE, Solidity
# 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
View keybase.md

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:

@tatmush
tatmush / timeRides.txt
Created Aug 21, 2019
Install pocketsphinx on ubuntu 16.04
View timeRides.txt
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
View slcsp.py
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 / Developer Checklist for a hackathon
Last active Mar 25, 2019
This is what I think a developer should know before attending a hackathon so that they can contribute meaningfully. (Zimbabwe)
View Developer Checklist for a hackathon
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 Mar 21, 2019
github-graphql-queries
View github-graphql-queries.md

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