View twg.html
<!DOCTYPE html>
<html lang="ja">
<head>
<title>webgl</title>
<!--Three.jsの読み込み-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r83/three.min.js"></script>
</head>
<body>
<script>
var main = function(){
View factorial.rb
def f(i)
if i == 1 then return 1 end
return i * f(i - 1)
end
View LogfileCollect.py
#!/usr/bin/env python
###requireAPIs
from datetime import datetime
import os
###
###arg1 - filePath: FilePath of apache's logfile(String)
###arg1 - sinceMinutes: Value of back until current since ???(Integer)
###Return Val: Summed value of specified lines of a logfile(Integer)
View ProcessKiller.py
#!/usr/bun/env python
###require APIs
import os
### Kill processes based by pname(PROCESS NAME)
def processKiller(pname):
os.system("ps ax | grep "+pname+" > ./dum.tempfile")
fd = open("./dum.tempfile","r")
for line in fd:
os.system("kill -9 "+line[0:5])
fd.close()