Skip to content

Instantly share code, notes, and snippets.

View YuukiToriyama's full-sized avatar
🚲
On Cycling

ToriChan YuukiToriyama

🚲
On Cycling
  • Kyoto, Japan
View GitHub Profile
@tmcw
tmcw / xyz_vs_tms.md
Last active April 29, 2025 02:26
The difference between XYZ and TMS tiles and how to convert between them

The difference between XYZ and TMS tiles and how to convert between them

Lots of tile-based maps use either the XYZ or TMS scheme. These are the maps that have tiles ending in /0/0/0.png or something. Sometimes if it's a script, it'll look like &z=0&y=0&x=0 instead. Anyway, these are usually maps in Spherical Mercator.

Good examples are OpenStreetMap, Google Maps, MapBox, MapQuest, etc. Lots of maps.

Most of those are in XYZ. The best documentation for that is slippy map tilenames on the OSM Wiki, and Klokan's Tiles a la Google.

@juno
juno / zsh-git-completion-setting.md
Created May 9, 2013 08:09
zshでgitの補完を設定する手順。

gitのソースツリーに含まれるgit-completion.zshをzshで使う手順

注意:gitコマンドがhubコマンドへのエイリアスに設定されている場合は補完が働かない。

補完用ファイルを置くディレクトリを作成する(既に同じ用途のディレクトリがある場合はそれを使う)。

$ mkdir ~/.zsh/completion/
@griffin-stewie
griffin-stewie / github.css
Last active April 27, 2021 00:46 — forked from theconektd/github.css
Pandoc で github 風 CSS を使った standalone な html を生成するための CSS(要 pandoc 1.12.3) http://griffin-stewie.hatenablog.com/entry/2014/03/28/125029
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@Lokno
Lokno / colorMatrices.js
Last active July 30, 2023 01:02
Color Blindness Matrices
// JSON of 3x3 matrices which transform RGB colors into colorspace which
// simulate the imparement of various color blindness deficiency.
//
// Used by Coblis: http://www.color-blindness.com/Coblis-color-blindness-simulator/
//
// The original website posting the matrices has been taken down:
// http://www.colorjack.com/labs/colormatrix/
//
// RGB transform matrices generated by Michael of www.colorjack.com
// Which were created using code by Matthew Wickline and the
@Eternal-tears
Eternal-tears / flickrphotoset-api.js
Last active December 30, 2019 11:28
Flickr APIの自分のアカウントのsetidを使った写真を表示する方法
$(function(){
$.ajax({
type : 'GET',
url : 'https://api.flickr.com/services/rest/',
data : {
method : 'flickr.photosets.getPhotos', // (Required)This method does not require authentication.
api_key : 'xxxxxxxxxxxxxxxxxxxxxxx', // (Required)Your API application key. See here for more details.
photoset_id : 'xxxxxxxxxxxxxxxxxxxxxxx', // (Required)The id of the photoset to return the photos for.
extras : 'url_sq', // A comma-delimited list of extra information to fetch for each returned record. Currently supported fields are: license, date_upload, date_taken, owner_name, icon_server, original_format, last_update, geo, tags, machine_tags, o_dims, views, media, path_alias, url_sq, url_t, url_s, url_m, url_o
@risgk
risgk / ruby-arduino-synth.md
Last active May 30, 2019 16:34
Ruby x Arduinoでシンセサイザーを作ってみた #hmrk01

Ruby x Arduinoでシンセサイザーを作ってみた

  • 2015/03/28 浜松Ruby会議01

  • Hamamatsu.rb 石垣 良

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{"110000": "w", "110001": "x", "110101": "1", "110100": "0", "010100": "U", "010101": "V", "001100": "M", "001101": "N", "011110": "e", "011111": "f", "001001": "J", "001000": "I", "011011": "b", "011010": "a", "000110": "G", "000111": "H", "000011": "D", "000010": "C", "100100": "k", "100101": "l", "111100": "8", "111101": "9", "100010": "i", "100011": "j", "101110": "u", "101111": "v", "111001": "5", "111000": "4", "101011": "r", "101010": "q", "110011": "z", "110010": "y", "010010": "S", "010011": "T", "010111": "X", "010110": "W", "110110": "2", "110111": "3", "011000": "Y", "011001": "Z", "001111": "P", "001110": "O", "011101": "d", "011100": "c", "001010": "K", "001011": "L", "101101": "t", "000000": "A", "000001": "B", "100111": "n", "100110": "m", "000101": "F", "000100": "E", "111111": "/", "111110": "+", "100001": "h", "100000": "g", "010001": "R", "010000": "Q", "101100": "s", "111010": "6", "111011": "7", "101000": "o", "101001": "p"}
@mrquincle
mrquincle / greek.md
Last active August 28, 2024 19:36
Symbols

Capital letters:

Code Name Code Description Symbol / Character
Α Α Greek capital letter alpha Α
Β Β Greek capital letter beta Β
Γ Γ Greek capital letter gamma Γ
Δ Δ Greek capital letter delta Δ
Ε Ε Greek capital letter epsilon Ε
Ζ Ζ Greek capital letter zeta Ζ
@obelisk68
obelisk68 / turtle_knuth_curve.rb
Created February 6, 2018 03:32
クヌース曲線
require 'oekaki'
require_relative 'turtle'
Width, Height = 600, 350
Oekaki.app width: Width, height: Height, title: "Knuth curve" do
draw do
clear
t = Turtle.new(Width, Height, self)