Skip to content

Instantly share code, notes, and snippets.

Frank Bryce frankbryce

Block or report user

Report or block frankbryce

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View q14.go
// compute probability of landing on tile after certain number of steps of brownian
package main
import (
View make-sounds.html
<!DOCTYPE html>
<div>Frequence: <span id="frequency"></span></div>
<script type="text/javascript">
var audioCtx = new (window.AudioContext || window.webkitAudioContext)();
var oscillatorNode = audioCtx.createOscillator();
var gainNode = audioCtx.createGain();
frankbryce / concurrentqueue.go
Last active Mar 15, 2018
An simple interface and implementation for concurrent queue in go
View concurrentqueue.go
// Can be any backing type, even 'interface{}' if desired.
// See for type conversion instructions.
type IntConcurrentQueue interface {
// Inserts the int into the queue
// Will return error if there is nothing in the queue or if Close() was already called
DequeueNonBlocking() (int, error)
// Will block until there is a value in the queue to return.
// Will error if Close() was already called.
DequeueBlocking() (int, error)
View WampRealmProxyReconnector.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WampSharp.V2;
using WampSharp.V2.Client;
using WampSharp.V2.Core.Contracts;
namespace HubUSA.LPR.CameraService
View DoublyLinkedList.cs
public class DoublyLinkedList<T> : ICloneable, IEnumerable where T : ICloneable
private class Node<U>
public U Value;
public Node<U> Next;
public Node<U> Prev;
public Node(U value, Node<U> next, Node<U> prev)
View DoublyLinkedList.cs
public class DoublyLinkedListNode<T>
private T element;
private DoublyLinkedListNode<T> next;
private DoublyLinkedListNode<T> previous;
public DoublyLinkedListNode(T element)
this.element = element; = null;
frankbryce / Timebox.cs
Last active Jan 5, 2016
Timebox Class
View Timebox.cs
using System;
using System.Threading.Tasks;
public class Timebox
private readonly TimeSpan _ts;
public Timebox(TimeSpan ts)
_ts = ts;
frankbryce / TypeSyntaxFactory.cs
Last active Apr 24, 2018
This is a factory to create a TypeSyntax Roslyn Model object from simple strings. Enjoy!
View TypeSyntaxFactory.cs
using System.Linq;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace StackOverflow.Roslyn
public static class TypeSyntaxFactory
/// <summary>
/// Used to generate a type without generic arguments
frankbryce /
Last active Sep 6, 2015
Deploy Script for my voces-solis website repo
sudo rm voces-solis -r
git clone
cd voces-solis
sudo apt-get install ruby-full rubygems
sudo apt-get install apt-file
sudo apt-get install psmisc
sudo gem install sass
sudo gem install compass
npm install && bower install
sudo fuser -n tcp -k 80
View StrangeDialogue.cs
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace ConsoleApplication13
class Program
/// <summary>
/// I state my assumptions here for completeness. All assumptions are made to facilitate concise
You can’t perform that action at this time.