Skip to content

Instantly share code, notes, and snippets.

@mattbierner
mattbierner / main.md
Last active April 5, 2016 08:02
RNN Barb Sanders' Dream Sample

100,000 character sample of a torch-rnn character level recurrent neural network trained on 4000 of Barb Sanders' dreams taken from DreamBank.


he old children's man with grey cameras are left ahead. The song, some men are in the living room, with black cade sheets and pipes. I crawl up into the garage wall to the church. I like the wrong place and then as it opened, wondering if I were better to get ready. Finally she won't remember because we'd have to pay her childhood looking. "I've comedy and so "P) causes that room," meaning some kind of duties! I think, "No, it's that in prison walks" in some large picture. Protests are set up, and beating my name once it's more water, so the crazy man is seated near me. He's starting to help me get to the edge and kick up a street and am walking temporarily and I look for one on that kind. Howard says, "You go to your tidal wave coming closer to watch their dad." I hang up and put myself down.

@mattbierner
mattbierner / main.md
Created April 7, 2016 04:59
RNN - 12 Dreams

12 new Dreams (about 40,000 characters) generated from a character level recurrent neural network trained on my dreams.


(04/03/2015) Underfoon VCS crossussible

I was in the river. Still seemed to be walking simmed ahead of the community. One of the same cars or something wondered. Kind of existed. There was a big green view, but was shit, with the breakfall motions and cars brought inside in it.

It seemed odd that I knew that she was in the street. Everything presses me heading down.

I followed them out into the open gawn. There are kind of winds standing up nearly ridiculous I was out of garbage shade. Then I woll, out my finger. I older appeared to describe the whole thin little room. The regular paner of the Germans couldn't tell I would have to go to the other. Sing was all jumping around here. But he never just had the best speaking again.

This file has been truncated, but you can view the full file.
const data = {}
module.exports = data
data["a"] = "AH0";
data["a(1)"] = "EY1";
data["a's"] = "EY1 Z";
data["a."] = "EY1";
data["a.'s"] = "EY1 Z";
data["a.s"] = "EY1 Z";
data["a42128"] = "EY1 F AO1 R T UW1 W AH1 N T UW1 EY1 T";
- Night Browser † girl
- DANCE シフゥル
Internet Luxury
=====
Lagoon Fire
- yousens
- questy3_spillers
hessider
- Operation Space
- Povelan
- Blinding In The Moon
- Falling Along #067
- Sky Aisle
- Rhythm 10 Prophemie
- Laisure Bullaltoware
- Lonely Hults Ocean Can't Forest
- Anarchist
@mattbierner
mattbierner / gist:d6d989bf26a7e54e7135
Last active November 15, 2017 09:34
C++ Template Meta Programming Linear Feedback Shift Register
#include <iostream>
#include <utility>
/**
Ordered collection of bits.
*/
template <bool... values>
using bitset = std::integer_sequence<bool, values...>;
/**
@mattbierner
mattbierner / integral_constant_literal.cpp
Last active November 22, 2018 14:41
std::integral_constant user defined literal
/**
Defines a user defined literal that can create std::integral_constant values.
http://blog.mattbierner.com/stupid-template-tricks-stdintegral_constant-user-defined-literal/
*/
constexpr unsigned digit_to_value(char c) {
if (c >= 'a' && c <= 'f') return c - 'a' + 10;
else if (c >= 'A' && c <= 'F') return c - 'A' + 10;
else if (c >= '0' && c <= '9') return c - '0';
else throw std::invalid_argument("c");
@mattbierner
mattbierner / image.html
Last active December 5, 2018 15:00
Automatic migration of ghost images to Jekyll
<figure class="image">
{% capture image_src %}{% if include.file %}/content/{{ page.path | remove_first:'_posts/' | split:'.' | first }}/{{ include.file }}{% else %}{{ include.url }}{% endif %}{% endcapture %}
<a href="{{ image_src }}">
<img src="{{ image_src }}" alt="{{ include.description }}" />
</a>
{% if include.description %}
<figcaption>{{ include.description }}</figcaption>
{% endif %}
</figure>
<?xml version="1.0" encoding="UTF-8"?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
<asset>
<contributor>
<authoring_tool>SceneKit Collada Exporter v1.0</authoring_tool>
</contributor>
<created>2019-07-04T04:45:25Z</created>
<modified>2019-07-04T04:45:25Z</modified>
<unit meter="1.000000"/>
<up_axis>Y_UP</up_axis>
@mattbierner
mattbierner / gist:090a80d25259b6472827
Last active March 5, 2021 13:55
Compile Time Brainfuck C++ Metaprogramming Evaluator
#include <utility>
using iochar = char;
using memval = unsigned char;
/* BF Memory Cell */
template <memval val = 0>
struct Cell {
enum { value = val };