I hereby claim:
- I am sotalbireo on github.
- I am sotalbireo (https://keybase.io/sotalbireo) on keybase.
- I have a public key ASD4eq_9tB3qjAi7P3KF834juFgFjtPo7PLRlaES1-OWhgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{ | |
"title": "Fn+CapsLockキーを英かなトグルにする", | |
"rules": [ | |
{ | |
"description": "US入力と、ことえりのひらがなをトグルする", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "caps_lock", |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> | |
#define TRUE 1 | |
#define FALSE 0 | |
#ifdef _WIN32 | |
#include <windows.h> | |
void _sleep(unsigned milliseconds) |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> | |
void tokoroten(int arr[], int val) | |
{ | |
arr[0] = arr[1]; | |
arr[1] = arr[2]; | |
arr[2] = val; |
let a = "e58299e5bf98e98cb2", s=""; | |
for(let i=0; i<a.length; i++) | |
s += (i%2 == 0 ? "%" : "") + a[i]; | |
decodeURIComponent(s); |
# coding: UTF-8 | |
import sqlite3 | |
import random | |
import sys | |
if __name__ == '__main__': | |
# データベースと接続、無ければ作成 |
#!/bin/bash | |
# /etc/init.d/minecraft | |
# Original: http://minecraft.gamepedia.com/Tutorials/Server_startup_script | |
# version 0.4.2 2016-02-09 (YYYY-MM-DD) | |
# Arranged: https://gist.github.com/Sotalbireo/6364b210c4d6f1499d735c1e931a8e6c | |
# version 0.0.5 2016-10-14 (YYYY-MM-DD) | |
### BEGIN INIT INFO | |
# Provides: minecraft | |
# Required-Start: $local_fs $remote_fs screen-cleanup |
#!perl | |
use FCGI; | |
use Socket; | |
use FCGI::ProcManager; | |
sub shutdown { FCGI::CloseSocket($socket); exit; } | |
sub restart { FCGI::CloseSocket($socket); &main; } | |
use sigtrap 'handler', \&shutdown, 'normal-signals'; | |
use sigtrap 'handler', \&restart, 'HUP'; | |
require 'syscall.ph'; | |
use POSIX qw(setsid); |
{ | |
"cmd": ["bcc32", "-e${file_base_name}.exe", "${file_name}"], | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"shell": true, | |
"path": "C:\\bcc55\\Bin\\", | |
"working_dir": "${file_path}", | |
"encoding": "cp932", | |
"selector": "source.c", | |
"variants": |