Skip to content

Instantly share code, notes, and snippets.

View fukubaya's full-sized avatar

Yuichiro FUKUBAYASHI fukubaya

View GitHub Profile
@fukubaya
fukubaya / bench.py
Created May 8, 2015 18:11
Comparison of exec time for a list generation in Python
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# bench.py
#
# Created by FUKUBAYASHI Yuichiro on 2015/05/09
# Copyright (c) 2015, FUKUBAYASHI Yuichiro
#
# last update: <2015/05/09 02:42:22>
@fukubaya
fukubaya / get_auth.sh
Created October 11, 2016 13:34
Get auth token from radio server (2016/10)
#!/bin/sh
#playerurl=http://radiko.jp/player/swf/player_3.0.0.01.swf
#playerurl=http://radiko.jp/player/swf/player_4.1.0.00.swf
playerurl=http://radiko.jp/apps/js/flash/myplayer-release.swf
#
# access auth1_fms
#
auth1_fms=`/usr/local/bin/wget -q \
@fukubaya
fukubaya / init.el
Last active January 18, 2017 18:32
emacs configuration at 2017/01/06
;; -*- coding: utf-8 -*-
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
;; MELPA
(add-to-list 'package-archives '("melpa"."http://melpa.org/packages/") t)
@fukubaya
fukubaya / cocoa.py
Created July 27, 2022 14:58
COCOA exposure_data.json の集計
import json
import datetime
with open("exposure_data.json") as f:
exposure = json.load(f)
result = {}
for x in exposure["exposure_windows"]:
t = int(x['DateMillisSinceEpoch']) / 1000
@fukubaya
fukubaya / staplo.js
Last active July 18, 2025 14:04
find avalilable skills and lookup the unit with maximum points in staplo
(async () => {
const userId = 123456789; // Your user ID
const MAX_CARD_PAGE = 10; // Maximum number of pages to fetch for each rarity
const stacommuHighlightName = "スタコミュハイライト vol.1";
const stacommuHighlightName2 = "スタコミュハイライト vol.2";
const stacommuHighlightName3 = "スタコミュハイライト vol.3";
const stacommuAward2025Name1 = "スタコミュAWARD 2025 vol.1";
const stacommuAward2025Name2 = "スタコミュAWARD 2025 vol.2";
const skills = [