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
public class Hello{ | |
public static void Main(){ | |
// Here your code ! | |
// コメント | |
/* コメント */ | |
double Sample1 = 5; //入居 | |
double Sample2 = 10.1; //入居 | |
double nothing; //不在 | |
System.Console.WriteLine("Sample1 : " + Sample1); |
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
# Here your code ! | |
require 'gviz' | |
Graph do | |
route :Hubot | |
route :Kandan | |
route :GitLab, :GitLabCI | |
save(:nodes, :png) | |
end |
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 | |
// Here your code ! | |
// 出力文字列 | |
$print = ""; | |
$input = trim(fgets(STDIN)); | |
$days = str_replace(array("\r\n","\r","\n"), '', $input); | |
$days = explode(" ", $days); | |
// コマンドライン引数処理 | |
for($count = 0; $count < count($days); $count++){ |
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
let x = 1 | |
var y = x + 2 * 3 / 2 | |
print("y = \(y)") // y = 4 | |
y %= 2 | |
print("y mod 2 = \(y)") // y mod 2 = 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
fun main(args: Array<String>) { | |
println("Hello, world!") | |
} | |
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
// |
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
$first = DB::table('users') | |
->whereNull('first_name') | |
->get(); | |
$users = DB::table('users') | |
->whereNull('last_name') | |
->get() | |
->union($first); |
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
... | |
# Redirect Trailing Slashes If Not A Folder... | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} (.+)/$ | |
RewriteRule ^ %1 [L,R=301] | |
... |
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 getMethodName(){ | |
$data = 200; | |
logger(__method__ ,compact('data')); | |
} | |
... | |
// [2018-02-08 12:03:37] local.DEBUG: App\Libs\CartsUtil::getMethodName {"data":200} |
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 | |
/** | |
* 限りなくuniqueに近いUUIDを生成する | |
*/ | |
namespace App\Libs; | |
class UUID { |
OlderNewer