Skip to content

Instantly share code, notes, and snippets.

@moyashipan
moyashipan / m5stickc_book_mekuri.ino
Created January 18, 2020 21:55
M5StickCで布団から手を出さずに読書アプリのページをめくるやつ
#include <M5StickC.h>
// https://github.com/T-vK/ESP32-BLE-Keyboard
#include <BleKeyboard.h>
BleKeyboard bleKeyboard;
bool connected = false;
struct KeyConfig {
String name;
String example;
@haruyama
haruyama / gist:3b429ef86d3a74ece040
Created June 6, 2014 09:10
Unixuser\Slim\CsrfGuard
<?php
// Copyright (c) HARUYAMA Seigo
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is furnished
// to do so, subject to the following conditions:
//
@motemen
motemen / Ojisan-Patterns.md
Last active March 14, 2021 07:37
おじさんパターン集
  • その面白そうな話、私も参加していいよね?なぜなら私は無条件に受け入れられているからおじさん(闖入おじさん) #おじさんパターン
  • 後出し難癖おじさん #おじさんパターン
  • 困難は成長のチャンス!だから君たちに成長の機会をあげようおじさん (成長おじさん) #おじさんパターン
  • あらゆる事案に一般論コメントおじさん #おじさんパターン
  • 俺ってあらゆることに精通してるじゃん?だから力になるよおじさん (精通おじさん) #おじさんパターン
@jayjanssen
jayjanssen / gist:5805930
Last active July 12, 2016 15:51
Using pt-query-digest to analyze workloads for PXC
#!/bin/sh
PATH=$PATH:~
echo "Creating digests for $1"
@ainame
ainame / gist:a4f8dc30400f0dc05c96
Created April 30, 2013 11:52
チートシート

extreme fish bowl

問題

extreme fish bowlルール説明

  1. 2人1組になってプログラムを書く
  2. 書く人(ドライバー)と、横で考える人(ナビゲーター)は随時入れ替える
  3. コーディングするときは必ず何を書こうとしているのか喋りながら書く
  4. 15分の作業が終わる前にgit commitして、速やかに次のペアに席を譲る
  5. コーディング中のペア以外の人達は以下の様に何でも良いのでその場で口を出して良い。ただし、質問が優先されるべき。
  • 技術的な質問(このメソッド何なの?みたいな)
@mipmip
mipmip / gist:1844353
Created February 16, 2012 12:00
Mac OS X: restart mDNSResponder
Load up Terminal (Applications > Utilities > Terminal.app) and type the following.
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
To turn it back on, just do the opposite:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist