I hereby claim:
- I am ushitora-anqou on github.
- I am anqou (https://keybase.io/anqou) on keybase.
- I have a public key whose fingerprint is F462 D1EA 528C D32B 6D16 522D CFDB B7E0 6092 4E96
To claim this, I am signing this object:
#!/usr/bin/ruby | |
require "base64" | |
require "optparse" | |
params = { | |
from: nil, | |
to: [], | |
subject: "", | |
message: nil, |
#include <termios.h> | |
#include <unistd.h> | |
#include <boost/iostreams/concepts.hpp> | |
#include <boost/iostreams/stream.hpp> | |
#include <deque> | |
#include <sstream> | |
#define AQ1_RANGE(cont) std::begin(cont), std::end(cont) | |
#define AQ1_ASSERT(cond, msg) \ |
#!/bin/bash | |
# Usage: switch_windows.sh left|right | |
# Thanks to: http://hico-horiuchi.hateblo.jp/entry/20130502/1367508391 | |
P#!/bin/bash | |
PATH=/usr/bin:$PATH | |
if [ "$1" = "left" ]; then | |
CMP_POS="<" |
# Box–Muller's method | |
# https://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform | |
def normal_rand(mu = 0, sigma = 1) | |
x = rand | |
y = rand | |
z = Math.sqrt(-2 * Math.log(x)) * Math.cos(2 * Math::PI * y) | |
z * sigma + mu | |
end |
#include <iostream> | |
#include <optional> | |
int main() | |
{ | |
std::string input; | |
while (std::getline(std::cin, input)) { | |
std::optional<int> begin, end; | |
for (int i = 0; i < input.size(); i++) { | |
char ch = input[i]; |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/ruby | |
STDOUT.sync = true # disable buffering | |
$target_urls = [ | |
"8.8.8.8", | |
"8.8.4.4", | |
"4.2.2.2", | |
"4.2.2.1", | |
"www.google.com", |
\documentclass[% | |
paper=a4,article,fontsize=10pt,% | |
number_of_lines=40,gutter=1in,% | |
jlreq_notes% | |
]{jlreq} | |
\usepackage[T1]{fontenc} | |
\usepackage{textcomp} | |
\usepackage[utf8]{inputenc} | |
\usepackage{lmodern} |
int printf(char *str, int a, int b); | |
int validate(int *map, int N, int p) | |
{ | |
if (map[p]) return 0; | |
int row = p / N, col = p % N; | |
for (int i = 0; i < N; i++) | |
if (map[i * N + col]) return 0; | |
for (int i = 0; i < N; i++) |
#!/bin/sh | |
PATH="/usr/bin:/usr/local/bin:$PATH" | |
SESSION_NAME="minecraft" | |
MC_LIVE_PATH="/home/minecraft/instance/live" | |
MC_BACKUP_PATH="$MC_LIVE_PATH/../backup" | |
MC_EXECUTE_COMMAND="java -Xmx1024M -Xms1024M -jar server.jar nogui" | |
mc_already_started() { |