Skip to content

Instantly share code, notes, and snippets.

@muojp
muojp / TmdsEncoder.scala
Last active February 11, 2020 05:41
TMDS encoder in Chisel 2/3
package DviController
import Chisel._
class TmdsEncoder extends Module {
val io = new Bundle {
val disp_ena = Bool(INPUT)
val control = UInt(INPUT, 2)
val d_in = UInt(INPUT, 8)
val q_out = UInt(OUTPUT, 10)
@muojp
muojp / tasks.json
Last active August 19, 2017 14:08
Ctrl+Shift+B PDF build for vscode+Re:VIEW
{
"version": "2.0.0",
"tasks": [
{
"taskName": "build in docker",
"type": "shell",
"command": "./build-in-docker.sh",
"problemMatcher": [
"$go"
],
@muojp
muojp / temperature-log.csv
Created November 7, 2016 00:41
YGA-120(B)を使ったリフロー試験の温度ログ
time temp
1549 48.00
3497 48.00
5498 47.75
7498 48.00
9498 48.25
11550 49.00
13497 50.25
15497 51.25
17497 52.75
bash-4.3# ./log_sample.sh
I'm blue...
DEBUG[Play me some Jazz, will ya? (YEAH)] [log_sample.sh:37]
Something bad happened.
This will be printed to STDERR, no matter what.
step1〜step2: 0 ms
step2〜step3: 0 ms
step3〜step4: 0 ms
...
bash-4.3# cat /etc/alpine-release
3.4.0
bash-4.3# date -h
date: unrecognized option: h
BusyBox v1.24.2 (2016-08-12 14:38:34 GMT) multi-call binary.
Usage: date [OPTIONS] [+FMT] [TIME]
Display time (using +FMT), or set time
@muojp
muojp / 1608_bar.re
Created August 13, 2016 09:36
review-2.0.0 glitch
= Bar!
Here's an image (@<img>{myimg1}).
//image[myimg1][My Image]{
//}
And here's another (@<img>{myimg2}).
//image[myimg2][My Image 2]{
@muojp
muojp / HalfAdder.scala
Last active August 5, 2016 23:22
HalfAdder example in Chisel
package com.example.adder
import Chisel._
class HalfAdder extends Module {
val io = new Bundle {
val a = Bool(INPUT)
val b = Bool(INPUT)
val s = Bool(OUTPUT)
val c = Bool(OUTPUT)
@muojp
muojp / gist:d48e184ffa838beb0b4647afbbed013d
Created July 22, 2016 04:39
Kindle用ツメツメcrop PDF
cpdf -o _.pdf articles/xxxxx.pdf "5-end" && cpdf -crop "20mm 30mm 150mm 220mm" -o preview.pdf _.pdf && rm _.pdf
{
paths: {
+ /orders/{order_id}/subscribers: {
+ get: {
+ tags: [
+ "Order"
+ ]
+ summary: "List ordered subscribers."
+ description: "発注したSIMのSubscriber一覧を返します。"
+ operationId: "listOrderedSubscribers"
@muojp
muojp / tango_client_api_opaque_mira.diff
Last active June 4, 2016 05:55
これぐらいなら頑張れそう
--- tango_client_api_opaque.h 2016-06-04 14:41:51.000000000 +0900
+++ tango_client_api_mira.h 2016-06-04 14:41:56.000000000 +0900
@@ -16,6 +16,7 @@
TANGO_COORDINATE_FRAME_CAMERA_COLOR,
TANGO_COORDINATE_FRAME_CAMERA_DEPTH,
TANGO_COORDINATE_FRAME_CAMERA_FISHEYE,
+ TANGO_COORDINATE_FRAME_UUID,
TANGO_COORDINATE_FRAME_INVALID,
TANGO_MAX_COORDINATE_FRAME_TYPE
} TangoCoordinateFrameType;