Skip to content

Instantly share code, notes, and snippets.

View tsuyoshicho's full-sized avatar

Tsuyoshi CHO tsuyoshicho

View GitHub Profile
@yuheiy
yuheiy / spacing-rules.md
Last active October 28, 2021 15:47
ウェブデザインの余白に規則性を持たせるためのパターン

ウェブデザインの余白に規則性を持たせるためのパターン

フォントサイズベース

$spacing: 1rem;

body {
  margin: ($spacing * 4) $spacing;
}
@hokuma
hokuma / comment_hotspots.rb
Last active June 7, 2018 05:50
bugspots reviewer
require 'octokit'
# Hotspotの結果は、以下のようになっている
# Scanning . repo
# Found 3010 bugfix commits, with 2029 hotspots:
#
# Fixes:
# - :bug: fix xxx
# - fix yyy bug
# - zzz bug fixed
@utgwkk
utgwkk / thdic2skk.py
Last active November 28, 2018 08:23
http://9lab.jp/works/dic/th-dic.php の Google 日本語入力向けの東方Project IME辞書をSKK用の辞書に変換するスクリプト
#!/usr/bin/python
# coding: utf-8
# http://9lab.jp/works/dic/th-dic.php の Google 日本語入力向けの東方Project IME辞書を
# SKK用の辞書に変換するスクリプト
# Usage:
# python thdic2skk.py < thdic-r6-0-総合.txt > SKK-JISYO.touhou.utf8
from __future__ import print_function
import sys
@saurabhshri
saurabhshri / pip.md
Last active March 31, 2025 00:39
Install and use pip in a local directory without root/sudo access.

Install and use pip in a local directory without root/sudo access.

Why?

Many users when are given server access, do not have root (or sudo) privileges and can not simply do sudo apt-get install python-pip . Here's an easy way you can install and use pip without root (or sudo) access in a local directory. Note : This works without easy_install too.

How?

@mala
mala / autofill_ui.md
Last active January 19, 2017 07:02
暮らしに役立つITコラム ChromeやSafariの自動入力機能が、なぜ「悪いデザイン」なのか

見た目の上で、隠されているフィールドに対しても自動入力してしまうという問題が話題になっている(2017年1月)

のだけれど、この問題の歴史はとても古い。自分も調査したり問題を報告したりしているので、振り返ってみる。

2012年の話

2012年4月のShibuya.XSS #1 https://atnd.org/events/25689 で、Hamachiya2が発表した

@hyuki0000
hyuki0000 / gengo.rb
Created January 10, 2017 03:43
gengo.rb - 元号ジェネレータ。これまでに元号で使われた漢字からなるすべての二文字列を生成する(4900個)
a = '万中久乾亀亨享仁保元勝化吉同和喜嘉国大天字安宝寛寿平康延建弘徳応感慶成承授政文斉昌明昭景暦正武永治泰白祚神祥禄禎福老至興衡観護貞銅長雉雲霊養'
a.split(//).each do |x|
a.split(//).each do |y|
print "#{x}#{y},"
end
end
@heppu
heppu / ARCH_INSTALL.MD
Last active May 1, 2025 18:13
Installing Arch with GPT, dm-crypt, LUKS, LVM and systemd-boot

Create bootable USB

dd bs=4M if=/path/to/archlinux.iso of=/dev/sdx status=progress oflag=sync

Boot from USB and set prepare system

loadkeys <your-keymap>
@lambdalisue
lambdalisue / install_nvim_for_ci.sh
Last active April 3, 2019 08:37
Install Neovim for CI
#!/bin/bash
set -ex
if [[ "$(uname)" == "Darwin" ]]; then
brew update
brew install neovim/neovim/neovim
else
tmp=$(mktemp -d)
url=https://github.com/neovim/neovim
git clone -q --depth 1 --single-branch $url $tmp
@mala
mala / a.md
Last active June 30, 2020 15:13
Chrome ExtensionのLive HTTP Headersの調査(CoolBar.Pro導入 Extensionが何を行うかの調査)

Chrome ExtensionのLive HTTP Headersを調査した。Firefox用のものではない。Firefox用のものではない。

11/7追記

English version: https://translate.google.com/translate?sl=ja&tl=en&js=y&prev=_t&hl=ja&ie=UTF-8&u=https%3A%2F%2Fgist.github.com%2Fmala%2Fe87973df5029d96c9269d9431fcef5cb&edit-text=&act=url

Summary in english.

@jkubecki
jkubecki / ExportKindle.js
Last active February 17, 2025 10:40
Amazon Kindle Export
// The following data should be run in the console while viewing the page https://read.amazon.com/
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension
var db = openDatabase('K4W', '3', 'thedatabase', 1024 * 1024);
getAmazonCsv = function() {
// Set header for CSV export line - change this if you change the fields used
var csvData = "ASIN,Title,Authors,PurchaseDate\n";
db.transaction(function(tx) {