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 / えぼれぼ.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;
}
@ikr7
ikr7 / calc.hs
Last active June 2, 2016 14:37
変な計算
eqz :: Integer -> Bool
eqz a = a == 0
add :: Integer -> Integer -> Integer
add a b
| eqz b = a
| otherwise = succ $ add a $ pred b
mul :: Integer -> Integer -> Integer
mul a b
@ikr7
ikr7 / a.js
Created May 31, 2016 10:21
てきとう
const succ = (a) => a + 1;
const pred = (a) => a - 1;
const add = (a, b) => {
if (b === 0) { return a; }
else { return add(succ(a), pred(b)); }
}
const mul = (a, b) => {
@ikr7
ikr7 / index.html
Created May 21, 2016 13:56
ドラゴン曲線
<!DOCTYPE html>
<html>
<head>
</head>
<body style="margin:0;overflow:hidden">
<canvas></canvas>
<script>
const canvas = document.querySelector('canvas');
const context = canvas.getContext('2d');
@ikr7
ikr7 / index.html
Created May 19, 2016 14:28
細胞
<!DOCTYPE html>
<html>
<head>
</head>
<body style="margin:0;overflow:hidden">
<canvas></canvas>
<script>
'use strict';
const W = Math.max(
@ikr7
ikr7 / prime-factrize.cpp
Created May 1, 2016 07:03
素因数分解コンソール
#include <iostream>
#include <gmpxx.h>
using namespace std;
mpz_class GCD (mpz_class m, mpz_class n) {
mpz_class t;
while (n != 0) {
t = m;
m = n;