This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
var $message = $('#message'); | |
$('#execute').click(function() { | |
var customer_ids = $('#customer_ids').val().split(/\n/); | |
var promises = []; | |
$.each(customer_ids, function(i, customer_id) { | |
var d = $.Deferred(); | |
process(i, customer_id, $message, d); | |
promises.push(d); | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once("../../../require.php"); | |
mb_http_output('pass'); | |
header('Content-type: text/html'); | |
$objWksConnMethod = new SC_WakasaConnectMethod(); | |
$objWksConnMethod->setSalesClass($_POST["stype"]); | |
//$objWksConnMethod->parseXmlFlag = false; | |
//$objWksConnMethod->convertCharEncodeFlag = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
var $select = $('<select name="test" />'); | |
var arr = [{'name':'Pizza'},{'name':'Pasta'},{'name':'Pizza2'}]; | |
$select.append(arr.map(function(v, i, obj) { | |
return '<option value="' + i + '">' + v.name + '</option>'; | |
})); | |
window.console.log($select); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var deferred = $.Deferred(); | |
deferred | |
.then(function() { | |
var d = $.Deferred(); | |
d.resolve(); | |
return d; | |
}) | |
.then(function() { | |
var d = $.Deferred(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.19370138645172119</real> | |
<key>Green Component</key> | |
<real>0.15575926005840302</real> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host target.host | |
ProxyCommand ssh -l user stepping.host nc %h %p | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* ファイルアップロードを行う. | |
* | |
* 以下のチェックを行い, ファイルを一時領域へアップロードする. | |
* 1. ファイルサイズチェック | |
* 2. 拡張子チェック | |
* | |
* ファイルアップロード後, 一時ファイルのファイルポインタを返す. | |
* アップロードに失敗した場合は, エラーメッセージを $this->arrErr に出力し, false を返す. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysqldump5 --quick -c --user=username --password=password --skip-extended-insert sodastream_db tablename | grep INSERT | sed 's/`//g' | sed 's/\\"/"/g' | sed "s/\\\'/\'\'/g" | sed "s/'0000-00-00 00:00:00'/NULL/g" | perl -pe 's/\\r\\n/\r\n/g' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* dtb_order_temp を更新する. | |
* | |
* @params SC_CartSession_Ex $objCartSess カートセッションインスタンス | |
* @params SC_SiteSession_Ex $objSiteSess サイトセッションインスタンス | |
* @params string $pre_uniqid 現在の order_temp_id | |
* @params integer $cartKey 現在のカートキー | |
* @return boolean 更新が成功した場合 true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$client_id = 'your client id here'; | |
$table_id = 'database1'; | |
$api_key = 'your api id here'; | |
// 登録API | |
$url = sprintf('https://api.synergy360.jp/%s/api/v1/tables/%s/records', $client_id, $table_id); | |
$arrParams['api_key'] = $api_key; | |
$arrParams['record']['short_text8'] = "aaa"; | |
$arrParams['record']['short_text9'] = "bbb"; |