Skip to content

Instantly share code, notes, and snippets.

View maechabin's full-sized avatar
:octocat:
Focusing

Takanori Maeda maechabin

:octocat:
Focusing
View GitHub Profile
type point = (int, int);
type game_of_life = {
width: int,
height: int,
field: list(bool)
};
let search_dirs: list(point) =
@lukas-zech-software
lukas-zech-software / GeoCodingService.ts
Last active April 9, 2021 21:56
Typescript Definitions for official GoogleMaps API for Node.js (https://github.com/googlemaps/google-maps-services-js)
import { createClient, GoogleMapsClient } from '@google/maps';
export class GeoCodingService {
private geoCoder: GoogleMapsClient;
public constructor() {
this.geoCoder = createClient({
key: 'YOUR-API-KEY',
});

WIP某所で喋るための草稿。

Testable JavaScript

当たり前のことを書く。当たり前のことが、当たり前にできない人へ。JavaScriptだから、当たり前のことをしなくていいと思っている人達へ。

基本方針

  • それぞれのファイルは、可能な限り参照透過な関数を提供する
  • それぞれのファイルは、読み込んだだけでは副作用を起こさない
/**
* Default configuration to lint
* the airbnb css style-guide.
* This file is taken from a pull request to Airbnb/css repo
* which intends to create a default preset that can be used
* in the future. Until it is merged, we will have the config here.
* https://github.com/airbnb/css/pull/23
* Add more rules: http://stylelint.io/user-guide/rules/
* Also, to understand better who the rules are named:
* http://stylelint.io/user-guide/about-rules/
@azu
azu / Patterns for Participating.md
Last active January 14, 2023 09:11
プログラミング言語標準化のパターン
@azu
azu / react.js
Last active September 15, 2016 08:51
React Componentのライフサイクル。DOMをアップデートするケース
/*
React Componentのライフサイクル
- setState - componentWillReceiveProps
- かならずimmutableなsetStateにする
- 複数回の更新時は間引かれるので、++のようなインクリメントな処理はしない
- DOMから情報取得 - componentWillUpdate
- DOMの位置を変更 - componentDidUpdate
をそれぞれ書く場所が決まってる
@azu
azu / Reactコンポーネントの作成ステップ.md
Last active June 10, 2017 05:59
Reactコンポーネント作成のステップ

https://gist.github.com/azu/d5e92de127f76545ffc2 の続き

ディレクトリ構造

  • コンポーネント名のディレクトリを作成
  • index.js をおき、そこにコンポーネントを定義する

コンポーネントの分類(TODO: 気に入ってない)

@azu
azu / Youtube:floating transcript.user.js
Created December 13, 2015 05:07
Youtube 書き起こしベースの早送り.user.js
// ==UserScript==
// @name Youtube:floating transcript
// @namespace http://efcl.info/
// @description apply panel floating
// @include https://www.youtube.com/watch?v=*
// @version 1
// @grant none
// ==/UserScript==
// Usage: Open Transcript panel
// -> next transcript
@azu
azu / Reactの入門方法.md
Created August 17, 2015 06:55
Reactの入門方法(個人の感想

Reactの入門方法

@azu
azu / flux-utils.md
Last active August 8, 2018 17:31
flux-utilsについて