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 strict'; | |
const xor64 = function (y) { | |
y = y >>> 0; | |
y = y ^ (y << 13); | |
y = y ^ (y >> 7); | |
y = y ^ (y << 17); | |
return y >>> 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>WebGL でマンデルブロくん</title> | |
<style> | |
body { | |
margin:0; | |
overflow:hidden |
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> | |
<head> | |
<meta charset="UTF-8"> | |
<title>WebGL でマンデルブロくん</title> | |
<style> | |
body { | |
margin:0; | |
overflow:hidden |
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> | |
<head> | |
<meta charset="UTF-8"> | |
<title>マンデルブロくん</title> | |
<style> | |
body { | |
margin:0; | |
overflow:hidden |
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> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<canvas style="width:500px;height:500px;"></canvas> | |
<script> | |
var canvas = document.querySelector('canvas'); |
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> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<title>デレステの Groove イベントの総ノーツ数から 曲編成を特定するやつ</title> | |
</head> | |
<body> | |
<h1>デレステの Groove イベントの総ノーツ数から 曲編成を特定するやつ</h1> | |
<p>※Masterのみです、一部 Groove イベントに登場し得ない楽曲が含まれる場合があります</p> |
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
nku :: Integer -> [Integer] | |
nku 0 = [1] | |
nku n = concat (map (\x -> map (*x) [1..9]) (nku (n - 1))) |
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
nku :: Integer -> [Integer] | |
nku 0 = error "Oh, Zero! It's Zero! Huh?" | |
nku 1 = [1..9] | |
nku n = concat (map (\x -> map (*x) [1..9]) (nku (n - 1))) |
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 algebra = require('algebra'); | |
const xyz2q = function (thx, thy, thz) { | |
const x = new algebra.Quaternion([ | |
Math.cos(thx / 2), | |
Math.sin(thx / 2), | |
0, | |
0 | |
]); | |
const y = new algebra.Quaternion([ |
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 strict'; | |
const builder = require('xmlbuilder'); | |
const guid = require('guid'); | |
class Machine { | |
constructor (option) { | |
this.name = option.name || 'machine'; | |
this.position = option.position || {x: 0, y: 0, z: 0}; | |
this.rotation = option.rotation || {x: 0, y: 0, z: 0, w: 1}; |