This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
-- product_code を nvarchar(64) に変更しておくこと! | |
CREATE NONCLUSTERED INDEX product_category_category_id_idx ON [dbo].[dtb_product_categories] ([category_id]) INCLUDE ([product_id]); | |
CREATE NONCLUSTERED INDEX product_code_idx ON dtb_products_class (product_code) INCLUDE (product_id); | |
CREATE NONCLUSTERED INDEX price01_idx ON dtb_products_class (price01) INCLUDE (product_id); | |
CREATE NONCLUSTERED INDEX price02_idx ON dtb_products_class (price02) INCLUDE (product_id); | |
CREATE NONCLUSTERED INDEX stock_idx ON dtb_products_class (stock) INCLUDE (product_id); | |
CREATE NONCLUSTERED INDEX stock_unlimited_idx ON dtb_products_class (stock_unlimited) INCLUDE (product_id); | |
CREATE NONCLUSTERED INDEX point_rate_idx ON dtb_products_class (point_rate) INCLUDE (product_id); | |
CREATE NONCLUSTERED INDEX deliv_fee_idx ON dtb_products_class (deliv_fee) INCLUDE (product_id); | |
CREATE NONCLUSTERED INDEX product_id_idx ON dtb_products_class (product_id); |
This file contains hidden or 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
vi -c ":e ++enc=euc-jp" filename |