Skip to content

Instantly share code, notes, and snippets.

View tessprime's full-sized avatar

Tess tessprime

  • Exploding at the origin
View GitHub Profile
; ModuleID = 'test.c'
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"hello world\00", align 1
; Function Attrs: nounwind uwtable
define i32 @main() #0 {
entry:
%retval = alloca i32, align 4
1. General information
======================
Common Voice is a corpus of speech data read by users on the Common Voice website (http://voice.mozilla.org/), and based upon text from a number of public domain sources like user submitted blog posts, old books, movies, and other public speech corpora. Its primary purpose is to enable the training and testing of automatic speech recognition (ASR) systems, but we encourage its use for other purposes as well.
2. Structure
============
The corpus is split into several parts for your convenience. The subsets with “valid” in their name are audio clips that have had at least 2 people listen to them, and the majority of those listeners say the audio matches the text. The subsets with “invalid” in their name are clips that have had at least 2 listeners, and the majority say the audio does *not* match the clip. All other clips, ie. those with fewer than 2 votes, or those that have equal valid and invalid votes, have “other” in their name.
package main
import "fmt"
import "bufio"
import "os"
import "flag"
import "log"
func main() {
import sys
for line in open(sys.argv[1]):
print line,

Ocaml code:

type bob =
    | Add of int*int
    | Mul of int*int;;
let mulpy v = match v with
    | Add (a, b) -> a + b
    | Mul (a, b) -> a * b;;
print_string (string_of_int (mulpy (Mul (3, 2))));;
@tessprime
tessprime / javap.md
Last active October 28, 2017 20:29
Javap Output for com/google/common/cache/CacheLoader$SupplierToCacheLoader.class

What happened to #17 in the constant pool?

Classfile /home/chris/Downloads/jartest/com/google/common/cache/CacheLoader$SupplierToCacheLoader.class
  Last modified Dec 9, 2015; size 1361 bytes
  MD5 checksum 77190ae73fdc93505ceada7d6f86eacd
  Compiled from "CacheLoader.java"
final class com.google.common.cache.CacheLoader$SupplierToCacheLoader<V extends java.lang.Object> extends com.google.common.cache.CacheLoader<java.lang.Object, V> implements java.io.Serializable
  minor version: 0
  major version: 50
@tessprime
tessprime / hackyascent.py
Created July 8, 2017 09:42
The solution
# Initiate our vector
auto_next = scipy.misc.imread("starting_file_that_is_32x32x3.png")
# create the thing that pokes in the dx_i direction
def dxi(i,j,k):
a = np.zeros(shape=(32,32,3))
a[i][j][k] = 1
return a
# Create an array of all possible directions to poke in
@tessprime
tessprime / predictdump
Created July 8, 2017 07:54
prediction dump
array([[ 5.98662300e-03, 8.49877967e-37, 1.87665017e-09,
1.37775569e-09, 6.60619914e-09, 2.27707897e-09,
2.68214384e-09, 3.49235335e-10, 4.96529481e-07,
9.94012892e-01],
[ 5.98662300e-03, 8.49877967e-37, 1.87665017e-09,
1.37775569e-09, 6.60619914e-09, 2.27707897e-09,
2.68214384e-09, 3.49235335e-10, 4.96529481e-07,
9.94012892e-01],
[ 7.55321756e-02, 8.29070807e-13, 3.42998169e-02,
7.43584661e-03, 5.24340749e-01, 8.02793447e-03,
/* Valid Typescript */
function f(x) {
return "hello world";
}
/* Invalid Typescript */
function f(x) {
if (x < 5)
return "hello world";
return 7;