Skip to content

Instantly share code, notes, and snippets.

View kb10uy's full-sized avatar
😋
Coding at home

KOBAYASHI Yū kb10uy

😋
Coding at home
View GitHub Profile
//改良前のコード抜粋
if (artifact["target_object"] != null)
{
return DeserializeUserStreamEvent(content);
}
/*
・問題点
1.イベントの条件が「target_objectがあるかどうか」
2.そのせいでtarget_objectがないfollowとかuser_updateは
切り捨てられる
@kb10uy
kb10uy / te.cs
Last active August 29, 2015 14:00
using System;
using System.Collections.Generic;
namespace Kb10uy {
public class ExtremeArray<T> {
HashSet<KeyValuePair<Tuple<int,int>>> list;
public ExtremeArray() {
list=HashSet<KeyValuePair<Tuple<int,int>>>();
}
@kb10uy
kb10uy / fm.txt
Created May 7, 2014 13:53
Kb10uy.Audio.Synthesis.FMの出力結果
キャリア detune : 1 基本周波数 : 4Hz
モジュレータ detune : 0.75 変調指数 : 2
0
0.098008665572831
0.195023513209373
0.290064720944675
0.382180180850238
0.470458668609379
0.554042208419641
0.632137398036769
using System;
public class
Program {
public
static void Main(string[] args){
Console.Write("Hello,World!");
}
}
//このプログラムは、
//C#でコンパイルしても
#!/usr/bin/ruby
# ScreenName を自分のSNに置き換えてね
require 'rubygems'
require 'twitter'
ckey="ConsumerKey"
csec="ConsumerSecret"
atok="AccessToken"
@kb10uy
kb10uy / Replyo.py
Last active August 29, 2015 14:03
Kbtter4用のYO返しプラグイン
# coding: utf-8
import clr
from System import *
from System.Collections.Generic import *
from System.Text import *
from System.Text.RegularExpressions import *
from System.IO import *
clr.AddReferenceByPartialName("CoreTweet")
from CoreTweet import *
@kb10uy
kb10uy / STAP.BAS
Created July 21, 2014 13:27
プチコンでSTAP細胞探すやつ
ACLS
N=1
H=0
@START
C$=""
FOR I=0 TO 3
C$=C$+CHR$(RND(26)+65)
NEXT
COLOR RND(12)+3
@kb10uy
kb10uy / TokioGen.py
Last active August 29, 2015 14:04
Kbtter4用TOKIOジェネレータ
# coding: utf-8
import clr
import sys
from System import *
from System.Collections.Generic import *
from System.Text import *
from System.Text.RegularExpressions import *
from System.IO import *
@kb10uy
kb10uy / SuddenDeath.py
Created July 21, 2014 14:14
突然の死ジェネレータ Kbtter4
# coding: utf-8
import clr
import sys
from System import *
from System.Collections.Generic import *
from System.Text import *
from System.Text.RegularExpressions import *
from System.IO import *
Name="突然の死ジェネレータコマンドプラグイン"
@kb10uy
kb10uy / Base64.py
Last active August 29, 2015 14:04
Kbtter4用 Base64関係プラグイン
# coding: utf-8
# Base64プラグイン
# ・Base64と思われるツイートの自動デコード
# ・Base64エンコード・デコード・ツイートコマンド
# ・それぞれ"b64enc","b64dec","b64tweet"で、
# ・textパラメータに文字列を指定することで使用できます
import clr
from System import *