Skip to content

Instantly share code, notes, and snippets.

Avatar

bouzuya bouzuya

View GitHub Profile
@bouzuya
bouzuya / README.md
Last active May 21, 2020
bbn-furikaeri
View README.md

bbn-furikaeri

Example

$ bbn-furikaeri
2020-05-20 ABC067 を解いた等
https://blog.bouzuya.net/2020/05/20/

2019-05-21 健康診断など
https://blog.bouzuya.net/2019/05/21/
View 20 年代のフロントエンド.md

明日の下書き


これはなに

  • 高円寺.dev #3 用の資料 https://koenji.connpass.com/event/160886/
  • フロントエンド専門じゃない人向けの、フロントエンドの最先端〜やや未来の話です
  • このレイヤーでは Node.js を使うべき/使うと強いという部分がありますが、他言語を否定しているわけではありません。むしろ他言語でこのアーキテクチャを模倣してほしいという話です。
@fnky
fnky / ANSI.md
Last active May 12, 2021
ANSI Escape Codes
View ANSI.md

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1b
  • Decimal: 27
View bouzuya_keycode.h
#include "action_layer.h"
#include "keymap_jp.h"
#define _____ KC_TRNS
#define _NOOP KC_NO
#define XXXXX KC_NO
#define _MO1_ MO(L1)
#define _MO4_ MO(L4)
#define _MO5_ MO(L5)
#define _TO0_ TO(L0)
@bouzuya
bouzuya / keymap.c
Last active Sep 9, 2019
ErgoDox EZ bouzuya v23
View keymap.c
// ErgoDox EZ keymap v23
// #define IGNORE_MOD_TAP_INTERRUPT
#include "ergodox.h"
#include "action_layer.h"
#include "keymap_jp.h"
#define L0 0
#define L1 1
#define L2 2
#define L3 3
@arkadiyt
arkadiyt / writeup.md
Created Aug 30, 2017
Rubygems vulnerability writeup
View writeup.md

Rubygems blog post: http://blog.rubygems.org/2017/08/27/2.6.13-released.html

Ruby-lang blog post: https://www.ruby-lang.org/en/news/2017/08/29/multiple-vulnerabilities-in-rubygems/

1) "a DNS request hijacking vulnerability"

Description:

Rubygems supports a gem server discovery mechanism, where if you set your gem source as https://example.com, the gem client will do a SRV dns lookup on _rubygems._tcp.example.com to determine where it should send requests to. A MITM can intercept that dns request and return whatever server they want, forcing the gem client to download code from a malicious server.

View rainfall.md

The original code (~7.2s on my laptop).

import System.Random
import System.CPUTime

rainfall :: [Int] -> Int
rainfall xs = sum (zipWith (-) mins xs)
View SuccessFailure.java
package jp.sample.android.lib.type;
import android.support.annotation.NonNull;
public final class SuccessFailure<Success, Failure> {
public interface SuccessResult<Success> {
void result(Success successResult);
}
@bouzuya
bouzuya / create-store.ts
Created Sep 4, 2016
Raynos/weakmap-shim create-store.ts
View create-store.ts
// Original: https://github.com/Raynos/weakmap-shim create-store
type StoreId = Object;
type Store = (obj: Object) => Object;
type Item = { _storeId: StoreId; valueOf: ItemValueOf; };
type ItemValueOf = (storeId?: StoreId) => Object | Item;
const createStore = (): Store => {
const storeId: StoreId = {};
return (obj: Object | Item): Item => {