Skip to content

Instantly share code, notes, and snippets.

🅰️
rch Linux

Kumpei IKUTA ikr7

🅰️
rch Linux
Block or report user

Report or block ikr7

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ikr7
ikr7 / vwatch.py
Created Jan 20, 2019
YouTube 実況ツイートするやつ
View vwatch.py
#!/usr/bin/env python3
import json
from urllib.request import Request, urlopen
from urllib.parse import urlparse, parse_qs
from twitter import Api
youtube_url = input('YouTube URL > ')
##############################
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>vtwi</title>
<style>
label {
display: block;
View index.html
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Population Pyramid Simulation</title>
<style media="screen">
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
position: relative;
View main.cpp
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <cstdio>
#include <iostream>
#include <vector>
#include <complex>
#include "stb_image.h"
#include "stb_image_write.h"
@ikr7
ikr7 / index.html
Created Dec 10, 2018
Synchronization Phenomena
View index.html
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Boid Simulation</title>
<style media="screen">
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
position: relative;
@ikr7
ikr7 / tlc.v
Last active Nov 30, 2018
Typed Lambda Calculus (sort of)
View tlc.v
Require Import List.
Inductive Error : Set :=
| NotImplemented : Error
| NotDeclared : Error
| NotApplicable : Error
| NotExpectedType : Error
| SomethingWrong : Error
.
View wifi.sh
#!/bin/bash
IFNAME="wlp36s0"
if [ "$1" = "off" ]; then
nmcli device disconnect $IFNAME
exit 0
fi
if [ "$1" = "on" ]; then
@ikr7
ikr7 / complex.glsl
Last active Jan 6, 2018
Complex functions for GLSL (Note: not very optimized)
View complex.glsl
// 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 / following.json
Created Sep 24, 2017
スナップショット
View following.json
[
"511V41",
"remember_series",
"immutablization",
"laco2net",
"5lig",
"lightnet328",
"1kaguya",
"chomadokagi",
"hachikoko_",
View gist:e266e25eea772d1c247f804289594680
LANG=ja_JP.UTF-8
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH # ふつうの
export PATH=/usr/local/opt/coreutils/libexec/gnubin:$PATH # coreutils
export PATH=$HOME/.nodebrew/current/bin:$PATH # nodebrew
export PATH=/Library/TeX/texbin:$PATH # TeX
HISTFILE=~/.zsh_history
HISTSIZE=1000000
SAVEHIST=1000000
You can’t perform that action at this time.