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 | |
/** | |
* class for dto-base. | |
*/ | |
class DtoBase { | |
/** array storing propertie's names */ | |
protected $_propeties = []; | |
/** array storing values */ |
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 | |
# | |
# Sidekiq | |
# chkconfig: 2345 82 55 | |
# processname: sidekiq | |
# description: Runs sidekiq | |
# Include RedHat function library | |
. /etc/rc.d/init.d/functions | |
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 | |
cd $(dirname $0)/.. | |
app_root=$(pwd) | |
sidekiq_pidfile="$app_root/tmp/pids/sidekiq.pid" | |
sidekiq_logfile="$app_root/log/sidekiq.log" | |
gitlab_ci_user=$(ls -l config.ru | awk '{print $3}') | |
function stop | |
{ |
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 | |
/** | |
* コンフィグファイルのラップオブジェクト | |
* 継承して$_confignameをコンフィグファイル名の値を入れると | |
* よい | |
*/ | |
class ConfigBase { | |
protected $_configname = ""; |
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
/** | |
* The event handler mappings for the application. | |
* | |
* @var array | |
*/ | |
protected $listen = [ | |
'illuminate.query' => [ | |
'App\Handlers\Events\QueryLogTracker', | |
], | |
]; |
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
-module(prog). | |
-author("yodatomato"). | |
-export([main/0]). | |
%% 主処理 | |
main() -> | |
Num = readnumber(), | |
List = makelist(Num), | |
io:fwrite("N:~b\n", [Num]), | |
io:fwrite("List:~w\n", [List]), |
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
package main | |
import ( | |
"fmt" | |
"math/rand" | |
) | |
func main() { | |
foods := []string{"🍣", "🍖", "北極ラーメン", "ラーメン二郎"} | |
hp := 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
defmodule Dirou do | |
def try(hp, _) when hp <= 0 do | |
IO.puts "痔ろうの危機!!\(^o^)/" | |
IO.puts "もうやめて!おしりのライフはとっくに0よ!!" | |
end | |
def try(hp, meals) do | |
key = Random.sample(1..4) | |
meal = meals[key] | |
damage = case key do |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
extern crate twitter_api as twitter; | |
extern crate oauth_client as oauth; | |
extern crate aurelius; | |
extern crate iron; | |
extern crate urlencoded; | |
use aurelius::browser; | |
use iron::prelude::*; | |
use oauth::Token; | |
use std::env; |
OlderNewer