Skip to content

Instantly share code, notes, and snippets.

View AtsukiTak's full-sized avatar

Atsuki Takahashi AtsukiTak

View GitHub Profile
@AtsukiTak
AtsukiTak / Cargo.toml
Last active May 7, 2020 04:55
diesel Postgres
[package]
name = "diesel-postgres"
version = "0.1.0"
authors = ["AtsukiTak <takatomgoo@gmail.com>"]
edition = "2018"
[dependencies]
anyhow = "1.0"
diesel = { version = "1.4", features = ["postgres", "r2d2"] }
@AtsukiTak
AtsukiTak / diesel-util.sh
Last active May 2, 2020 05:02
diesel util scripts
#!/bin/bash
print_schema() {
PORT=10042
TMP_PG_URL="postgres://postgres:postgres@localhost:${PORT}/postgres"
SCHEMA_FILE="src/pg/schema.rs"
CONTAINER_NAME="diesel-print-schema"
docker stop ${CONTAINER_NAME} || true
docker run -d --rm --name ${CONTAINER_NAME} -p ${PORT}:5432 postgres

Hello world to Transistor

  • アセンブリ
    • 目的
      • マシンコードの抽象化
        • ニーモニックコードへの符号化
        • ニーモニックコードへの集約
          • 複数の Instruction を jmp というニーモニックに集約できる
        • ラベルの利用
  • 具体例
" Vim color file
"
" Author: Tomas Restrepo <tomas@winterdom.com>
"
" Note: Based on the monokai theme for textmate
" by Wimer Hazenberg and its darker variant
" by Hamish Stuart Macpherson
"
hi clear