いま巷で話題の NFC で書き換えできる名札サイズの電子ペーパーのプロトコルを調べました。 @alt-coreさんの追加の調査も参考にしています。
- Swift EPaperNFCSwift (@niw)
- Python nfc-eink (@alt-core)
いま巷で話題の NFC で書き換えできる名札サイズの電子ペーパーのプロトコルを調べました。 @alt-coreさんの追加の調査も参考にしています。
| /* | |
| * Mandelbrot set ascii art | |
| */ | |
| #include <stdio.h> | |
| #include <string.h> | |
| /* Params */ | |
| //TODO: these should be command line arguments |
SECCON 2016 quals
300 points
My PC suddenly got broken. Could you help me to recover it please?
NOTE: The disk can be virus-infected. DO NOT RUN any programs extracted from the disk outside of sandbox.
disk.qcow2.zip
Challenge files is huge, please download it first. Password will release after 60min.
password: h9nn4c2955kik9qti9xphuxti
言語実装 Advent Calendar 2015の22日目として書かれました。 ErlangでBEAMで動くコンパイラする作成を説明します。
ulangというサンプルプログラムを作ったのでこれを元に説明します。 https://github.com/oskimura/ulang.git
主な流れとしては字句解析器、構文解析器を行って中間表現に変換しcompileモジュールを使ってBEAMで実行可能なバイナリを作成するという流れです。 今回はulang.xrlで字句解析を行い、ulang_yecc.yrlで構文解析及び中間表現の出力、compiler.erlでバイナリ出力するようにつくりました。
| /** | |
| * Hindley-Milner type inference | |
| * Ported to Groovy from Scala by Example Chapter 16 code. | |
| * (http://www.scala-lang.org/docu/files/ScalaByExample.pdf) | |
| * refered also | |
| * https://github.com/namin/spots/blob/master/hindleyMilner/typeInference.scala | |
| * Japanese page of 'Scala by Example': | |
| * http://www29.atwiki.jp/tmiya/pages/78.html | |
| */ | |
| import groovy.transform.* |
| // | |
| // _oo0oo_ | |
| // o8888888o | |
| // 88" . "88 | |
| // (| -_- |) | |
| // 0\ = /0 | |
| // ___/`---'\___ | |
| // .' \\| |// '. | |
| // / \\||| : |||// \ | |
| // / _||||| -:- |||||- \ |