Skip to content

Instantly share code, notes, and snippets.

View MozyOk's full-sized avatar
😆
My Brain is Open!

Mozy Okubo MozyOk

😆
My Brain is Open!
View GitHub Profile
@kimoto
kimoto / gist:772695
Created January 10, 2011 12:10
海底ケーブルの配置と海外とのping調査
海底ケーブルの配置と海外とのping調査
目的
各国のpingの調査と、それがどのくらい体感で差を生むのか
またそこから考察できることを適当に書く
調査前の体感情報について
まず調査前の体感情報についてまとめておくことで、調べた結果が現実と乖離していないことを確認するため
・韓国人がホストだと多少のラグを感じる
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@hayajo
hayajo / changelog_en.md
Last active June 27, 2024 02:39
ChangeLog を支える英語

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形

@reu
reu / pub-sub.js
Created April 9, 2013 01:51
node.js redis pub-sub example
var redis = require("redis")
, subscriber = redis.createClient()
, publisher = redis.createClient();
subscriber.on("message", function(channel, message) {
console.log("Message '" + message + "' on channel '" + channel + "' arrived!")
});
subscriber.subscribe("test");
@jmblog
jmblog / gist:6077993
Last active November 22, 2021 08:37
所得税と住民税の計算方法

所得税(国税)

所得税の計算方法

所得税額 = (所得金額(A) - 所得控除額(B)) × 税率 - 税額控除額(C)

  • 「所得金額(A)- 所得控除額(B)」は 課税所得金額 といい、1,000円未満の端数を切り捨てる。

所得税の税率

@jeremykendall
jeremykendall / password_hash_example.php
Last active January 19, 2022 07:50
Example of password hashing and verification with password_hash and password_verify. This script is intended to be run from the command line like so: 'php -f password_hash_example.php'
<?php
/**
* Example of password hashing and verification with password_hash and
* password_verify
*
* This script is intended to be run from the command line
* like so: 'php -f password_hash_example.php'
*
* @see http://stackoverflow.com/a/20809916/1134565
@saboyutaka
saboyutaka / turbolinks_note.md
Last active October 5, 2022 08:45
Turbolinksを調べてみた
@jonathantneal
jonathantneal / README.md
Last active March 30, 2023 10:22
What is the difference between a sprite, a glyph, an icon, and a symbol?

Sprites, Glyphs, Icons, and Symbols

What is the difference between a sprite, a glyph, an icon, and a symbol? They are all images. They all represent objects, places, and ideas. What makes them different from one another?

A sprite is something you interface with. For instance, a sprite may represent a character or an item in a video game.

A glyph is a typographical character that represents something else. For example, the @ sign is a glyph that commonly represents the phrase at.

An icon is a direct representation of something else. For example, an icon that links to the contents of a hard drive would be a picture of a hard drive.

@yukidarake
yukidarake / type-100million-chars-per-sec.md
Created October 29, 2014 10:01
仕事を高速でこなす方法

秒速で1億字叩く条件

秒速

きっかけ

naoya_itoの火を噴いたシェルtips
http://togetter.com/li/652438

キーリピート高速化

カーソル移動やバックスペースで文字を消すのが速くなります。

@arjunvenkat
arjunvenkat / gist:1115bc41bf395a162084
Last active January 12, 2024 05:04
Seeding a Rails database with a CSV file

How to seed a Rails database with a CSV file

1. Setup

First, Create a folder inside of lib called seeds

Put your CSV file example.csv into the lib/seeds folder. In the example below, the file is called real_estate_transactions.csv

Make sure you've created a resource with the appropriate columns to match your seed data. The names don't have to match up.