Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: supervisord | |
| # Required-Start: $remote_fs | |
| # Required-Stop: $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Example initscript | |
| # Description: This file should be used to construct scripts to be | |
| # placed in /etc/init.d. |
| /** | |
| * natsort.js | |
| * Sort an array using a "natural order" algorithm. | |
| * | |
| * @version 1.2.4 | |
| * @author think49 | |
| * @license http://www.opensource.org/licenses/mit-license.php (The MIT License) | |
| * @url https://gist.github.com/660141 | |
| * @see <a href="http://sourcefrog.net/projects/natsort/">Natural Order String Comparison</a> | |
| */ |
| #!/bin/bash | |
| # | |
| # Startup script for the Supervisor server | |
| # | |
| # Tested with Red Hat Enterprise Linux Server release 5.5 | |
| # | |
| # chkconfig: 2345 85 15 | |
| # description: Supervisor is a client/server system that allows its users to \ | |
| # monitor and control a number of processes on UNIX-like \ | |
| # operating systems. |
| ### dotcloud 0.3.1 | |
| # must be load .bash_completion (http://bash-completion.alioth.debian.org/) | |
| # before load this file. | |
| # expire_in filename expire_seconds | |
| # expire_in foo.cache 300 # return true if go by 5min from last modification. | |
| expire_in() { | |
| local file=$1 | |
| local expire=$2 |
| import os | |
| import csv | |
| from subprocess import Popen, PIPE | |
| from Foundation import NSMutableDictionary | |
| build_number = os.popen4("git rev-parse --short HEAD")[1].read() | |
| info_plist = os.environ['BUILT_PRODUCTS_DIR'] + "/" + os.environ['WRAPPER_NAME'] + "/Info.plist" | |
| # Open the plist and write the short commit hash as the bundle version | |
| plist = NSMutableDictionary.dictionaryWithContentsOfFile_(info_plist) |
| #!/bin/bash | |
| ### | |
| # | |
| # Copyright (c) 2011 Cake Development Corporation (http://cakedc.com) | |
| # | |
| # Ubuntu 11.04 based web server installation script | |
| # Run this by executing the following from a fresh install of Ubuntu 11.04 server: | |
| # | |
| # bash -c "$(curl -fsSL https://raw.github.com/gist/1264701)" <mysqlPassword> |
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use Pod::Usage; | |
| use Text::Markdown 'markdown'; | |
| use HTML::TreeBuilder; | |
| use List::Util 'max'; |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
#NoSQLデータモデリング技法
原文:NoSQL Data Modeling Techniques « Highly Scalable Blog
I translated this article for study. contact matope[dot]ono[gmail] if any problem.
NoSQLデータベースはスケーラビリティ、パフォーマンス、一貫性といった様々な非機能要件から比較される。NoSQLのこの側面は実践と理論の両面からよく研究されている。ある種の非機能特性はNoSQLを利用する主な動機であり、NoSQLシステムによく適用されるCAP定理がそうであるように分散システムの基本的原則だからだ。一方で、NoSQLデータモデリングはあまり研究されておらず、リレーショナルデータベースに見られるようなシステマティックな理論に欠けている。本稿で、私はデータモデリングの視点からのNoSQLシステムファミリーの短い比較といくつかの共通するモデリングテクニックの要約を解説したい。
本稿をレビューして文法を清書してくれたDaniel Kirkdorfferに感謝したいと思う
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project name="name-of-project" default="build-parallel"> | |
| <target name="build" | |
| depends="prepare,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpdox,phpunit,phpcb"/> | |
| <target name="build-parallel" | |
| depends="prepare,lint,tools-parallel,phpunit,phpcb"/> | |
| <target name="tools-parallel" description="Run tools in parallel"> |