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
$ zcat huge_dump_file.gz | mysql -u [user] -p[password] [database] | |
$ nohup zcat huge_dump_file.gz | mysql -u [user] -p[password] [database] > result & |
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
<xsl:template name="ReplaceLineSeparator"> | |
<xsl:param name="value"/> | |
<xsl:choose> | |
<xsl:when test="contains($value, '
')"> | |
<xsl:value-of select="substring-before($value, '
')"/> | |
<br/> | |
<xsl:call-template name="ReplaceLineSeparator"> | |
<xsl:with-param name="value" select="substring-after($value, '
')"/> | |
</xsl:call-template> | |
</xsl:when> |
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 をフォーマットします。 | |
*/ | |
// ノードタイプ定数 | |
var ELEMENT_NODE_TYPE = 1; // ELEMENT ノード | |
var TEXT_NODE_TYPE = 3; // TEXT ノード | |
// フォーマット後の文字列バッファ | |
var _buff = ""; |
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
' yyyy年mm月の月末日付を求める | |
=DATE(yyyy, mm + 1 ,0) |
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
using System; | |
using System.IO; | |
using System.Text; | |
using System.Xml.Linq; | |
// 先頭に改行が入ると Load 時に例外発生 | |
String xml = @"<foo> | |
<bar>hoge</bar> | |
<baz>fuga</baz> | |
</foo>"; |
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
using System; | |
namespace MktSys.Lib.Extensions | |
{ | |
/// <summary> | |
/// String クラス拡張メソッド定義クラス | |
/// </summary> | |
public static class StringExtension | |
{ | |
/// <summary> |
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
using System; | |
using System.Collections.Generic; | |
namespace MktSys.Lib.Extensions | |
{ | |
/// <summary> | |
/// IEnumerable インターフェース拡張メソッド定義クラス | |
/// </summary> | |
public static class EnumerableExtension | |
{ |
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
# Linux | |
ln -s source link | |
# Windows(ファイル) | |
mklink link source | |
# Windows(ディレクトリ) | |
mklink /D link source |
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 nameElement = new XElement("name"); | |
if (obj.Name != null) | |
{ | |
nameElement.ReplaceNodes(new XCData(obj.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
using System; | |
using System.Reflection; | |
namespace MktSys.Lib.Extensions | |
{ | |
/// <summary> | |
/// Type クラス拡張メソッド定義クラス | |
/// </summary> | |
public static class TypeExtension | |
{ |
OlderNewer