Skip to content

Instantly share code, notes, and snippets.

View heaversm's full-sized avatar

Mike Heavers heaversm

View GitHub Profile
ktskumar / voice_validation.html
Last active June 13, 2022 23:40
Voice recognition and validation by comparing two speecs and determine if they are from the same speaker. Try it with your own voice!
<!DOCTYPE html>
<title>Speaker Authenticator</title>
<script src=""></script>
<div class="container">
<h1>Validate Speaker</h1>
Harshmakadia / class_api_call.jsx
Created August 6, 2019 04:10
Class Component in React for making API calls
import React from "react";
import ReactDOM from "react-dom";
import "./styles.css";
class GithubCommit extends React.Component {
constructor() {
this.state = {
commitHistory: [],
thongdoan /
Created November 16, 2018 03:49 OpenCv_3.1.0, Fix orientation
import java.util.List;
import org.opencv.R;
import org.opencv.core.Mat;
import org.opencv.core.Size;
SMUsamaShah / List of JavaScript GUI
Last active April 29, 2024 14:48
dat.gui alternatives to create GUI from JavaScript object

JavaScript GUI libraries

These libraries can be used to quickly create a GUI for configureable parameters using sliders, checkboxes, colors pickers etc

  1. Tweakpane Demo:
  2. control-panel
  3. ControlKit
  4. guify Main site is down, here is the demo
  5. oui
  6. Palette.js
genekogan /
Last active October 3, 2019 23:59
fix luarocks and install neural-style on a fresh paperspace ML-in-a-box template
# repair luarocks
sudo rm -rf ~/.cache/luarocks/
luarocks install loadcaffe
luarocks install cutorch
luarocks install cudnn
luarocks install cunn
# get cudnn ( and then (assuming cudnn 7.*) ...
git clone -b R7 && cd cudnn.torch && luarocks make cudnn-scm-1.rockspec && cd .. && rm -rf cudnn.torch
#!/usr/bin/env python3
from PIL import Image
import numpy as np
import tensorflow as tf
import tensorflow_hub as hub
# smooth values from point a to point b.
STEPS = 100
pt_a = np.random.normal(size=(512))
enjalot /
Last active December 15, 2021 04:10
Tips for processing Quick, Draw! data with ndjson-cli

Quick, Draw! ndjson data

The Quick, Draw! dataset uses ndjson as one of the formats to store its millions of drawings.

We can use the ndjons-cli utility to quickly create interesting subsets of this dataset.

The drawings (stroke data and associated metadata) are stored as one JSON object per line. e.g.:

jaredpalmer / razzle.config.js
Last active April 30, 2019 17:19
Razzle with HappyPack, TypeScript, SCSS, and Vendor bundle
'use strict';
const autoprefixer = require('autoprefixer');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const path = require('path');
const {
} = require('awesome-typescript-loader');
const HappyPack = require('happypack');
crittermike / App.js
Last active May 9, 2022 08:18
Using Google API (gapi) with React
/* global gapi */
import React, { Component } from 'react';
class App extends Component {
loadYoutubeApi() {
const script = document.createElement("script");
from __future__ import division
import cv2
import numpy as np
import matplotlib.pyplot as plt
import os
# define variable for resize tratio
ratio = 1