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
#!/bin/bash | |
ip -o -4 addr | awk '/scope global/ { print substr($4, 0, index($4, "/") - 1) }' |
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
diff --git a/src/wp-content/plugins/mw-wp-form/classes/controllers/class.chart.php b/src/wp-content/plugins/mw-wp-form/classes/controllers/class.chart.php | |
index 65dd853..72e091d 100644 | |
--- a/src/wp-content/plugins/mw-wp-form/classes/controllers/class.chart.php | |
+++ b/src/wp-content/plugins/mw-wp-form/classes/controllers/class.chart.php | |
@@ -91,6 +91,27 @@ class MW_WP_Form_Chart_Controller extends MW_WP_Form_Controller { | |
} | |
/** | |
+ * データ件数を取得 | |
+ * |
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
diff --git a/src/amazon/src/MarketplaceWebServiceOrders/Client.php b/src/amazon/src/MarketplaceWebServiceOrders/Client.php | |
index 194114c..86027bf 100644 | |
--- a/src/amazon/src/MarketplaceWebServiceOrders/Client.php | |
+++ b/src/amazon/src/MarketplaceWebServiceOrders/Client.php | |
@@ -13,8 +13,8 @@ | |
* @category Amazon | |
* @package Marketplace Web Service Orders | |
* @version 2013-09-01 | |
- * Library Version: 2015-02-13 | |
- * Generated: Tue Feb 10 22:00:57 UTC 2015 |
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 | |
$order = /* order object */; | |
$wrapper = entity_metadata_wrapper('commerce_order', $order); | |
$items = []; | |
foreach ($wrapper->commerce_line_items as $line_item) { | |
$items[] = [ | |
'type' => $line_item->type->value(), # Product type machine name |
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
// ==UserScript== | |
// @name 千年戦争アイギス | |
// @namespace http://kilauea.bbspink.com/test/read.cgi/mobpink/ | |
// @version 0.2 | |
// @description Chrome extension にしたい。 | |
// @match http://www.dmm.co.jp/netgame/social/-/gadgets/=/app_id=156462/ | |
// @copyright 2014+, zenith | |
// ==/UserScript== | |
(function ($) { |
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
Index: data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php | |
=================================================================== | |
--- data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php (リビジョン 23289) | |
+++ data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php (作業コピー) | |
@@ -512,6 +512,11 @@ | |
} | |
} | |
+ // 登録済みの規格を先頭に並べる。 | |
+ $del_flags = array_map(function ($class) { return (int)$class['del_flg']; }, $arrMergeProductsClass); |
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
Index: data/class/db/SC_DB_DBFactory.php | |
=================================================================== | |
--- data/class/db/SC_DB_DBFactory.php (revision 23352) | |
+++ data/class/db/SC_DB_DBFactory.php (working copy) | |
@@ -40,6 +40,7 @@ | |
{ | |
switch ($db_type) { | |
case 'mysql': | |
+ case 'mysqli': | |
return new SC_DB_DBFactory_MYSQL(); |
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
Index: data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php | |
=================================================================== | |
--- data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php (revision 23350) | |
+++ data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php (working copy) | |
@@ -233,19 +233,28 @@ | |
$img_cnt = 0; | |
$fp = $this->openZipCsv(); | |
+ $begin = microtime(true); | |
+ $bulk_size = 100; # バルクインサート件数 |
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
Index: data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php | |
=================================================================== | |
--- data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php (revision 23350) | |
+++ data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php (working copy) | |
@@ -232,31 +232,33 @@ | |
$cntInsert = 0; | |
$img_cnt = 0; | |
- $fp = $this->openZipCsv(); | |
- while (!feof($fp)) { |
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
Index: data/class/SC_CheckError.php | |
=================================================================== | |
--- data/class/SC_CheckError.php (リビジョン 23289) | |
+++ data/class/SC_CheckError.php (作業コピー) | |
@@ -851,7 +851,7 @@ | |
return; | |
} | |
$this->createParam($value); | |
- if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[[:alnum:]_\.-]+$/i", $this->arrParam[$value[1]]) || preg_match('/[\\]/' ,$this->arrParam[$value[1]])) { | |
+ if (strlen($this->arrParam[$value[1]]) > 0 && preg_match("/[^[:alnum:]_.\\-]/", $this->arrParam[$value[1]])) { |
NewerOlder