Skip to content

Instantly share code, notes, and snippets.

{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
@remysucre
remysucre / pl unis
Created October 9, 2015 22:57
pl unis
Carnegie Mellon - Timothy Freeman
Carnegie Mellon - Shai Geva
Carnegie Mellon - Sean Levy, Allen Dutoit, Eric Gardner, Eswaran Subrahmanian
Carnegie Mellon - Scott Draves
Carnegie Mellon - Rowan Davies
Carnegie Mellon - Robert Harper
Carnegie Mellon - Peter Lee
Carnegie Mellon - Lars Birkedal
Carnegie Mellon - John Greiner
Carnegie Mellon - Jeannette Wing
@remysucre
remysucre / arch.install
Created January 15, 2016 04:20
Arch Linux install script
lsblk: show devices
parted /dev/sda
mklabel msdos
mkpart primary ext4 1MiB 100MiB
set 1 boot on
mkpart primary ext4 100 15GiB
mkpart primary linux-swap15 16
mkpart primary ext4 16 100%
mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda2
module Inf where
import Data.Ratio
type Prob = Rational
type Dist a = a -> Prob
type Face = Int
type Inf a b = b -> Dist a
@remysucre
remysucre / expdp.ec
Created June 16, 2017 21:41
expdp.ec
require import Int IntExtra Bool List.
require import DBool.
require import Aprhl.
require import RealExp.
require import Ring.
require import Distr.
require import List.
require import OldMonoid.
op sum : real list -> real.
require import List.
require import OldMonoid.
require import RealExp.
require import RealExtra.
require import FSet.
type R = int.
type util = int list * R -> real.
op du : real.
axiom dupos : du > 0%r.
@remysucre
remysucre / Main.hs
Created November 6, 2017 04:37
srcloc for bangs
{-# LANGUAGE BangPatterns #-}
module Main where
import Language.Haskell.Exts
import Language.Haskell.Exts.Syntax
import Data.Generics.Uniplate.DataOnly
main :: IO ()
main = do
package mold;
import java.util.List;
import java.util.Arrays;
class Histogram {
public static class Pixel {
public int r, g, b;
program test
integer i, j, a (20), b (40), c (10, 10)
real x
logical d (20)
x = 3.1415
j = 1
a (1 : 20) = b (1 : 40 : 2) + 1
d = .TRUE.
labeled : do i = 1, 1
do i = 1, 20
./arith/Average.java
./arith/Count.java
./arith/Sum.java
./arith/MaxAbs.java
./arith/EqualFrequency.java
./arith/Delta.java
./arith/Max.java
./arith/Min.java
./arith/Equal.java
./arith/ConditionalCount.java