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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" > | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>requestAnimationFrame が呼び出される間隔を測定する</title> | |
<style> | |
h4 { | |
margin-bottom: 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
#!/usr/bin/sh | |
# ログイン直後にチェックする項目 | |
# cf. [Linuxサーバにログインしたらいつもやっているオペレーション - ゆううきブログ](http://yuuki.hatenablog.com/entry/linux-server-operations) | |
for CMD in w 'last -n5' uptime 'ip a' 'df -Th' | |
do | |
echo ':::::::::::::::::::' | |
echo ":: $" $CMD | |
echo ':::::::::::::::::::' | |
$CMD |
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
/** | |
* Make password | |
* | |
* Usage: | |
* $ node makepassword.js 10 | |
*/ | |
"use strict"; | |
let length = 20; | |
if (process.argv.length >= 3 && isNaN(process.argv[2]) == false) { |
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
... | |
@Test | |
public void testPoiFileCopy() { | |
String inputFile = "test/input/データ.xls"; // 入力ファイル | |
String outputFile = "test/output/データ2.xls"; // 出力ファイル | |
try { | |
FileInputStream fis = new FileInputStream(inputFile); | |
HSSFWorkbook wb = new HSSFWorkbook(fis); |
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.exports = { | |
// configuration | |
module: { | |
preLoaders: [ | |
{ | |
test: /\.js$/, | |
exclude: /node_modules/, | |
loader: "eslint-loader" | |
} | |
], |
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
{ | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
"ecmaFeatures": { | |
"modules": true | |
}, | |
"extends": "eslint:recommended", |
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
/** | |
* モバイル環境であるかどうかを返す。 | |
* @return {boolean} | |
*/ | |
function isMobile() { | |
if (typeof global.navigator === 'undefined') { | |
return false; | |
} | |
return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(global.navigator.userAgent)); | |
} |
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 | |
namespace Yukisov; | |
class SshCommunicatorException extends \Exception | |
{ | |
public function __construct($message, $code = 0, \Exception $previous = null) { | |
parent::__construct($message, $code, $previous); | |
} | |
public function __toString() { |
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
{ | |
"name": "my-app", | |
"description": "", | |
"keywords": [], | |
"license": "MIT", | |
"require-dev": { | |
"phpunit/phpunit": "3.7.*", | |
"phpmd/phpmd" : "@stable" | |
}, | |
"require": { |
NewerOlder