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
| /* | |
| Reference | |
| * http://en.cppreference.com/w/cpp/language/operator_alternative | |
| $ clang trigraphs.c | |
| */ | |
| %:include <stdio.h> | |
| %:include <stdbool.h> | |
| %:include <iso646.h> |
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
| /* | |
| javac -g A.java && java A | |
| */ | |
| class A { | |
| public A A() { | |
| A A = new A(); | |
| return A; | |
| } | |
| public static void main(String[] args) { |
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 | |
| ''' | |
| [haruna@haruna test ]$ ./function_default_value_python.py | |
| 2015-11-24 11:16:47.815578 | |
| 2015-11-24 11:16:47.815578 | |
| same | |
| ''' |
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
| /* | |
| How to run | |
| $ javac Sheep.java && java Sheep -Xms1k -Xmx1k -XX:MaxPermSize=1k -XX:MaxNewSize=1k | |
| Sample output | |
| ์(id=35994) is created | |
| ์(id=35995) is created | |
| ์(id=35996) is created | |
| ์(id=17679) is killed, current alive ์ 14956๋ง๋ฆฌ | |
| ์(id=35997) is created |
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
| ;; Implementation "์ด์! == !์์ด", "์์ด! == !์ด์" | |
| ;; How to run | |
| ;; emacs --script suicide.el | |
| (defun fun-string-msg (word &optional func) | |
| (if (eq nil func) | |
| ;; no argument | |
| word | |
| ;; argument | |
| word)) |
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
| // https://twitter.com/RhoP_nim/status/676667506052825090 | |
| #include "apue.h" | |
| int glob = 6; | |
| char buf[] = "a write to stdout\n"; | |
| void err_sys(const char *x, ...) | |
| { | |
| perror(x); | |
| exit(1); |
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 python3 | |
| #-*- coding: utf-8 -*- | |
| ''' | |
| $ ./calc_tk.py | |
| text = ์๋ ํ์ธ์ ํ ์คํธ์ ๋๋ค | |
| tk = 513628.127973 | |
| ''' | |
| text = u"์๋ ํ์ธ์ ํ ์คํธ์ ๋๋ค" |
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
| ;; ์๋์ฒด ๊ตฌํ์ฒด | |
| ;; ์๋ ํ์ ๊ฐ! ํ์ธ๊ณ ๊ฐํ ์์นจ, ๋ง์ผ ๋ด๊ฒ ๋ฌผ์ด๋ณด๋ฉด ๋๋ ์๋. | |
| ;; execute & output | |
| ;; $ emacs --batch --script waldo.el | |
| ;; ์๋ ํ์ ๊ฐ! | |
| ;; ํ์ธ๊ณ ๊ฐํ ์์นจ | |
| ;; | |
| ;; (๋๋ ์๋) |
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
| ;; execute | |
| ;; emacs --batch --script kick_bedclothes.el | |
| ;; original: https://twitter.com/sucroseMass/status/680000098248470528 | |
| (defun ์ด๋ถํฅ (&optional x) | |
| (message "์ฃฝ๊ณ ์ถ๋ค")) | |
| (์ด๋ถํฅ (์ด๋ถํฅ (์ด๋ถํฅ (์ด๋ถํฅ (์ด๋ถํฅ (์ด๋ถํฅ)))))) | |
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
| -- ํ์ค์ผ์ ์ด์ฉํด ๋ฏธ๋ก๋ฅผ ํํํ๋ผ. | |
| -- Maze ์๋ฃํ๊ณผ Node ์๋ฃํ์ด ํ์ํ ๊ฒ์ด๋ค. | |
| -- ์ฃผ์ด์ง ์ขํ์ ๋ฐ๋ผ ํ๋์ ๋ ธ๋๋ฅผ ๋ฆฌํดํ๋ ํจ์๋ ํ์ํ๋ค. | |
| -- ๊ทธ๋ ๊ฒ ๋ฆฌํด๋ ๋ ธ๋๋ ๋ค๋ฅธ ๋ ธ๋๋ก ๋์ด๊ฐ ์ ์๋ ์ถ๊ตฌ์ ๋ฆฌ์คํธ๋ฅผ ๋ด๊ณ ์์ด์ผํ๋ค. | |
| -- ๋ฏธ๋ก๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํด ๋ฆฌ์คํธ ๋ชจ๋๋๋ฅผ ์ฌ์ฉํ๋ผ. | |
| module Main where | |
| data Maze t = Maze [[t]] deriving (Show) |