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 | |
$host = '127.0.0.1'; | |
$dbname = 'database'; | |
$username = 'root'; | |
$password = ''; | |
$migrationPath = '../app/database/migrations/'; | |
$migrationFiles = array_diff(scandir($migrationPath), ['.', '..', '.gitkeep']); |
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
/** | |
* C# style string formatting | |
* | |
* @param {...string|...Number} args | |
* @return {string} | |
*/ | |
String.prototype.format = String.prototype.format || function() { | |
return [].reduce.call(arguments, function(formatted, arg, i) { | |
return formatted.replace('{' + i + '}', arg, 'gi'); | |
}, this); |
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
CREATE TABLE t1 ( | |
id INT UNSIGNED NOT NULL, | |
name INT UNSIGNED NOT NULL | |
); | |
CREATE TABLE t2 ( | |
id INT UNSIGNED NOT NULL, | |
name INT UNSIGNED NOT NULL | |
); |
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
(?: *)at (?:(?<namespace>[\w\d_.]*)\.)?(?<class>[\w\d_.]*(\.[\w\d_.<>]+)?)\.(?<method>[\w\d_\[\]<>]*)\((?:(?<parameter>[\w\d_]+(?:\[\]|&|\*)? [\w\d_]+)(?:, )?)*\)(?: *in *(?<file>[^:]+(?::[^:]+)?))?(?::line *(?<line>\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
/// <summary> | |
/// Gets the value that associated with the specified key in provided dictionary, | |
/// or returns the default value of the value's type when the key is not associate. | |
/// </summary> | |
/// <typeparam name="K">Type of dictionary key.</typeparam> | |
/// <typeparam name="V">Type of dictionary value.</typeparam> | |
/// <param name="dict">A dictionary instance to be got the value.</param> | |
/// <param name="key">A key to be searched in the dictionary.</param> | |
/// <returns> | |
/// The value associated with the specified key. If the key is not exist in |
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
{ | |
"version": "1.0.0-*", | |
"packOptions": { | |
"owners": [ | |
"Kune Keiseiie" | |
] | |
}, | |
"dependencies": { | |
"NETStandard.Library": "1.6" | |
}, |
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
using System; | |
using System.Data; | |
using System.Data.Common; | |
namespace Reizinixc.Common.Database.Extensions | |
{ | |
/// <summary> | |
/// Represents an extension class provides methods to be more convenient to work with | |
/// <see cref="IDbCommand" />. | |
/// </summary> |
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
#!/bin/bash | |
server=patch.gungho.jp | |
baseUrl="http://${server}/eco" | |
curl "${baseUrl}/econew.ver" -o "econew.ver" | |
latestVersion=`cat econew.ver` | |
for version in `seq $1 $latestVersion`; do |
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 namespace = (function (global) { | |
'use strict'; | |
const separator = '.'; | |
// Inner namespace class for containing the inner namespaces and values. | |
function Namespace() { | |
} | |
return function (namespace) { |
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
using System; | |
using System.Collections.ObjectModel; | |
using System.Linq; | |
using Newtonsoft.Json.Linq; | |
namespace Reizinixc.Common.Data.Json.Extensions | |
{ | |
public static class JTokenExtensions | |
{ | |
public static object ToImmutableObject(this JToken token) |
OlderNewer