Skip to content

Instantly share code, notes, and snippets.

Shuma Yoshioka S64

View GitHub Profile
@S64
S64 / tuners.yml
Last active Mar 26, 2018
PLEX tuners configuration for Mirakurun
View tuners.yml
- 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 Nov 6, 2015
AppCompat v7 disabledAlpha bug
View Hoge.java
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 Aug 29, 2015
ゼロ除算のテスト。
View DivisionByZero.java
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 Dec 14, 2015
b.twitter.greader: Twitter プロフィールページで使うと Google Reader のフィード購読ページに飛べるブックマークレット
View b.twitter.greader.js
(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/';
You can’t perform that action at this time.