Skip to content

Instantly share code, notes, and snippets.

View user01's full-sized avatar

Erik Langenborg user01

  • Charlottesville, Virginia
View GitHub Profile
@user01
user01 / box.external.002.blend
Last active April 26, 2016 18:37
Many Boring Boxes
@user01
user01 / babylon.js
Created April 30, 2016 16:56
First attempt at animation blending
This file has been truncated, but you can view the full file.
var BABYLON;
(function (BABYLON) {
var Color3 = (function () {
function Color3(r, g, b) {
if (r === void 0) { r = 0; }
if (g === void 0) { g = 0; }
if (b === void 0) { b = 0; }
this.r = r;
this.g = g;
this.b = b;
@user01
user01 / index.html
Last active January 31, 2022 05:20
three.js webgl - Video Cube UV Mapping
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js webgl - Video Cube UV Mapping</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
font-family: Monospace;
@user01
user01 / prime.js
Last active June 1, 2016 06:44 — forked from wende/prime.js
//ES5, built from typescript
var testN = 12;
function firstNPrime_original(n) {
var i = 1, j = 0, k = 0;
var result = [];
while (++i && result.length != n) {
k = i;
j = 0;
while (--k) {
if (i % k == 0)
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Folder>
<name>Rotunda</name>
<LookAt>
<longitude>-70.275892744</longitude>
<latitude>43.643763678</latitude>
<altitude>0.6973439480105</altitude>
<heading>338.6753641716</heading>
<tilt>85.92185372407</tilt>
@user01
user01 / .bash_aliases
Last active August 3, 2017 02:19
Dot files
alias "l"="ls -alh"
alias "lg"="l | grep "
alias "hg"="history | grep "
# export PS1="\[\e[34;1m\][\$(date +%k:%M)\w]\$ \[\e[0m\]"
export SVN_EDITOR=vim
alias "st"="git status --untracked-files=no"
alias "di"="git diff ."
alias "r"="r --quiet"
alias "pyactivate"='source ./.venv/bin/activate && export CURRENT_VENV="${PWD##*/}"'
@user01
user01 / create.ubuntu.sh
Last active May 31, 2017 02:12
create.ubuntu.sh
#!/bin/bash
#
# sudo sh create.ubuntu.sh > results.txt 2>&1
echo
echo "###############################################"
echo "###############################################"
echo "Starting script - $(date)"
sudo curl https://gist.githubusercontent.com/user01/ea1937bafe920f66d1455f24e65ee27d/raw/646cf86f912b95098f3a29af99a7bb4d18d437e1/.bash_aliases > ~/.bash_aliases
sudo curl https://gist.githubusercontent.com/user01/ea1937bafe920f66d1455f24e65ee27d/raw/646cf86f912b95098f3a29af99a7bb4d18d437e1/.tmux.conf > ~/.tmux.conf
@user01
user01 / torch.xor.py
Created April 1, 2017 01:53
Toy XOR network with pyTorch
import torch
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
EPOCHS_TO_TRAIN = 50000
class Net(nn.Module):
# -*- coding: utf-8 -*-
"""Find games from seed with certain cards"""
import argparse
from loveletter.game import Game
PARSER = argparse.ArgumentParser(
description='Find a game seed with desired card set ')