- Scott Chacon on the Interwebs(リンク切れ)
- Scott Chacon on the Interwebs
- GitHub Flow - The best way to use Git and GitHub
31 Aug 2011
#! /usr/bin/env python | |
import redis | |
import random | |
import pylibmc | |
import sys | |
r = redis.Redis(host = 'localhost', port = 6389) | |
mc = pylibmc.Client(['localhost:11222']) |
# encoding: utf-8 | |
module TelSplitter | |
MAP = { | |
# 市外局番 , 市内局番の桁数のマップ | |
# http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html のデータを利用 | |
# 固定電話以外の桁数は適当です... | |
'050' => 4, # IP電話 | |
'070' => 4, # 携帯電話/PHS | |
'080' => 4, # 携帯電話 |
Awesome PHP の記事をフォークして翻訳したものです (2013年4月25日)。おどろくほどすごい PHP ライブラリ、リソースやちょっとした情報のリストです。
【訳者コメント】 PHP 入門者のかたにはクィックリファレンスとして PHP: The Right Way 、セキュリティに関しては2011年3月に出版された 体系的に学ぶ 安全なWebアプリケーションの作り方 をおすすめします。
#!/bin/sh | |
# Called by "git push" after it has checked the remote status, | |
# but before anything has been pushed. | |
# | |
# If this script exits with a non-zero status nothing will be pushed. | |
# | |
# Steps to install, from the root directory of your repo... | |
# 1. Copy the file into your repo at `.git/hooks/pre-push` | |
# 2. Set executable permissions, run `chmod +x .git/hooks/pre-push` |
/** | |
* Module Dependencies | |
*/ | |
var debug = require('debug')('lapwing:build'); | |
var relative = require('path').relative; | |
var resolve = require('path').resolve; | |
var extname = require('path').extname; | |
var uglify = require('gulp-uglify'); | |
var Batch = require('better-batch'); |
require 'formula' | |
class Streem < Formula | |
homepage 'https://github.com/matz/streem' | |
head 'https://github.com/matz/streem.git' | |
def install | |
ENV.j1 | |
system "make && make test" | |
bin.install "bin/streem" |
var FormData = require('form-data'); | |
var fs = require('fs'); | |
var XMLWriter = require('xml-writer'); | |
... | |
var dsXml = new XMLWriter(); | |
dsXml.startElement('tsRequest') | |
.startElement('datasource') | |
.writeAttribute('name', "file") |
# rubocop v0.35.0 から inherit_gem という機能が増えたので gem にしました | |
# https://github.com/onk/onkcop | |
inherit_gem: | |
onkcop: "config/rubocop.yml" |