Skip to content

Instantly share code, notes, and snippets.

View jmurzy's full-sized avatar
💰
Changing the way you get paid for work

Jake Murzy jmurzy

💰
Changing the way you get paid for work
View GitHub Profile
{
"model_name": "",
"temperature": 1,
"maximum_length": 200,
"top_p": 1,
"top_k": 0,
"repetition_penalty": 1,
"num_beams": 1,
"num_return_sequences": 1,
"prompt": "are you a banana?",
function rotateX(deg) {
const rad = (Math.PI / 180) * deg;
const cos = Math.cos(rad);
const sin = Math.sin(rad);
return [
1, 0, 0, 0,
0, cos, -sin, 0,
0, sin, cos, 0,
0, 0, 0, 1,
];
function transformOrigin(matrix, origin) {
const { x, y, z } = origin;
const translate = MatrixMath.createIdentityMatrix();
MatrixMath.reuseTranslate3dCommand(translate, x, y, z);
MatrixMath.multiplyInto(matrix, translate, matrix);
const untranslate = MatrixMath.createIdentityMatrix();
MatrixMath.reuseTranslate3dCommand(untranslate, -x, -y, -z);
MatrixMath.multiplyInto(matrix, matrix, untranslate);
@jmurzy
jmurzy / routes.js
Created September 12, 2016 21:49
React Router Native example
import React from 'react';
import { Header, Link, nativeHistory, Route, Router, StackRoute, withRouter } from 'react-router-native';
import { ScrollView, StyleSheet, View } from 'react-native';
const styles = StyleSheet.create({
component: { backgroundColor: '#FFFFFF', flex: 1 },
home: { backgroundColor: '#FFFFFF' flexDirection: 'row', flexWrap: 'wrap', justifyContent: 'center' },
detailCard: { height: 100, margin: 20, width: 100 },
});

Keybase proof

I hereby claim:

  • I am jmurzy on github.
  • I am jmurzy (https://keybase.io/jmurzy) on keybase.
  • I have a public key whose fingerprint is 7D16 27CA DBC9 DD44 B3BE 3FBA 1AA6 55D6 9ECE 9063

To claim this, I am signing this object:

@jmurzy
jmurzy / es6-mixin
Last active November 6, 2017 01:39
es6-mixin
let as = T => (...traits) => traits.reverse().reduce((T, M) => M(T), T);