Skip to content

Instantly share code, notes, and snippets.

View S64's full-sized avatar

Shuma Yoshioka S64

View GitHub Profile
@S64
S64 / 01.sh
Last active November 29, 2023 04:33
Run ComfyUI on macOS
git clone git@github.com:comfyanonymous/ComfyUI.git
git log -n 1
@S64
S64 / Gemfile
Last active June 24, 2023 16:07
prototype of `kiganix/common-cloudflareimages-manager`
# frozen_string_literal: true
source 'https://rubygems.org'
gem 'rake', '~> 13.0', '>= 13.0.6'
gem 'rspec-expectations', '~> 3.12', '>= 3.12.3'
gem 'faraday', '~> 2.7', '>= 2.7.7'
gem 'faraday-multipart', '~> 1.0', '>= 1.0.4'

Keybase proof

I hereby claim:

  • I am s64 on github.
  • I am s64 (https://keybase.io/s64) on keybase.
  • I have a public key ASD6K27qAxYgGeD-RcXBlW-iH_1orZrUN69s_JdnBLuVego

To claim this, I am signing this object:

@S64
S64 / tuners.yml
Last active March 26, 2018 02:19
PLEX tuners configuration for Mirakurun
- name: "PLEX Tuner (usb-px4.ko)"
types:
- GR
command: recpx4 --device /dev/px4-DTV2 <channel> - -
decoder: arib-b25-stream-test
isDisabled: false
- name: "PLEX Tuner (usb-px4.ko)"
types:
- GR
@S64
S64 / Hoge.java
Created November 6, 2015 06:38
AppCompat v7 disabledAlpha bug
import android.os.Build;
import android.util.TypedValue;
import android.view.View;
/**
* Created by S64 on 15/11/06.
*/
public class Hoge {
public static void setEnabledCompat(View view, boolean enabled) {
@S64
S64 / DivisionByZero.java
Last active August 29, 2015 14:18
ゼロ除算のテスト。
class DivisionByZero {
protected static final int[] NUMBERS = {8 , -8, 0};
public static void main(String[] args) throws java.lang.Exception {
for (Mode m: Mode.values()) {
for (NumberMode nM : NumberMode.values()) {
try {
ExecCalc(m, nM);
} catch (Exception e) {
@S64
S64 / b.twitter.greader.js
Last active December 14, 2015 10:58
b.twitter.greader: Twitter プロフィールページで使うと Google Reader のフィード購読ページに飛べるブックマークレット
(function(){
var url = location.href;
var user = url.replace(/^https?:\/\/(mobile\.)?twitter\.com\/(#!\/)?(\w*)\/?.*$/,'$3');
var rss = 'https://api.twitter.com/1/statuses/user_timeline.rss?screen_name='+user;
var reader;
var ua = navigator.userAgent;
if( ua.search(/(Android|iPhone|iPad|iPod)/) != -1 )
reader = 'https://www.google.com/reader/i/#stream/feed/';
else
reader = 'https://www.google.com/reader/view/feed/';