Skip to content

Instantly share code, notes, and snippets.

@mewa
mewa / kubernetes-core.clj
Created April 29, 2018 22:19
kubernetes/core.clj
(ns kubernetes.core
(:require [cheshire.core :refer [generate-string parse-string]]
[clojure.string :as str]
[clj-http.client :as client])
(:import (com.fasterxml.jackson.core JsonParseException)
(java.io File)
(java.util Date TimeZone)
(java.text SimpleDateFormat)))
(def auth-definitions
This file has been truncated, but you can view the full file.
{
"swagger": "2.0",
"info": {
"title": "Kubernetes",
"version": "v1.8.8"
},
"paths": {
"/api/": {
"get": {
"description": "get available API versions",
main :: IO ()
main = hspec $ do
esacParser
midiConverter
esacParser = describe "ESAC parser" $ do
context "octave parsing" $ do
it "parses higher octave" $ do
property $ \(NonNegative n) -> parse parseOctave "" (replicate n '+') === (Right n)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mewa
mewa / gender.py
Created January 8, 2017 21:58
Basic voiced speech gender detection
#!/usr/local/bin/python3
import numpy as np
import scipy as sp
from pylab import *
import wave
import os
import struct
def wavData(f):
freq = f.getframerate()