This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding:utf-8 -*- | |
# 이 사람은 오늘도 열심히 트위터를 하였다 | |
from twython import Twython | |
from datetime import datetime, timedelta | |
import io | |
import math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding:utf-8 -*- | |
import datetime | |
from twython import Twython | |
from time import sleep | |
usagi = Twython('우사기', '우사기', '우사기', '우사기') | |
if __name__ == "__main__": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static bool IsMethodCompatibleWithDelegate<T>(MethodInfo method) where T : class | |
{ | |
return IsMethodCompatibleWithDelegate(method, typeof(T)); | |
} | |
public static bool IsMethodCompatibleWithDelegate(MethodInfo method, Type delegateType) | |
{ | |
MethodInfo invoke = delegateType.GetMethod("Invoke"); | |
return invoke.ReturnType == method.ReturnType && | |
invoke.GetParameters().Select(x => x.ParameterType) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git clone $2 $1 | |
cd $1 | |
git remote add upstream $3 | |
git fetch upstream | |
git checkout master | |
git rebase upstream/master | |
git push -f origin master | |
cd .. | |
rm -rf $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Text; | |
/* For .NET Framework 4.5 | |
using System.Threading.Tasks; | |
*/ | |
namespace RyuaNerin | |
{ | |
[Serializable] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
namespace RyuaNerin | |
{ | |
internal class RangeStream : Stream | |
{ | |
private Stream m_baseStream; | |
private long m_currentPos; | |
private int m_offset; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myid = TwitterService.currentUser.id; | |
// 유저 아이디를 " 으로 감싸서 넣으면 됨 , 으로 구분 | |
var dropUser = [ "" ]; | |
Array.prototype.Contains = function(s) | |
{ | |
for (var i = 0; i < this.length; ++i ) | |
if(this[i] == s) | |
return true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Filtering Bot Tweets | |
// | |
// By @RyuaNerin | |
var dropClient = [ "twittbot.net", "SaucerInfo", "TweetMag1c for Android", "REFLEC BEAT colette AC", "このまま眠りつづけて死ぬ", "ツイート数カウントくん", "占ぃったー", "うんこはにがくてうまい", "ツイ廃あらーと", "なるほどコカインマンじゃねーの", "リプライ数チェッカ", "ReflecInfo"]; | |
Array.prototype.Contains = function(s) | |
{ | |
for (var i = 0; i < this.length; ++i ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// By RyuaNerin | |
// https://twitter.com/@@@@@@@@/status/@@@@@@@@@@@@@@@@@@ | |
// dropIds 에, 으로 구분해서 |이부분 적으면 됨| | |
var dropIds = [ ]; | |
Array.prototype.Contains = function(s) | |
{ | |
for (var i = 0; i < this.length; ++i ) | |
if (this[i] == s) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myid = TwitterService.currentUser.screen_name; | |
var rtn = {}; | |
var rtc = {}; | |
TwitterService.addEventListener('preFilterProcessTimelineStatus', function(status) | |
{ | |
if (status.user.screen_name == myid) | |
return false; | |
if (!status.retweeted) |