This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
open Microsoft.Owin.Hosting | |
[<EntryPoint>] | |
let main argv = | |
let baseAddress = "http://localhost:8888" | |
use application = WebApp.Start<Startup.Startup>(baseAddress) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ ~ 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 |