Skip to content

Instantly share code, notes, and snippets.

name: build
on:
schedule:
# 毎日 09:00 JST
- cron: "0 0 * * *"
jobs:
build-linux:
runs-on: ubuntu-18.04
@melpon
melpon / example.tsx
Last active September 10, 2019 17:23
import { useFetchJSON, AnyJson, JsonMap } from "./fetch";
// レスポンスの型を定義
interface Person {
name: string;
age: number;
}
// 戻り値をレスポンスの型に変換
function resolvePerson(json: AnyJson): Person {
@melpon
melpon / index.tsx
Last active September 10, 2019 16:25
import React from "react";
import ReactDOM from "react-dom";
import { useFetchJSON, AnyJson, JsonMap } from "./fetch";
interface Person {
name: string;
age: number;
}
@melpon
melpon / fetch.tsx
Last active September 10, 2019 16:25
import React from "react";
export type AnyJson = boolean | number | string | null | JsonArray | JsonMap;
export interface JsonMap {
[key: string]: AnyJson;
}
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface JsonArray extends Array<AnyJson> {}
type Resolver<T> = (resp: AnyJson | string | Blob | FormData) => T;
// 有名なビット反転のコード
uint8_t revbits8(uint8_t v) {
v = ((v >> 1) & 0x55) | ((v & 0x55) << 1);
v = ((v >> 2) & 0x33) | ((v & 0x33) << 2);
v = ((v >> 4) & 0x0F) | ((v & 0x0F) << 4);
return v;
}
void screen_render(uint8_t screen[][4]) {
void screen_draw_rect(uint8_t screen[][4], uint8_t x, uint8_t y, uint8_t w, uint8_t h) {
uint8_t masks[4] = { 0 };
uint8_t x2 = x + w;
while (x < x2) {
uint8_t n = x / 8;
uint8_t m = x % 8;
masks[n] |= (1 << (7 - m));
x++;
}
@melpon
melpon / wata-project.md
Last active October 15, 2020 15:06
Wata プロジェクトについて

最終更新日: 2019/5/30

Wata プロジェクト

Wata の現在の状態をここに書きます。常にこのページが最新の情報になります。

Wata とは

Wata は、合同会社 Wandbox が作っている バーチャルライバー特化型の配信ミドルウェア です。

from: b-engineer@dig-g.com
突然のご連絡、失礼致します。
株式会社Branding Engineerの今井と申します。
Githubの過去のリポジトリーを拝見させていただきました。
この度は株式会社Branding Engineerにて運営しております、
プログラミングスクール事業の件でご連絡させていただきました。
melpon様
初めまして。突然のメール失礼いたします。
テクノブレーン株式会社の高尾 将吏と申します。
弊社は特定の技術領域に特化したスカウト・ヘッドハンティング会社です。
http://www.techno-brain.co.jp/mail/
このたび、弊社のクライアント企業からスカウト依頼を受けて動いており、C++をお使いのエンジニアの方をお探しする中で、
melpon様のHPや登壇経歴,Twitter等を拝見しご連絡をさせて頂きました。
初めまして。
江戸サーチトマスと申します。
IT業界をメインにしたヘッドハンターをしております。
是非パートナー企業の人材紹介会社が扱っている案件についてお話させて頂きたくご連絡差し上げております。
アドテック・フィンテック・AI・ディープラーニングなどご興味ございますでしょうか。
一度詳細をお話させて頂ければと思います。まずはお電話からでも構いませんので、ぜひご検討ください。
ご返信お待ちしております。