Skip to content

Instantly share code, notes, and snippets.

🛏️
🛌

Hinaloe hinaloe

🛏️
🛌
View GitHub Profile
@hinaloe
hinaloe / UnivFeliCa.md
Created Oct 27, 2019 — forked from oboenikui/UnivFeliCa.md
大学生協FeliCaの仕様
View UnivFeliCa.md

WHAT IS THIS

大学生協のFeliCa,及び諸大学の学生証一体型FeliCaの仕様
レスポンスについては,特に表記のない限り東北大学のもの (学生証一体型ではない)
断りのない限りコードはビッグエンディアンで通信する (下記のドキュメントに合わせた)
記号と区別するため,アルファベットの大文字表記は記号,小文字表記は16進表記とする

FeliCa自体の仕様については,Sony公式のドキュメントを参考に

System Code

View .js
(function(d){const v=d.querySelector('video[preload="metadata"]'),c=d.createElement('canvas');c.width=v.videoWidth;c.height=v.videoHeight;c.getContext('2d').drawImage(v,0,0);c.toBlob(blob=>{const url = URL.createObjectURL(blob),a=d.createElement('a');a.href=url;a.download=d.querySelector('.jk_u').textContent;a.click()})})(document)
@hinaloe
hinaloe / Twitter Cramming.user.js
Last active Sep 28, 2017 — forked from if1live/Twitter Cramming.user.js
Force enable cramming (280 character tweets) on Twitter. NOTE: Stops working when you switch pages, refresh to fix. https://twitter.com/Prof9/status/912859110776950784
View Twitter Cramming.user.js
// ==UserScript==
// @name Twitter Cramming
// @description Force enable cramming (280 character tweets) on Twitter
// @author Prof. 9
// @version 0.1
// @match https://twitter.com/*
// @run-at document-idle
// @namespace prof9.twittercramming
// ==/UserScript==
View OptionsPage.php
<?php
namespace NAE\ShowArticleMap\Admin;
use NAE\ShowArticleMap\ShowArticleMap;
use NAE\ShowArticleMap\SingleTon;
class OptionsPage extends SingleTon {
protected $options = [];
View keybase.md

Keybase proof

I hereby claim:

  • I am hinaloe on github.
  • I am hina (https://keybase.io/hina) on keybase.
  • I have a public key ASDVYMNPJhwA_KZX4CqrAYmgKT-mslI6eCfvGiMMeT9Hmwo

To claim this, I am signing this object:

@hinaloe
hinaloe / abema-transport-comment.css
Last active Jan 1, 2017
Abemaでコメント背景を透過するCSS
View abema-transport-comment.css
/*
.styles__container___1NCBk.styles__item___g1QVu {
background: transparent !important;
}
.styles__container___N94GK {
background-color: rgba(255, 255, 255, 0.8);
}
.styles__right-comment-area___1Mun-.styles__right-slide-base___2DeT6.styles__right-slide--shown___6J2yq {
View ghost2wp.py
"""
Requirements:
* A Wordpress Blog
* Ghost export file (json).
* Python Packages: python-wordpress-xmlrpc
>>> pip install python-wordpress-xmlrpc
WARNING:
@hinaloe
hinaloe / force ssl srcset.php
Last active Dec 12, 2015
WordPress 4.4 Responsive Images srcset SSL sample
View force ssl srcset.php
<?php
add_filter('wp_calculate_image_srcset',function($sources, $size_array, $image_src, $image_meta, $attachment_id ) {
if ( is_ssl() )
{
foreach($sources as $size => &$source){
$source['url'] = set_url_scheme( $source['url'] ,'https');
}
}
return $sources;
@hinaloe
hinaloe / gist:97ec69840ef0a24eecb7
Created Dec 6, 2015
Search result of "syaroshi.co OR シャロシコ exclude:retweets"
View gist:97ec69840ef0a24eecb7
@YRYRUMI: ごちうさ→シャロシコへ 673164429391880193 @Sat Dec 05 15:38:01 +0000 2015
NOW:100 NextMax: 673164429391880193
@hamicyun: シャロシコ飽きた 673106377636577280 @Sat Dec 05 11:47:20 +0000 2015
NOW:200 NextMax: 673106377636577280
@sudosan: シャロシコAdventCalendar、書いてくれる方募集中 672767034728386560 @Fri Dec 04 13:18:55 +0000 2015
NOW:300 NextMax: 672767034728386560
@sharo315: シャロシコしてる奴らタカヒロさんでシコれ 672440109342392320 @Thu Dec 03 15:39:50 +0000 2015
NOW:400 NextMax: 672440109342392320
@k2124e: シャロシコしよ 672182455114199040 @Wed Dec 02 22:36:00 +0000 2015
NOW:500 NextMax: 672182455114199040
You can’t perform that action at this time.