character: れ (displayed as れ) (codepoint 12428, #o30214, #x308c) charset: unicode (Unicode (ISO10646))
This file contains hidden or 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
#lang racket | |
(define-syntax foo | |
(lambda (stx) | |
(syntax "I am foo"))) | |
(define-syntax (also-foo stx) | |
(syntax "I am also foo")) | |
(define-syntax (quated-foo stx) |
This file contains hidden or 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
#lang racket | |
(require racket/port) | |
(define (output-string) | |
(with-output-to-string | |
(thunk (displayln "ok")))) | |
(module+ test | |
(require rackunit) |
This file contains hidden or 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
gcc `pkg-config --cflags gtk+-3.0` -o test test.c `pkg-config --libs gtk+-3.0` |
This file contains hidden or 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 python | |
# -*- coding:utf-8 -*- | |
from flask import Flask, make_response, request | |
from flask.ext.script import Manager | |
app = Flask(__name__) | |
app.debug = True | |
manager = Manager(app) |
This file contains hidden or 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 python | |
# -*- coding:utf-8 -*- | |
from flask import Flask, make_response | |
from flask.ext.script import Manager | |
app = Flask(__name__) | |
manager = Manager(app) | |
@app.route('/string/') | |
def return_string(): |
This file contains hidden or 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
type Assoc a b = [(a, b)] | |
data Prop = Const Bool | |
| Var Char | |
| Not Prop | |
| And Prop Prop | |
| Imply Prop Prop | |
p1 :: Prop | |
p1 = And (Var 'A') (Not (Var 'A')) |
This file contains hidden or 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 System.IO | |
import Text.Parsec | |
import Text.Parsec.String | |
type Pos = (Int, Int) | |
goto :: Pos -> IO () | |
goto (x, y) = putStr $ "\ESC[" ++ show y ++ ";" ++ show x ++ "H" | |
beep :: IO () |
This file contains hidden or 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 System.IO | |
type Pos = (Int, Int) | |
width :: Int | |
width = 5 | |
height :: Int | |
height = 5 |
NewerOlder