Skip to content

Instantly share code, notes, and snippets.

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

ikr7

🅰️
rch Linux
View GitHub Profile
var emojis = [
'😄','😃','😀','😊','☺','😉','😍','😘','😚','😗','😙','😜','😝','😛','😳','😁','😔','😌','😒','😞','😣','😢','😂','😭','😪','😥','😰','😅','😓','😩','😫','😨','😱','😠','😡','😤','😖','😆','😋','😷','😎','😴','😵','😲','😟','😦','😧','😈','👿','😮','😬','😐','😕','😯','😶','😇','😏','😑','👲','👳','👮','👷','💂','👶','👦','👧','👨','👩','👴','👵','👱','👼','👸','😺','😸','😻','😽','😼','🙀','😿','😹','😾','👹','👺','🙈','🙉','🙊','💀','👽','💩','🔥','✨','🌟','💫','💥','💢','💦','💧','💤','💨','👂','👀','👃','👅','👄','👍','👎','👌','👊','✊','✌','👋','✋','👐','👆','👇','👉','👈','🙌','🙏','☝','👏','💪','🚶','🏃','💃','👫','👪','👬','👭','💏','💑','👯','🙆','🙅','💁','🙋','💆','💇','💅','👰','🙎','🙍','🙇','🎩','👑','👒','👟','👞','👡','👠','👢','👕','👔','👚','👗','🎽','👖','👘','👙','💼','👜','👝','👛','👓','🎀','🌂','💄','💛','💙','💜','💚','❤','💔','💗','💓','💕','💖','💞','💘','💌','💋','💍','💎','👤','👥','💬','👣','💭','🐶','🐺','🐱','🐭','🐹','🐰','🐸','🐯','🐨','🐻','🐷','🐽','🐮','🐗','🐵','🐒','🐴','🐑','🐘','🐼','🐧','🐦','🐤','🐥','🐣','🐔','🐍','🐢','🐛','🐝','🐜','🐞','🐌','🐙','🐚','🐠','🐟','🐬','🐳','🐋','🐄','🐏','🐀','🐃','🐅','🐇','🐉','🐎','🐐','🐓','🐕','🐖','🐁','🐂','🐲','🐡','🐊','🐫','🐪','🐆','🐈','🐩','🐾',
2597406934722172416615503402127591541488048538651769658472477070395253454351127368626555677283671674475463758722307443211163839947387509103096569738218830449305228763853133492135302679278956701051276578271635608073050532200243233114383986516137827238124777453778337299916214634050054669860390862750996639366409211890125271960172105060300350586894028558103675117658251368377438684936413457338834365158775425371912410500332195991330062204363035213756525421823998690848556374080179251761629391754963458558616300762819916081109836526352995440694284206571046044903805647136346033000520852277707554446794723709030979019014860432846819857961015951001850608264919234587313399150133919932363102301864172536477136266475080133982431231703431452964181790051187957316766834979901682011849907756686456845066287392485603914047605199550066288826345877189410680370091879365001733011710028310473947456256091444932821374855573864080579813028266640270354294412104919995803131876805899186513425175959911520563155337703996941035518275274919959802
@ikr7
ikr7 / apis
Last active May 5, 2023 07:03
JPMCPvPのAPIっぽいものリスト
Json API いちらん
Base URLは
"https://pvp.minecraft.jp" または "http://api.minecraft.jp/pvp" です
"/servers.json"
サーバーの情報をいい感じに取得できます
"/servers/online.json"
現在オンラインのプレイヤー数(サイトの右上のやつ)を取得できます
@ikr7
ikr7 / file0.js
Created September 21, 2014 15:20
Web Speech Synthesis API(音声合成API) を試す ref: http://qiita.com/ikr7/items/71406123c991a05ed8ba
var helloworld = new SpeechSynthesisUtterance('Hello, World!');
helloworld.lang = 'en-US';
speechSynthesis.speak(helloworld);
@ikr7
ikr7 / sixel-mandelbrot.py
Last active October 17, 2021 16:52
Draws mandelbrot fractal on sixel-enabled terminal. Worked on @ayosec 's fork of alacritty ( https://github.com/ayosec/alacritty/tree/graphics )
"""
usage:
$ python sixel-mandelbrot.py
or
$ python sixel-mandelbrot.py 300
"""
import sys
import fcntl, termios, struct
@ikr7
ikr7 / vigenere.py
Last active June 27, 2021 14:17
Vigenère cipher analyzer for puzzle 04-03 of Cypher ( https://store.steampowered.com/app/746710/Cypher )
import sys
key = sys.argv[1]
cipher = input()
print(f'{key = !r}')
print(f'{cipher = !r}')
print()
A = ord('A')
@ikr7
ikr7 / complex.glsl
Last active March 20, 2021 06:08
Complex functions for GLSL (Note: not very optimized)
// absolute value of z (equivalent of built-in function `length`)
float cabs (vec2 z) {
return length(z);
}
// complex conjugate of z
vec2 cconj (vec2 z) {
return vec2(z.x, -z.y);
}
@ikr7
ikr7 / keybase.md
Created December 18, 2020 06:24
keybase.md

Keybase proof

I hereby claim:

  • I am ikr7 on github.
  • I am ikr7 (https://keybase.io/ikr7) on keybase.
  • I have a public key whose fingerprint is 9CB9 55E6 6179 0DC1 424D 0798 93E3 2CF4 EBFC 9881

To claim this, I am signing this object:

@ikr7
ikr7 / tlc.v
Last active February 2, 2020 03:31
Typed Lambda Calculus
Require Import List.
Inductive Error : Set :=
| NotImplemented : Error
| NotDeclared : Error
| NotApplicable : Error
| NotExpectedType : Error
| SomethingWrong : Error
.
@ikr7
ikr7 / oppai.js
Created October 16, 2013 03:21
$ node oppai.js
setInterval(function(){
require('child_process').exec('say oppai');
}, 1000);