View main.go
// Command famobi_games creates a useful JSON file listing
// all Famobi games and their corresponding tags.
//
// With the resulting JSON, you can easily find all the
// games with a given tag using `jq`:
//
// jq '.[] | select(.categories | contains(["Match 3"]))'
//
package main
View main.go
// Command add_mouse adds a small square to every
// observation in a recording to indicate where the
// mouse was in that frame.
package main
import (
"image"
"image/color"
"os"
View main.go
package main
import (
"fmt"
"math"
"github.com/unixpickle/num-analysis/integration"
)
func main() {
View demo.py
import numpy as np
# Adapted from: https://www.reddit.com/r/MachineLearning/comments/6g5tg1/r_selfnormalizing_neural_networks_improved_elu/dio0qac/
x = np.random.normal(size=(300, 200))
for _ in range(100):
w = np.random.normal(size=(200, 200), scale=np.sqrt(1/200.0))
x = 1.6*np.tanh(np.dot(x, w))
m = np.mean(x, axis=1)
s = np.std(x, axis=1)
View main.go
package main
import (
"fmt"
"math"
"math/rand"
"time"
"github.com/unixpickle/anydiff"
"github.com/unixpickle/anynet"
View count.sh
#!/bin/bash
JSON_URL=https://raw.githubusercontent.com/openai/universe/master/universe/runtimes/flashgames.json
JSON="$(curl -s $JSON_URL)"
ALL_NAMES=$(echo "$JSON" | jq -r 'to_entries[] | select(.value.rewarder) | select(.value.autostart) | .key')
echo "Total environments:"
echo "$ALL_NAMES" | sort -u | wc -l
echo "Unique environments:"
View main.go
// Demonstrate game variants in muniverse.
package main
import (
"fmt"
"image/png"
"log"
"os"
"time"
View search.js
function searchValue(needle, haystack, depth) {
var recur;
recur = (findVal, obj, path, res, depth) => {
if (obj === findVal) {
res.push(path);
}
if (depth === 0) {
return;
}
if ('object' === typeof obj && obj !== null) {
View creep.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View events.js
window.addEventListener('keydown', (e) => console.log('"' + e.code + '": &KeyEvent{Code: "' + e.code + '", Text: "' + e.key + '", KeyIdentifier: "' + e.keyIdentifier + '", Key: "' + e.key + '", WindowsVirtualKeyCode: ' + e.keyCode + ', NativeVirtualKeyCode: ' + e.keyCode + '},'));