Skip to content

Instantly share code, notes, and snippets.

View jacqueline-homan's full-sized avatar

Jacqueline S. Homan jacqueline-homan

View GitHub Profile
(*
* A pizza chain wants to know which topping combinations are most popular for Build Your Own pizzas.
*
* Given the sample of orders at http://files.olo.com/pizzas.json, write an application (in C#, F# or JavaScript)
* to output the top 20 most frequently ordered pizza configurations, listing the toppings for each along with the
* number of times that pizza configuration has been ordered.
*)
// nuget FSharp.Data
#!/usr/bin/env python3
import math
crimes=[(5,4), (6,3), (5,3), (7,3)]
phi=5
f, g= 2, 2
b=3
a=0
for j in range(10):
for i in range(10):
@mikehadlow
mikehadlow / Program.fs
Created April 20, 2015 11:11
Basic Nowin self host. No dependencies on Microsoft.Owin.* assemblies.
open System
open System.IO
open System.Net
open System.Collections.Generic
open System.Threading.Tasks
let port = 8888
let endWithCompletedTask = fun x -> Task.FromResult(null) :> Task
type OwinEnvironment = {
open System
open Microsoft.Owin.Hosting
[<EntryPoint>]
let main argv =
let baseAddress = "http://localhost:8888"
use application = WebApp.Start<Startup.Startup>(baseAddress)
@jacqueline-homan
jacqueline-homan / gist:7955471
Created December 14, 2013 03:49
Unable to install Ruby 2.0.0 or any of its patches using chruby on Linux (Ubuntu 13.04) with ruby-build or ruby-install
➜ ~ echo $GEM_PATH
➜ ~ echo $RUBY_VERSION
➜ ~ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
➜ ~ rails -v
Rails 4.0.2
➜ ~ ls
10gen node-v0.10.15.tar.gz