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 |
POSTパラメータ
{"payload"=>
{"repository": {"website": "",
"fork": false,
"name": "test",
"scm": "git",
"absolute_url": "/memerelics/test/",
"owner": "memerelics",
/** 文字列の前後の空白を削除 */ | |
String.prototype.trim = function() { | |
return this.replace(/^\s+|\s+$/g, ""); | |
} | |
/** 文字列の改行を削除 */ | |
String.prototype.trim_newline = function(){ | |
return this.toString().replace(/\n/g, ''); | |
} | |
/** 最後が特定の文字で終わるようにした文字列を返す。 | |
主に、パス名が/で終わることを強制するのに使う |
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" => '海の日', |
<?php // bundles/api_v1/controllers/example.php | |
class Api_V1_Example_Controller extends Controller | |
{ | |
public $restful = True; | |
public function get_hello($name='World') | |
{ | |
return "Hello, {$name}!"; | |
} |
<script> | |
var Constants = { | |
saveURL: 'http://random/birthday/saveimage.php', | |
w: 500, | |
h: 500, | |
x: 200, | |
y: 200 | |
}; |
/usr/sbin/groupadd -g 30119 jenkins | |
/usr/sbin/useradd -u 30119 -g jenkins jenkins | |
mkdir /home/jenkins | |
chown -R jenkins. /home/jenkins |
// this sets the background color of the master UIView (when there are no windows/tab groups on it) | |
Titanium.UI.setBackgroundColor('#000'); | |
var tabGroup = Titanium.UI.createTabGroup(); | |
var win = Titanium.UI.createWindow(); | |
win.hideTabBar(); | |
win.navBarHidden = true; | |
var tab = Titanium.UI.createTab({window: win}); | |
var Z_INDEX_TOP = 3; | |
var Z_INDEX_BOTTOM = 0; |