Skip to content

Instantly share code, notes, and snippets.

View ikr7's full-sized avatar
🅰️
rch Linux

ikr7

🅰️
rch Linux
View GitHub Profile
@ikr7
ikr7 / index.html
Last active November 14, 2016 10:00
Play with Hata-map / 畑政義写像で遊ぼう
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Play with Hata-map / 畑政義写像で遊ぼう</title>
<style media="screen">
#container {
max-width: 1000px;
margin-left: auto;
@ikr7
ikr7 / hata_map.go
Created November 1, 2016 12:44
畑政義写像
package main
import (
"math/cmplx"
"image"
"image/color"
"image/png"
"os"
)
@ikr7
ikr7 / mand_pi.c
Created October 5, 2016 11:22
マンデルブロ集合(を定義する漸化式)を用いた円周率の近似
#include <stdio.h>
#include <math.h>
#define MAX_ITER 100000000
int N (long double c) {
long double z = 0.0;
for (int n = 0; n < MAX_ITER; n++) {
z = z * z + c;
if (z >= 2.0) {
@ikr7
ikr7 / index.html
Created October 2, 2016 11:31
WebGL でマンデルブロくん with Distance Estimation
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>WebGL でマンデルブロくん</title>
<style>
body {
margin:0;
overflow:hidden
@ikr7
ikr7 / mand.go
Created September 30, 2016 13:25
おせえよ
package main
import (
"math/cmplx"
"image"
"image/color"
"image/png"
"os"
)
@ikr7
ikr7 / えぼれぼ.txt
Last active September 1, 2016 12:42
* はタップ, <>はフリック, @はホールド開始, $はホールド終了
< >
@ @
*
*
* *
* *
*
>
>
>
@ikr7
ikr7 / tulip.json
Created August 30, 2016 12:40
tulip mas+
[
{
"id": 1,
"sec": "",
"type": 100,
"startPos": "",
"finishPos": "",
"status": 869,
"sync": 0,
"groupId": 0
@ikr7
ikr7 / yuri.log
Last active August 11, 2016 14:13
Kindle Unlimited で読んだ百合漫画のログ
あさがおと加瀬さん。
ふ〜ふ。 1
ふ〜ふ。 2
ぷくゆり
今日も2人は仲良しです。〜くずしろ短編集〜
彼女のくちづけ感染するリビドー
桃色トランス 1
コキュートス
大室家 1
大室家 2
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Broadcaster</title>
<style>
div, textarea {
line-height: 1em;
}
@ikr7
ikr7 / po.js
Created July 10, 2016 23:45
何重にも Base64 エンコードされたやつをデコードするやつ
'use strict';
const decode = function (str) {
if(str.split('').every((ch) => {
return 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='.indexOf(ch) > -1;
})) {
return decode(Buffer.from(str, 'base64').toString());
} else {
return str;
}