ChangeLog を書く際によく使われる英語をまとめました。
ほとんど引用です。
array( | |
"New Year's Day" => '元日', | |
"Coming-of-Age Day" => '成人の日', | |
"National Foundation Day" => '建国記念の日', | |
"Vernal Equinox Day" => '春分の日', | |
"Showa Day" => '昭和の日', | |
"Constitution Memorial Day" => '憲法記念日', | |
"Greenery Day" => 'みどりの日', | |
"Children's Day" => 'こどもの日', | |
"Marine Day" => '海の日', |
/** 文字列の前後の空白を削除 */ | |
String.prototype.trim = function() { | |
return this.replace(/^\s+|\s+$/g, ""); | |
} | |
/** 文字列の改行を削除 */ | |
String.prototype.trim_newline = function(){ | |
return this.toString().replace(/\n/g, ''); | |
} | |
/** 最後が特定の文字で終わるようにした文字列を返す。 | |
主に、パス名が/で終わることを強制するのに使う |
POSTパラメータ
{"payload"=>
{"repository": {"website": "",
"fork": false,
"name": "test",
"scm": "git",
"absolute_url": "/memerelics/test/",
"owner": "memerelics",
/* | |
The MIT License (MIT) | |
Copyright (c) 2016 David Gomez-Urquiza | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
Jenkins × PHP環境構築の巻 | |
■目的 | |
PHP環境に対応したJenkins設定を行い、 | |
コミットされる度にサーバ上でのPHPUnitの実行 及び | |
カバレッジレポート出力を"全自動"で行えるようにすること。 | |
1) PHP Pear系のインストール | |
sudo pear channel-discover pear.phing.info | |
sudo pear channel-discover pear.pdepend.org |
// http://ejohn.org/blog/simple-javascript-inheritance/ | |
function Class() {} | |
Class.extend = function extend(props) { | |
var SuperClass = this; | |
function Class() { | |
if (typeof this.init === 'function') { | |
this.init.apply(this, arguments); |
<!DOCTYPE html> | |
<html> | |
<meta charset="UTF-8"> | |
<head> | |
<style> | |
body { | |
margin : 0; | |
padding : 0; | |
background-color: #eee; | |
font-size: 25px; |