Skip to content

Instantly share code, notes, and snippets.

View hmsk's full-sized avatar
🍺
Now Brewing

Kengo Hamasaki hmsk

🍺
Now Brewing
View GitHub Profile

tl;dr

高円寺の南のほうのあたりで、ちょっとした新築共同住宅プロジェクトを立ち上げてみたいと思っています。つきましては、このプロジェクトの趣旨とノリに賛同してくださって居住してくださる方をふわっと募集します。

My New Gear...

最近、高円寺の南のほうのあたりに築古賃貸物件を買ってみました。物件概要はざっくり以下のような感じです。

  • 立地: 丸の内線東高円寺駅徒歩5分、JR中央線中野駅徒歩12分(Google調べ)
  • 地積: 110平米と120平米の間ぐらい
  • 建物: 築およそ30年の2階建て木造アパートを賃貸運用中

この建物には問題がある!

@sindresorhus
sindresorhus / esm-package.md
Last active May 4, 2024 15:48
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
word,body
"(笑)","インターネット上級者(笑)は皮肉を込めて「(笑)」を使う場合が多い。"
(E),"カッコイイ!
ナウなヤングにバカウケ!"
2005-11-03,"敬老の日(違います)"
941,"id:kushii さんのこと。"
"941伝説","941さんがいると自重しない人も自重する。"
Acme,"素晴らしいAcmeモジュールを作ることがCPAN authorの目標にもなっているPerlの代表的なモジュール群。
<a href=""http://www.donzoko.net/cgi-bin/tdiary/"">どんぞこ日誌</a>に自分の作ったAcmeモジュールが載ることは、CPAN authorとして最も栄誉な事である。"
Ajax,"読み:あじゃっくす
@smly
smly / switchbot.py
Last active August 8, 2021 09:52
CLI for swithbot
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Usage: switchbot [OPTIONS]
Options:
-d, --device [light|speaker.tv|speaker.mpd|aircon]
[required]
--on
--off
@miyagawa
miyagawa / README.md
Last active May 12, 2018 15:30
Rebuild チャプター

Rebuild のチャプターは ep181 以降からつけているため、ep180 以前のものにはついていません。膨大な数になり、手作業でつけることになるため、ボランティアでご協力していただける方を募集しています。

Show Notes と比較しながら早回し、スキップしてすすめると、1エピソードあたり5-20分程度の作業になります。Show Notes にあるリンクは非常に粒度が細かくなってしまうので、大きなトピックでまとめて1つのタグぐらいで構いません。

以下のフォーマットで .txt ファイルを作成し、

00:00 Intro
01:23 トピック1
32:44 トピック2
@andreiglingeanu
andreiglingeanu / nullify-transforms.js
Last active January 30, 2024 22:17
A nice way to nullify CSS transforms and get original positions of the un-modified rect
// Nullify the transforms of the element
//
// This is all behaving just like getBoundingClientRect() but it nullifies all the transforms
// and kinds _reverts_ the element onto its original position.
// This will work even with complex translations, rotations.
// The beauty is in the way it applies matrix inverse onto the transformation
// matrix and mutates the getboundingclientrect along the way.
//
// Usage:
// let { top, left } = nullifyTransforms(el);
@tomykaira
tomykaira / Setup.sh
Created July 14, 2016 03:19
How to use webpay node module from typescript.
npm install -g typescript
mkdir test
npm install webpay
tsc test.ts
node test.js
@dahjelle
dahjelle / pre-commit.sh
Created July 13, 2016 16:48
Pre-commit hook for eslint, linting *only* staged changes.
#!/bin/bash
for file in $(git diff --cached --name-only | grep -E '\.(js|jsx)$')
do
git show ":$file" | node_modules/.bin/eslint --stdin --stdin-filename "$file" # we only want to lint the staged changes, not any un-staged changes
if [ $? -ne 0 ]; then
echo "ESLint failed on staged file '$file'. Please check your code and try again. You can run ESLint manually via npm run eslint."
exit 1 # exit with failure status
fi
done
@bomberstudios
bomberstudios / sketch-diff-in-git.md
Last active November 8, 2019 17:58
How to diff your .sketch files in Git

Using sketchtool to diff your .sketch files using text

Requirements

You need to have SketchTool installed somewhere in your path.

Setup

Add this in your ~/.gitconfig file (for some reason, it won't work in a local .gitconfig file):

@matsubo
matsubo / credit_card_bin_codes.md
Last active March 8, 2024 04:14
Credit Card Bin Codes

概要

クレジットカード番号には法則があり、先頭6桁でカードの種類を識別、分類することができる。

詳細はISO/IEC 7812で規定されている。

ISO/IEC 7812 - Wikipedia https://ja.wikipedia.org/wiki/ISO/IEC_7812

先頭の6桁を銀行識別番号(Bank Identification Number、略称:BIN)ないしは発行者識別番号(Issuer Identification Number、略称:IIN)と呼び、この先頭6桁でカード発行会社(イシュア、issuer)が判るようになっている。