Skip to content

Instantly share code, notes, and snippets.

View fushihara's full-sized avatar

Fushihara fushihara

View GitHub Profile
@fushihara
fushihara / TSInfoExtractor.py
Created November 15, 2023 07:29 — forked from tsukumijima/TSInfoExtractor.py
TS ファイルから各種情報を取得して JSON で出力するツール / ライブラリ
#
# TSInfoExtractor.py
# Copyright (c) 2021-2022 tsukumi. Licensed under MIT.
#
import json
import sys
from copy import copy
from datetime import date
from datetime import datetime
@fushihara
fushihara / gist:f1cf3f9787d4cf4f0b701689b5d3f6fb
Created September 5, 2020 11:15
public repo test あいうえお
ほげほげ
@fushihara
fushihara / sjis-1.txt
Last active July 30, 2017 16:44
nodejs-sjis
あ﨑い
いえいえいいえいえ
てすとほげほげほげh「
今ログイン
@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;
@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 / 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 / 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 / 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;