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 / oppai.js
Created Oct 16, 2013
$ node oppai.js
View oppai.js
setInterval(function(){
require('child_process').exec('say oppai');
}, 1000);
@ikr7
ikr7 / otinpo.js
Last active Dec 26, 2015
できるだけ短くアレする(現在 145字)
View otinpo.js
s='おちんぽ';r='';do{r+=s.charAt(Math.random()*s.length|0)}while(!r.match(s));console.log(r+'\n\nおぉぉお゙お゙~っ!!イグゥウ!!イッグゥウウ!!\n\n'+r.length+'回目で果てました…')
@ikr7
ikr7 / index.js
Last active Dec 26, 2015
https://github.com/ikr7/Twitter-Commands ではるアイコン鯖のログイン数おしえてくれるやつ
View index.js
//@sn はるアイコン鯖
module.exports = function(twi, data, cfg){
var http = require('http');
var options = {
'host': 'api.haruicon.com',
'path': '/?g=twiIdInList',
'method': 'GET',
};
var text = '@' + data.user.screen_name + ' ';
View index.js
//@sn update_name [string]
module.exports = function(twi, data, cfg){
var name = data.text.split(' ')[2];
twi.post('/account/update_profile.json', {
'name': name
}, function(err, res){
if(!err){
console.log(res);
}else{
@ikr7
ikr7 / app.js
Last active Dec 27, 2015
sasamijpのあれ ntwitterが必要です
View app.js
var ntwitter = require('ntwitter');
var twi = new ntwitter({
'consumer_key': '',
'consumer_secret': '',
'access_token_key': '',
'access_token_secret': ''
});
var my_screen_name = '';
@ikr7
ikr7 / anime_icon.rb
Created Dec 11, 2013
Rubyでアニメアイコンするやつ 25行目を適当にいじって同じディレクトリにiconsってディレクトリ作って好きな画像を入れろ
View anime_icon.rb
# -*- encoding: utf-8 -*-
require 'rubygems'
require 'tweetstream'
require 'twitter'
Twitter.configure do |config|
config.consumer_key = ''
config.consumer_secret = ''
config.oauth_token = ''
config.oauth_token_secret = ''
@ikr7
ikr7 / fillWithikr7.js
Last active Jan 1, 2016
CanvasRenderingContext2D に、現在のパスをikr7 で塗りつぶす fillWithikr7 メソッドを追加する(引数で密度を指定できます)
View fillWithikr7.js
CanvasRenderingContext2D.prototype.fillWithikr7 = function(density){
var me = this;
var addikr7 = function(x, y){
var ikr7 = new Image();
ikr7.src = 'http://ikr7.net/ikr7.png';
ikr7.addEventListener('load', function(){
me.drawImage(ikr7, x - 20, y - 20, 40, 40);
}, false);
};
@ikr7
ikr7 / no-twitter.user.js
Last active Aug 29, 2015
Twitterやめるやつ for Chrome
View no-twitter.user.js
if(location.host.match(/twitter/)){
alert(
'期末試験まで あと' + -parseInt(((new Date()) - (new Date(2014, 1, 18))) / 1000 / 60 / 60 / 24) + ''
);
top.name = 'a';
window.open('','a');
top.close();
}
@ikr7
ikr7 / package.json
Last active Aug 29, 2015
Japan PvP鯖のマップをお知らせするbot
View package.json
{
"name": "pvpbot",
"version": "0.0.1",
"description": "Uho, good bot...",
"main": "app.js",
"dependencies": {
"ntwitter": "~0.5.0",
"request": "~2.33.0"
},
"devDependencies": {},
@ikr7
ikr7 / pvpbot.php
Created Feb 12, 2014
イエーイ✌('ω')✌ UltimateOAuth ( https://github.com/Certainist/UltimateOAuth ) が必要だよ〜
View pvpbot.php
<?php
require_once("./UltimateOAuth.php");
$consumer_key = "";
$consumer_secret = "";
$access_token = "";
$access_token_secret = "";
$uo = new UltimateOAuth(
You can’t perform that action at this time.