Skip to content

Instantly share code, notes, and snippets.

@object-kazu
object-kazu / _cordova_beta
Last active May 18, 2016
zsh completion for cordova
View _cordova_beta
#compdef cordova
#autoload
typeset -A opt_args
local context state line
_cordova() {
local context state line curcontext="$curcontext"
if (( CURRENT > 2 )); then
View README.md
@CamDavidsonPilon
CamDavidsonPilon / 538.json
Last active Nov 28, 2021
Use the two files below to mimic graphs on 538. www.dataorigami.net/blogs/fivethirtyeight-mpl
View 538.json
{
"lines.linewidth": 2.0,
"examples.download": true,
"patch.linewidth": 0.5,
"legend.fancybox": true,
"axes.color_cycle": [
"#30a2da",
"#fc4f30",
"#e5ae38",
"#6d904f",
@ikegami-yukino
ikegami-yukino / nfkc_compare.txt
Created Dec 30, 2013
Pythonのunicodedata.normalize('NFKC')で正規化される文字の一覧
View nfkc_compare.txt
# -*- coding: utf-8 -*-
import unicodedata
for unicode_id in xrange(65536):
char = unichr(unicode_id)
normalized_char = unicodedata.normalize('NFKC', char)
if char != normalized_char:
if len(normalized_char) == 1:
print u'[%d] %s -> [%d] %s' % (unicode_id, char, ord(normalized_char), normalized_char)
else:
@zziuni
zziuni / stuns
Created Sep 18, 2012
STUN server list
View stuns
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list
# A list of available STUN server.
stun.l.google.com:19302
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
stun01.sipphone.com
stun.ekiga.net