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 / generate.rb
Last active August 29, 2015 13:57
Ruby de 陰毛
# coding: utf-8
require 'cairo'
require './inmou.class.rb'
width = 256
height = 256
amount = 16
length = 1
@ikr7
ikr7 / sex.php
Created April 8, 2014 12:46
Foooooooooooooo
<?php
$data = json_decode(file_get_contents("https://pvp.minecraft.jp/servers.json"));
$all_players = 0;
foreach($data->servers as $server){
$all_players += $server->Server->current;
printf("%s: %d/%d, %s\n",
$server->Server->name,
@ikr7
ikr7 / helloworld
Created April 19, 2014 12:46
helloworld.js
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]](([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+
@ikr7
ikr7 / bbop.js
Last active August 29, 2015 14:00
bbop.js
// github.com/ikr7/twitter_commands_v2 で bbop
// 参考: https://gist.github.com/laco0416/8ffe20bfd393e1344112
var Command = require('../lib/command.js');
var makebbop = function(){
var elements = ['ビ','ビ','ド','レ','ド','オ','ペ','レ','ショ'];
var indice = [];
var matches = 0;
elements.forEach(function(ch, i, arr){
@ikr7
ikr7 / bot.js
Created May 3, 2014 04:04
クソbot
var ImmortalNTwitter = require('immortal-ntwitter');
var twit = ImmortalNTwitter.create({
'consumer_key': '',
'consumer_secret': '',
'access_token_key': '',
'access_token_secret': ''
});
@ikr7
ikr7 / speech.js
Last active August 29, 2015 14:01
ツイート読み上げ
var Command = require('../lib/command.js'),
exec = require('child_process').exec,
MeCab = require('mecab-async'),
mecab = new MeCab();
var say = new Command(function(twit, status, CONFIG){
if(status.retweeted_status) status = status.retweeted_status;
mecab.parse(status.text, function(err, result){
if(!err){
@ikr7
ikr7 / index.js
Created May 28, 2014 13:59
ツイート読み上げ
var Command = require('../../lib/command.js'),
async = require('async'),
split = require('./split.js'),
exec = require('child_process').exec;
var say = new Command(function(twit, status, CONFIG){
if(status.retweeted_status){
status = status.retweeted_status
@ikr7
ikr7 / gist:0dd8971905059b3ababe
Created June 9, 2014 07:19
BeagleBone Black Rev.C にはじめから入ってたやつメモ
root@beaglebone:~# npm ls -g
/usr/local/lib
├─┬ bonescript@0.2.4
│ ├─┬ epoll@0.0.7
│ │ └── nan@0.4.4
│ ├─┬ express@3.1.0
│ │ ├── buffer-crc32@0.1.1
│ │ ├── commander@0.6.1
│ │ ├─┬ connect@2.7.2
│ │ │ ├── bytes@0.1.0
@ikr7
ikr7 / button.js
Created June 10, 2014 11:34
ボタンがおされたらアレみたいなやつ
var b = require('bonescript');
b.pinMode('P8_19', b.INPUT);
setInterval(check, 100);
function check(){
b.digitalRead('P8_19', checkButton);
}
PublicHair API
An API that generates public hair image. Outputs PNG, JPEG, Animated GIF, SVG and JSON.
API Endpoint is "/v1/[width]x[height].[type]". Max size is 1024x1024. If type is "gif", max size is 512x512.
Parameters
amount: Specifies number of hair. defaults to 15. max is 1000.