Skip to content
View fibs.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View PoisonousPlants.hs
import Control.Applicative
import Control.Monad
solve :: [Int] -> Int
solve xs = go xs 0
where
go xs n =
let (c, ys) = stage xs in
if c then n else go ys (n+1)
View Analytic.hs
binomial (2*n) n `div` (n + 1)
product [1..(2*n)] `div` (product [1..n] * product [1..(2*n - n)] * (n + 1))
product [1..(2*n)] `div` (product [1..n] * product [1..n] * (n + 1))
product [1..(2*n)] `div` ((product [1..n] ^ 2) * (n + 1))
(product [1..n] * product [(n+1)..(2*n)]) `div` ((product [1..n] ^ 2) * (n + 1))
product [(n+1)..(2*n)] `div` (product [1..n] * (n + 1))
product [(n+2)..(2*n)] `div` product [1..n]
let n = 6 in product [(n+2)..(2*n)] `div` product [1..n]
product [8, 9, 10, 11, 12] `div` product [1, 2, 3, 4, 5, 6]
View json.hs
import Control.Monad
import Control.Applicative ((*>), (<*))
import Text.Parsec
import Text.Parsec.String
import Data.List (intercalate)
data JSON = JString String
| JNumber Double
| JBool Bool
| JObject [(String, JSON)]
View VS Code.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Name=Visual Studio Code
Path=/home/garciat/builds/vscode
Exec=/home/garciat/builds/vscode/Code
Icon=/home/garciat/builds/vscode/resources/app/vso.png
Type=Application
Name[en_US]=VS Code
View Program.dnx.il
.assembly extern mscorlib
{
.ver 4:0:0:0
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
}
.assembly 'Program'
{
.custom instance void class [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::'.ctor'(int32) = (01 00 08 00 00 00 00 00 ) // ........
.custom instance void class [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::'.ctor'() = (
View rx.speech.js
function beginSpeechRecognition(options) {
options = options || {};
var engine = new webkitSpeechRecognition();
Object.keys(options).forEach(function (key) {
engine[key] = options[key];
});
engine.start();
Something went wrong with that request. Please try again.