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 sys,os,copy as C | |
L=len | |
S=[] | |
n=[S] | |
Q=lambda:S and S.pop()or 0 | |
def P(o): | |
if o:n[0].append(o) | |
def X():x=Q();P(x);P(C.deepcopy(x)) | |
def W():S[-2::]=S[-1:-3:-1] | |
def R():a,b,c=Q(),Q(),Q();P(a);P(c);P(b) |
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
HELLO_WORLD = """\ | |
; Hello, world! | |
0"Hello, world!"(>)w%10>""" | |
ECHO = """\ | |
; Echos whatever it receives on STDIN. Dies on EOF. | |
1(%<#>+)w""" |
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 subprocess | |
from clemtest_data import test_data | |
TMPF = "____tmptest_____" | |
def run_test(test_name, program, expected_out, stdin=''): | |
with open(TMPF, "wb") as f: | |
f.write(program) | |
p = subprocess.Popen(["python", "clemint.py", TMPF], |
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
call main | |
pop a, z | |
halt a | |
readint: | |
# 3: int res = 0 | |
mov a, 0 | |
# 4: int c | |
read_loop_start: | |
# 6: c = getchar() |
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
#include <stdint.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <inttypes.h> | |
#define MAX_RECURSION 1024 | |
#define MAX_HEAP (64*1024*1024) | |
#define MAX_STACK (64*1024*1024) |
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
<h1><code ng:non-bindable="">datePicker</code> | |
<div><span class="hint">directive in module <code ng:non-bindable="">foundation.datepicker.angular</code> | |
</span> | |
</div> | |
</h1> | |
<div><h2 id="description">Description</h2> | |
<div class="description"><div class="foundation-datepicker-angular-directive-page foundation-datepicker-angular-directive-datepicker-page"><p>Element directive for | |
<a href="http://foundation-datepicker.peterbeno.com/example.html">foundation-datepicker</a>. | |
Adds a text input field which, when clicked, pops up the datepicker.</p> | |
</div></div> |
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
test |
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
<range-slider></range-slider> |
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
<div class="row"> | |
<div class="small-1 small-centered columns"> | |
<range-slider vertical></range-slider> | |
</div> | |
</div> |
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
<div class="row"> | |
<div class="small-7 medium-9 columns"> | |
<range-slider ng-init="horizontalTwoWay=13.37" ng-model="horizontalTwoWay"></range-slider> | |
</div> | |
<div class="small-2 medium-1 columns"> | |
{{ horizontalTwoWay }} | |
</div> | |
<div class="small-3 medium-2 columns"> | |
<input type="number" ng-model="horizontalTwoWay"> | |
</div> |
OlderNewer