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
Start-Job -ScriptBlock { "$ip_address=(Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter { IPENABLED=TRUE and ServiceName="rt640x64" }|Select IPAddress).ipaddress[0]; pengwin.exe -c "DISPLAY=${ip_address}:0.0 /opt/idea-IU-201.7223.91/bin/idea.sh" } |
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
// MDN: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/AsyncFunction | |
// 参考:https://javascript.developreference.com/article/14715429/ES+2017%3A+async+function+vs+AsyncFunction(object)+vs+async+function+expression | |
// Q何しようとしたの? | |
// A友人が話していたAsyncFunctionオブジェクトを触ってみる | |
// async function が利用するPromiseはグローバルではなくその場でのスコープ変数らしい。 | |
// AsyncFunctionがスコープ変数を参照できなくしているのってPromiseが動的に書き換えられると面倒だからじゃない?って思ったので実験した | |
// 結果はまあよくわからなかった。 |
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
class HelloWorld() { | |
def main (): Int ={ | |
println("Hello World") | |
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
# 13日の金曜日って多めに出現するのかなって言ってた人が居たので調べたら、そんな事なかった。 | |
# 逆に満遍なく曜日と日付が周期していてちょっと驚いたかも | |
# 29、30、31日の追加で上手く調整しているんだなぁ。って改めて思った。 | |
require 'date' | |
hash = Hash.new(0) | |
(Date.new(1990,1,1)..Date.new(2017,12,31)).each do |t| | |
hash[[t.strftime('%a') , t.day ]]+=1 | |
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
<!DOCTYPE html> | |
<!-- | |
このソースもほぼほぼコピペ+改変。 | |
元ソース: | |
https://github.com/adrai/flowchart.js/blob/master/example/index.html | |
--> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>flowchart.js · Playground</title> |
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
mkdir mp4 -p | |
for file in `/bin/ls -r *.3G2`; do | |
datetime=`ffprobe -v quiet $file -print_format csv -show_entries format_tags=creation_time|cut -d ',' -f 2` | |
datetime_iso=`date --iso-8601=minutes -d "${datetime}+00:00"` | |
ffmpeg -i ${file} -metadata creation_time=$datetime_iso -strict -2 mp4/${file%.*}.mp4 -s 640x480 -y | |
touch -d $datetime_iso mp4/${file%.*}.mp4 | |
done; |
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
const Bot = function () { | |
this.memberVariable = 'aaa'; | |
}; | |
Bot.prototype.doSomething = function () { | |
console.log(this.memberVariable); | |
}; | |
Bot.prototype.a = async function () { | |
// this.doSomething(); // => this.doSomething is not a function | |
console.log(this); // => { a_func: [Function], b_func: [Function], c_func: [Function] } |
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
class Bot { | |
constructor() { | |
this.memberVariable = 'aaa'; | |
} | |
doSomething() { | |
console.log(this.memberVariable); // => 'aaa' | |
// do somethings | |
} |
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
class Bot { | |
constructor() { | |
this.memberVariable = 'aaa'; | |
} | |
doSomething() { | |
console.log(this.memberVariable) // => undefined | |
// do somethings | |
} |