Skip to content

Instantly share code, notes, and snippets.

View hinaloe's full-sized avatar
🛏️
🛌

Hinaloe hinaloe

🛏️
🛌
View GitHub Profile
@hinaloe
hinaloe / フルール.patch
Created November 23, 2015 21:55
ましにした
diff --git a/css/style.css b/css/style.css
index 608be80..1e285d3 100644
--- a/css/style.css
+++ b/css/style.css
@@ -48,6 +48,8 @@ h1 {
background-color: white;
margin: 0px;
overflow:hidden;
+ padding-left 5px;
+ padding-right: 5px;
@hinaloe
hinaloe / gist:97ec69840ef0a24eecb7
Created December 6, 2015 13:14
Search result of "syaroshi.co OR シャロシコ exclude:retweets"
@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
@hinaloe
hinaloe / force ssl srcset.php
Last active December 12, 2015 12:33
WordPress 4.4 Responsive Images srcset SSL sample
<?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 / bookmarklet.js
Last active December 18, 2015 16:14
google play music nowplaying
javascript:!function(d){try{var a = d.querySelector("#player-artist").textContent,t=d.querySelector("#currently-playing-title").textContent,al=d.querySelector(".player-album").textContent;var text=`|Music:${t}\n|Artist:${a}\n|Album:${al}\n#nowplaying #googlePlayMusic`;window.open('https://twitter.com/intent/tweet?text='+encodeURIComponent(text),"","chrome=yes,height=300,width=500");} catch (e) {alert(e);}}(document);
<?
//セッションの開始
session_start();
require_once "croudia4php.php";
require_once "config.php";
//code パラメータがあるかどうかをチェック
if (!isset($_GET["code"])){
@hinaloe
hinaloe / croudia_unread.user.js
Last active January 1, 2016 20:48
Croudiaの未読数(ストリーム停止時:画面の一番上を表示していないとき)に未読数(未ロード数)をカウントして表示するためのUserscript。(Chromeで動作確認。)
// ==UserScript==
// @name Croudiaを使いやすくする奴
// @namespace croudiaeasy
// @description Croudiaを使いやすくしたい
// @match https://croudia.com/*
// @require https://code.jquery.com/jquery-1.10.2.min.js
// @version 1.3
// ==/UserScript==

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for Google TV

Consumer key: iAtYJ4HpUVfIUoNnif1DA

@hinaloe
hinaloe / ghost2wp.py
Last active February 11, 2016 12:46 — forked from jamesantrobus/ghost2wp.py
"""
Requirements:
* A Wordpress Blog
* Ghost export file (json).
* Python Packages: python-wordpress-xmlrpc
>>> pip install python-wordpress-xmlrpc
WARNING:
@hinaloe
hinaloe / abema-transport-comment.css
Last active January 1, 2017 18:21
Abemaでコメント背景を透過する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 {

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: