Skip to content

Instantly share code, notes, and snippets.

View fushihara's full-sized avatar

Fushihara fushihara

View GitHub Profile
<a href="http://www.ugtop.com/spill.shtml">http://www.ugtop.com/spill.shtml</a>
@fushihara
fushihara / gist:717a9538efc18fb7c44e
Created August 16, 2014 08:59
animetick.netに各局の放送日時を表示するボタンを追加するTampermonkey用userScript.js
// ==UserScript==
// @name animetick(トップ画面)
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description enter something useful
// @match http://animetick.net/*
// @copyright 2012+, You
// ==/UserScript==
disableChIds=[
8,//tvk
@fushihara
fushihara / 変換されたテキスト一覧
Last active August 29, 2015 14:05
twitterのREST APIとStreaming APIの違い。
2014/08/23 12:18頃
postしたツイートは
!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
ABC
windows7のツイタマより。
streamingAPI
{"created_at":"Sat Aug 23 03:18:38 +0000 2014","id":503018450327846913,"id_str":"503018450327846913","text":"!\"#$%&amp;'()*+,-.\/:;&lt;=&gt;?@[\\]^_`\u007b|\u007d~\nABC","source":"\u003ca href=\"http:\/\/twitter.softama.com\/\" rel=\"nofollow\"\u003e\u30c4\u30a4\u30bf\u30de\u003c\/a\u003e","truncated":false,"in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"user":{"id":212836820,"id_str":"212836820","name":"FushiharaCheck","screen_name":"FushiharaCheck","location":"\u3053\u3053","url":null,"description":null,"protected":true,"followers_count":2,"friends_count":2,"listed_count":0,"created_at":"Sun Nov 07 05:38:39 +0000 2010","favourites_count":2,"utc_offset":-25200,"time_zone":"Pacific Time (US & Canada)","geo_enabled":false,"verified":false,"statuses_count":398899,"lang":"ja","contributors_enabled":false,"is_tra
@fushihara
fushihara / index.php
Last active August 29, 2015 14:05
確認くんスーパーライト
<?php
$time=time();
$ipAddress = $_SERVER["REMOTE_ADDR"];
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
header("Content-Disposition: inline");
header("content-type: text/plain; charset=utf8");
print("time:".date("Y/m/d H:i:s T",$time)."\n");
print("ip:{$ipAddress}\n");
print("host:{$hostname}\n");
@fushihara
fushihara / Main.java
Created October 12, 2014 15:16
2ch過去含むサーバーリスト
package ****;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
@fushihara
fushihara / createTempDir.bat
Last active August 29, 2015 14:07
簡単作業ディレクトリ
@echo off
set dateStr=%date%
set timeStr=%time%
set dateStr=%dateStr:/=-%
set dateStr=%dateStr: =0%
set timeStr=%timeStr::=-%
set timeStr=%timeStr: =0%
set new_temp_path=%TMP%\temp_%dateStr%_%timeStr%\
mkdir "%new_temp_path%"
explorer "%new_temp_path%"
@fushihara
fushihara / after.smali
Last active August 29, 2015 14:11
ツイタマのテキストを共有アクション改造
#8545
.method protected b(Ljava/lang/Object;)Ljava/lang/String;
.locals 6
.prologue
.line 2715
if-nez p1, :cond_0
const/4 v0, 0x0
@fushihara
fushihara / javaTest
Last active August 29, 2015 14:12
Javaに特化した起動スクリプト http://fushi.x0.com/blog/archives/1677
#!/bin/sh
#
# chkconfig: 345 70 30
# description: Fushihara java run test
java=/usr/java/default
prog=javaTest
currentDirectory=/home/fushihara/javaTest/
classPath=bin:src
runClass=org.fushihara.javastdinouttest.Test
@fushihara
fushihara / BigQuery.java
Last active September 19, 2015 09:19
JavaからTwitterのデータをgoogle BigQueryにぶち込む方法 のソースコード ブログ記事→ https://fushihara.org/blog/archives/2980
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
import java.security.GeneralSecurityException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.ResourceBundle;
import com.google.api.client.googleapis.auth.oauth2.GoogleCredential;
てすとほげほげほげh「
今ログイン