Skip to content

Instantly share code, notes, and snippets.

View peketamin's full-sized avatar
🐔
Hello world!

Yuki Yokoyama peketamin

🐔
Hello world!
View GitHub Profile
@koseki
koseki / jp-prefectures.html
Last active January 31, 2024 11:35
Japanese Prefectures 日本の都道府県 Text, JS, HTML 漢字, ローマ字, 都道府県コード
<select>
<option value="1">Hokkaido</option>
<option value="2">Aomori</option>
<option value="3">Iwate</option>
<option value="4">Miyagi</option>
<option value="5">Akita</option>
<option value="6">Yamagata</option>
<option value="7">Fukushima</option>
<option value="8">Ibaraki</option>
<option value="9">Tochigi</option>
@hidenorigoto
hidenorigoto / go-form-sample2.go
Created November 13, 2009 17:39
golang CGI form sample
package main
import(
"io";
"fmt";
"bytes";
"template";
"os";
"strings";
"strconv";
"http";
@gruber
gruber / Liberal Regex Pattern for All URLs
Last active May 29, 2024 00:03
Liberal, Accurate Regex Pattern for Matching All URLs
The regex patterns in this gist are intended to match any URLs,
including "mailto:foo@example.com", "x-whatever://foo", etc. For a
pattern that attempts only to match web URLs (http, https), see:
https://gist.github.com/gruber/8891611
# Single-line version of pattern:
(?i)\b((?:[a-z][\w-]+:(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//
@jcxplorer
jcxplorer / uuid.js
Created February 12, 2011 16:58
UUID v4 generator in JavaScript (RFC4122 compliant)
function uuid() {
var uuid = "", i, random;
for (i = 0; i < 32; i++) {
random = Math.random() * 16 | 0;
if (i == 8 || i == 12 || i == 16 || i == 20) {
uuid += "-"
}
uuid += (i == 12 ? 4 : (i == 16 ? (random & 3 | 8) : random)).toString(16);
}
[OptimizeGoogle]
http://itpro.nikkeibp.co.jp/word/*
http://*.ceron.jp/*
http://ceron.jp/*
http://tweetbuzz.jp/*
/http:\/\/(\w+\.)*buzzurl\.jp//i
http://wadaino.jp/*
http://eimg.jp/*
http://*.eimg.jp/*
http://d.hatena.ne.jp/keyword/*
@kenjis
kenjis / dbtestcase.php
Created November 10, 2011 10:34
DbTestCase for FuelPHP
<?php
/**
* DbTestCase
*
* @package Fuel
* @author Kenji Suzuki
* @copyright 2011 Kenji Suzuki
* @link https://github.com/kenjis
*/
@sloped
sloped / paging.php
Created March 19, 2012 16:21
Bootstrap Paging and Wordpress
<?php
//Use this function to create pagingation links that are styleable with Twitter Bootstrap
function paging() {
global $wp_query;
$total_pages = $wp_query->max_num_pages;
if ($total_pages > 1){
$current_page = max(1, get_query_var('paged'));
@prestontimmons
prestontimmons / Manifest.in
Created May 8, 2012 15:25
Minimal setup.py file
include README.md
global-include *.html
global-include *.js
global-include *.css
global-include *.json
global-include *.txt
global-include *.sql

分散ハッシュテーブルは、、堅牢なP2Pネットワークに不可欠な要素です。すべてのコピーが同じデータを共有するアプリケーションを作成する方法を学びます。

分散コンピューティングでは、分散ハッシュ表(DHTs)は最近、画期的な効果があった。混沌とした、アドホックトポロジの第一世代の P2P アーキテクチャは新生の証明可能なプロパティと優れたパフォーマンスとトポロジのセットに取って代わられています。 DHTアルゴリズムの知識は、分散アプリケーションの将来の発展に重要な要素になるでしょう。