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
/* eslint-disable no-unused-vars */ |
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
// uncaughtException発生時はプロセスを落とす | |
process.on('uncaughtException', (err) => { | |
logger.fatal(`UncaughtException Occured: ${err}`); | |
process.exit(1); | |
}); |
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
TypeError: _this.$bindAsObject is not a function |
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
<template> | |
<div id="app"> | |
<input type="file" v-on:change="upload($event.target.files)" accept="image/*" /> | |
</div> | |
</template> | |
<script> | |
import axios from 'axios' | |
export default { |
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
<template> | |
<section class="container"> | |
<div class="columns"> | |
<div class="column is-8"> | |
<h1>All Contacts</h1> | |
<router-link class="button is-primary" to="/add">Add New Contact</router-link> | |
<div class="loader-section" v-if="loading"> | |
<div class="user-list"> |
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
class Test | |
{ | |
public function rmrf($dir) | |
{ | |
if (is_dir($dir) and !is_link($dir)) { | |
array_map(array($this, 'rmrf'), glob($dir.'/*')); | |
array_map('unlink', glob($dir.'/*')); | |
rmdir($dir); | |
} | |
} |
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
YESTERDAY=`date --date '1 day ago' +%Y%m%d` | |
echo ${YESTERDAY} |
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 | |
//処理速度計測開始▼ | |
$time_start = microtime(true); | |
#ここに計測したい処理を書く | |
//処理速度計測終了▲ | |
$timelimit = number_format(microtime(true) - $time_start, 7); | |
echo '処理時間: ' .$timelimit . '秒'."\n"; |
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
newfile = Array.new | |
CSV.foreach("test.tsv", "r") do |row| | |
newfile.push(row.join("\t")) | |
end | |
File.open("test.tsv", "w+") do |file| | |
newfile.each do |elem| | |
file.puts elem.tosjis | |
end | |
end |
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
if value.instance_of?(String) | |
value = value.tosjis | |
end |