Skip to content

Instantly share code, notes, and snippets.

from: b-engineer@dig-g.com
突然のご連絡、失礼致します。
株式会社Branding Engineerの今井と申します。
Githubの過去のリポジトリーを拝見させていただきました。
この度は株式会社Branding Engineerにて運営しております、
プログラミングスクール事業の件でご連絡させていただきました。
@melpon
melpon / wandbox-sponsors.md
Last active March 2, 2022 05:31
Wandboxのスポンサー募集(締め切りました)

スポンサーの募集は締め切りました。以後は GitHub Sponsors に移行する予定です。

どのような募集をしていたか知りたい場合は履歴を確認してください。

@melpon
melpon / wata-project.md
Last active October 15, 2020 15:06
Wata プロジェクトについて

最終更新日: 2019/5/30

Wata プロジェクト

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

Wata とは

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

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 / 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;
@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;
}
// 有名なビット反転のコード
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様
初めまして。突然のメール失礼いたします。
テクノブレーン株式会社の高尾 将吏と申します。
弊社は特定の技術領域に特化したスカウト・ヘッドハンティング会社です。
http://www.techno-brain.co.jp/mail/
このたび、弊社のクライアント企業からスカウト依頼を受けて動いており、C++をお使いのエンジニアの方をお探しする中で、
melpon様のHPや登壇経歴,Twitter等を拝見しご連絡をさせて頂きました。