Skip to content

Instantly share code, notes, and snippets.

Avatar

Jordan SoundLogic

  • Boston
View GitHub Profile
@SoundLogic
SoundLogic / knights-tour.html
Created Nov 28, 2014
javascript based solution for the Knight's Tour puzzle (http://en.wikipedia.org/wiki/Knight%27s_tour)
View knights-tour.html
<html>
<head>
<style>
a {
color:#000;
display:block;
font-size:60px;
height:80px;
position:relative;
text-decoration:none;
@SoundLogic
SoundLogic / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@SoundLogic
SoundLogic / roulette.cs
Last active Aug 29, 2015
why casinos have maximum (and strategically relative minimum) bets (you would need a pretty hefty bankroll for this even if you start with a $5 base bet)
View roulette.cs
using System;
namespace Roulette
{
class Program
{
static void Main(string[] args)
{
var r = new Random();
double highestCumulativeLossPointOfAnySimulation = 0;
@SoundLogic
SoundLogic / roslyn2jsSequenceDiagrams.cs
Last active Jun 1, 2018
P.O.C. for UML sequence diagram project leveraging Roslyn
View roslyn2jsSequenceDiagrams.cs
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.MSBuild;
using Microsoft.CodeAnalysis.FindSymbols;
View JsonService.cs
using System;
using System.IO;
using System.Net;
using System.Runtime.Serialization.Json;
using System.Text;
/// <summary>
/// Strongly typed GET and POST utility enum.
/// </summary>
public enum HTTPMethod
You can’t perform that action at this time.