Skip to content

Instantly share code, notes, and snippets.

View katryo's full-sized avatar

katryo katryo

View GitHub Profile

react-redux の設計指針

はじめに

これは某所での設計を決める用の資料です

チェックリスト

  • フレームワーク
  • React
@aallan
aallan / mac-vendor.txt
Last active April 27, 2024 19:26
List of MAC addresses with vendors identities
000000 Officially Xerox
000001 SuperLAN-2U
000002 BBN (was internal usage only, no longer used)
000003 XEROX CORPORATION
000004 XEROX CORPORATION
000005 XEROX CORPORATION
000006 XEROX CORPORATION
000007 XEROX CORPORATION
000008 XEROX CORPORATION
000009 powerpipes?
@nownabe
nownabe / .commit_template
Created July 5, 2016 06:54
Emojiで楽しく綺麗なコミットを手に入れる
# ==== Emojis ====
# 🐛 :bug: バグ修正
# 👍 :+1: 機能改善
# ✨ :sparkles: 部分的な機能追加
# 🎉 :tada: 盛大に祝うべき大きな機能追加
# ♻️ :recycle: リファクタリング
# 🚿 :shower: 不要な機能・使われなくなった機能の削除
# 💚 :green_heart: テストやCIの修正・改善
@uiur
uiur / asset.coffee
Created August 6, 2015 09:26
reworkでrails asset-url 問題をなんとかする
fs = require('fs')
module.exports =
manifest: ->
JSON.parse(fs.readFileSync(__dirname + '/../../../tmp/manifest.json', 'utf8'))
url: (path) ->
@manifest()[path]
@kyohei-shimada
kyohei-shimada / condition.md
Last active June 5, 2019 09:47
rubyの条件分岐

Rubyの条件分岐に関するオレオレまとめ

前提

  • 分岐は少なければ少ないほうがよい
  • とはいえ絶対に必要なのでどうすればよいか?
    • ネストを減らす
      • 分岐を仮に愚直にやっていくとn乗オーダーで処理が分かれていき,とてもじゃないが読めない
    • 統一感,対称性を持たせる
    • 適切なメソッド化をする
    • 分岐は処理の流れが変わるという重要な役割をもつため.分岐をするのであれば分岐をするという役割でメソッドを1つ切る(dispatcherが典型)
@kyohei-shimada
kyohei-shimada / capybara_memo.md
Last active February 12, 2023 23:49
Capybaraを使う上で気をつけること

Capybaraを使う上で気をつけること

アンチパターンとか,ハマりどころとか

expect(page).to have_content 'hogheoge'

expect(page).to have_content 'hogehoge'
@saidie
saidie / fluentd.service
Created October 5, 2014 12:32
Fluentd service file for systemd
[Unit]
Description=Fluentd
Documentation=http://www.fluentd.org/
After=network.target
[Service]
Type=forking
ExecStart=/usr/bin/fluentd -d /run/fluentd.pid
PIDFile=/run/fluentd.pid
Restart=on-failure
@rgcottrell
rgcottrell / gist:5b876d9c5eea4c9e411c
Created September 21, 2014 17:38
An FM Synthesizer in Swift using AVAudioEngine
import AVFoundation
import Foundation
// The maximum number of audio buffers in flight. Setting to two allows one
// buffer to be played while the next is being written.
private let kInFlightAudioBuffers: Int = 2
// The number of audio samples per buffer. A lower value reduces latency for
// changes but requires more processing but increases the risk of being unable
// to fill the buffers in time. A setting of 1024 represents about 23ms of
//
// ViewController.m
// AVPlayerCaching
//
// Created by Anurag Mishra on 5/19/14.
// Sample code to demonstrate how to cache a remote audio file while streaming it with AVPlayer
//
#import "ViewController.h"
#import <AVFoundation/AVFoundation.h>