Skip to content

Instantly share code, notes, and snippets.

View scottgarner's full-sized avatar

Scott Garner scottgarner

View GitHub Profile
@scottgarner
scottgarner / sudokupad.js
Last active December 17, 2023 19:15
SudokuPad Userscript
// ==UserScript==
// @name SudokuPad Copy
// @namespace SudokuPad
// @match https://crackingthecryptic.com/*
// @match https://*.crackingthecryptic.com/*
// @match https://sudokupad.app/*
// @match https://*.sudokupad.app/*
// @grant none
// @version 1.0
// @author Scott Garner
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Net;
using System.Net.Sockets;
using System.Net.WebSockets;
@scottgarner
scottgarner / WebSocketBridge.cs
Created April 18, 2019 04:59
Unity WebSocket Bridge using System.Net.WebSockets
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Net.WebSockets;
using UnityEngine;
# This is the name of the WiFi interface we configured above
interface=wlan0
# Use the nl80211 driver with the brcmfmac driver
driver=nl80211
# This is the name of the network
ssid=Pi3-AP
# Use the 2.4GHz band
@scottgarner
scottgarner / index.html
Created September 30, 2016 16:59
Holojam send and receive though relay server.
<script src="http://holojam.herokuapp.com/socket.io/socket.io.js"></script>
<script>
var socket = io.connect("https://holojam.herokuapp.com/client",
{ transports: ['websocket', 'polling'] }
);
socket.on('update', function (data) {
// Receive data from server.
//console.log(data);
@scottgarner
scottgarner / index.html
Created September 2, 2016 17:20
Example holocaust-server client.
<script src="http://holocast-server.herokuapp.com/socket.io/socket.io.js"></script>
<script>
var socket = io('http://holocast-server.herokuapp.com/');
socket.on('Update', function (data) {
console.log(data);
});
</script>
@scottgarner
scottgarner / update.proto
Created September 2, 2016 15:12
Holojam Server Data Structure Definition
syntax = "proto2";
// Options
package update_protocol_v3;
option optimize_for = SPEED;
//option cc_enable_arenas = true;
message AxisButton {
optional float x = 1;
@scottgarner
scottgarner / sample.json
Created September 2, 2016 15:09
Sample Update JSON Object
{
"live_objects": [{
"label": "VR1_wand",
"x": -0.98,
"y": 0.88,
"z": 3.38,
"qx": -0.75,
"qy": -0.07,
"qz": -0.53,
"qw": -0.38
@scottgarner
scottgarner / main.js
Created July 23, 2015 13:17
Parse and Mandril Example
require('cloud/app.js');
// Use Parse.Cloud.define to define as many cloud functions as you want.
// For example:
var Experience = Parse.Object.extend("Experience");
var Mandrill = require('mandrill');
Mandrill.initialize('XXXXXX');

Keybase proof

I hereby claim:

  • I am scottgarner on github.
  • I am scottgarner (https://keybase.io/scottgarner) on keybase.
  • I have a public key whose fingerprint is 4D2E 5671 9615 D26F 54C0 0938 E059 80DB C033 B781

To claim this, I am signing this object: