Skip to content

Instantly share code, notes, and snippets.

View sjcl's full-sized avatar
🐀
Rats, rats, we are the rats. Celebrating yet another birthday bash.

sjcl

🐀
Rats, rats, we are the rats. Celebrating yet another birthday bash.
View GitHub Profile
@sjcl
sjcl / TwitterCircleExporter.user.js
Last active December 28, 2019 12:23
Twitterからサークル出展者の情報をGoogle Spreadsheetにペーストしやすいように吐き出すやつ
// ==UserScript==
// @name C97 コミケスプレッドシートへるぱー
// @version 0.3
// @description Twitterのユーザーページかお品書きツイートページを開くとGoogleSpreadsheetにいい感じに貼り付けられる文字列が出てきます
// @author sjcl
// @namespace https://teamfruit.net
// @include https://twitter.com/*
// @exclude https://twitter.com/*/status/*/photo*
// @require http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// @grant none
@sjcl
sjcl / Main.java
Last active October 7, 2017 14:25
C
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
public class Main {
public static void main(final String[] args) {
try (final Scanner sc = new Scanner(System.in)) {
final String[] init = sc.nextLine().split(" ");
final int count = Integer.parseInt(init[0]);
import sys
import json
from multiprocessing import Pool
from functools import partial
from requests import session
def download(id, session):
req = session.get('https://osu.ppy.sh/d/' + id, stream=True)
osz = req.headers['Content-Disposition'][21:-2]
from os import path, listdir
import json
def main():
dir = path.dirname(path.abspath(__file__))
songs = set()
for song in listdir(dir):
id = song.split(' ')[0]
if id.isdigit():
@sjcl
sjcl / SeismicObservationPoints.json
Last active December 18, 2016 16:03
観測中の気象庁震度観測点一覧Json(平成28年10月13日現在)ARV600 座標JGD2000 予告なく内容を変更する可能性があります。
{
"points": {
"北海道": {
"北海道": {
"石狩地方北部": [
{
"name": "石狩市花川",
"lat": 43.1717,
"lon": 141.315,
"avs": 260.2,
@sjcl
sjcl / ARKSurverModsHelper.java
Created November 21, 2016 09:46
本体を置いたディレクトリにあるディレクトリをCSVで出力するだけ
package net.teamfruit.arkservermodshelper;
import java.awt.BorderLayout;
import java.awt.Font;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
@sjcl
sjcl / Clayium.zs
Created October 15, 2016 07:02
[Minetweaker3/Modtweaker2]Clayium & Gregtech-5 Suppressing a decrease in difficulty
import mods.clayium.ClayMachines;
ClayMachines.remove("MatterTransformer", <gregtech:gt.metaitem.01:11129>);
ClayMachines.remove("MatterTransformer", <gregtech:gt.metaitem.01:11058>);
ClayMachines.remove("MatterTransformer", <gregtech:gt.metaitem.01:11070>);
ClayMachines.remove("MatterTransformer", <gregtech:gt.metaitem.01:11323>);
ClayMachines.remove("MatterTransformer", <gregtech:gt.metaitem.01:11326>);
ClayMachines.remove("MatterTransformer", <gregtech:gt.metaitem.01:11324>);
ClayMachines.remove("MatterTransformer", <minecraft:nether_star>);
ClayMachines.remove("MatterTransformer", <gregtech:gt.metaitem.01:11103>);
@sjcl
sjcl / MyNumber.java
Last active September 21, 2016 17:35
MyNumber
package com.bebehp.mc.experimental;
import java.math.BigDecimal;
import java.util.IllegalFormatConversionException;
public class MyNumber {
private final BigDecimal number;
/**
* 値のない(ヌルヌルな)マイナンバーです(こんなマイナンバーあってたまるかww)