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
$(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
<?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 $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
-- 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 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 |
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
ssh user@example.com "cat /path/to/remote_file" | diff -u /path/to/local_file - |
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
<configuration> | |
<system.webServer> | |
..... | |
<handlers> | |
<remove name="PHP53_via_FastCGI" /> | |
<add name="PHP53_via_FastCGI" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="D:\Program Files (x86)\PHP\v5.3\php-cgi.exe" resourceType="Either" requireAccess="Script" responseBufferLimit="0"/> | |
</handlers> | |
</system.webServer> | |
</configuration> |
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
netstat -an | grep -e 'LISTEN *$' |
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 -r "var_dump('null-null-null' <= '1800-1-1');" | |
bool(false) | |
$ php -r "var_dump("null-null-null" <= '1800-1-1');" | |
bool(true) |
OlderNewer