Skip to content

Instantly share code, notes, and snippets.

View MatrixManAtYrService's full-sized avatar

Matt Rixman MatrixManAtYrService

View GitHub Profile
@MatrixManAtYrService
MatrixManAtYrService / test_ipfs.py
Created August 3, 2017 03:13
a hash curiosity
from hashlib import sha256
import multihash
from multihash import SHA2_256
from base58 import b58encode
import subprocess
class IPFS_interface(unittest.TestCase):
def test_hash_expectations(self):
@MatrixManAtYrService
MatrixManAtYrService / token_primer_test.py
Last active June 26, 2017 04:13
Loosely coupling a semantic brushstroke to a sentence
import unittest
from token_primer import Tokens
import re
class TokenRef(unittest.TestCase):
def test_search_generators(self):
# two canvasses, both pointing to a name with a colon
canvas_A = "His hobby is: spinning gold. His name is: Rumplestiltskin"
@MatrixManAtYrService
MatrixManAtYrService / README.md
Last active September 9, 2016 15:48
Simple-WebSocket-Server wrapper programs

I have been using these programs to work with parts of the Simple-WebSocket-Server library in Visual Studio 2015. Notice that SampleServer.cpp reads in a file called payload.txt, and then sends that payload when you send the 'm' command from the server, so you'll want to have a payload.txt in your working directory when you run it.

To connect:

  • Run both the client and the server.
  • [server] Press s<enter> to start the server
  • [client] Press s<enter> to connect the client

To send messages

  • Be connected
  • [server] Press m to send a message to all connected clients
@MatrixManAtYrService
MatrixManAtYrService / layout.kbd.json
Last active March 31, 2016 03:40
Untitled Keyboard Layout
[
[
{
"x": 3.5,
"a": 7
},
"F3",
{
"x": 10.5
},