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
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [], | |
"source": [ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
fun boxes = [0, 0, 0, 0];; | |
fun allcons x [] = [] | |
| allcons x (l :: ll) = | |
(x :: l) :: (allcons x ll) ;; | |
fun arrange 0 l = [l] | |
| arrange n [] = [] | |
| arrange n (x::l) = | |
(arrange (n-1) ((x+1) :: l)) @ (allcons x (arrange n l));; |
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
import itertools | |
import regex | |
# Lexer results | |
class Token: | |
def __init__(self, kind, value=None): | |
self.kind = kind |
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
from __future__ import division | |
from myro import * | |
import blockext | |
from blockext import * | |
@command("stop both motors") |
NewerOlder