Skip to content

Instantly share code, notes, and snippets.

var wrap = document.createElement('div');
wrap.style.backgroundColor = 'rgba(255,250,255, 0.7)';
wrap.style.color = '#000';
wrap.style.display = 'table';
wrap.style.fontSize ='90px';
wrap.style.height = '100%';
wrap.style.left = '0';
wrap.style.position = 'fixed';
wrap.style.textAlign = 'center';
wrap.style.top = '0';
@dlwr
dlwr / RAD.js
Last active August 29, 2015 14:07
(function(){
var loading = false;
var first = true;
var RAD_URL = 'http://219.94.245.80:3000/';
var RAD_DEPTH = {
TODAY: 'today',
SINCE_BLOG: 'since_blog',
SINCE_DIARY: 'since_diary'
};
var depthSelectBox = document.createElement('form');
@dlwr
dlwr / g-lii.user.js
Last active August 29, 2015 14:07 — forked from noromanba/g-lii.user.js
// ==UserScript==
// @name Load Image Immediately
// @namespace http://noromanba.flavors.me
// @description immediately load images w/ PagerExtention for UserScript
// @include http://gigazine.net/*
// @include http://www.moae.jp/comic/*
// @include http://omocoro.jp/*
// @include http://rocketnews24.com/*
// @grant none
// @run-at document-end
// ==Taberareloo==
// {
// "name" : "Check how many days have passed without coffee"
// , "description" : "Check how many days have passed without coffee every coffee time(16:30) and tweet it"
// , "include" : ["background"]
// , "version" : "0.1.4"
// , "downloadURL" : "https://gist.github.com/dlwr/2f03e894672551072c38/raw/patch.check.noncoffee.days.tbrl.js"
// }
// ==/Taberareloo==
@dlwr
dlwr / extractor.photo.capture.glitch.tbrl.js
Last active August 29, 2015 14:10
ウェブページをキャプチャーしてグリッチして投稿するtaberareloo拡張パッチ
// ==Taberareloo==
// {
// "name" : "Glitch Selected Region"
// , "description" : "Glitch Selected Region"
// , "include" : ["background", "content"]
// , "match" : ["*://*/*"]
// , "version" : "1.0.2"
// , "downloadURL" : "https://gist.githubusercontent.com/dlwr/8f616fc605ff6b99640e/raw/extractor.photo.capture.glitch.tbrl.js"
// }
// ==/Taberareloo==
// ==Taberareloo==
// {
// "name" : "Fix Tumblr like actions on AutoPagerizing"
// , "description" : "Fix Tumblr like actions on AutoPagerizing"
// , "include" : ["content"]
// , "match" : [
// "*://www.tumblr.com/dashboard*",
// "*://www.tumblr.com/likes*",
// "*://www.tumblr.com/blog/*",
// "*://www.tumblr.com/tagged/*"
@dlwr
dlwr / app.js
Last active April 27, 2016 09:30
toste
const http = require('http');
function check(request, response) {
if (request.url === '/favicon.ico') {
response.writeHead(200, {'Content-Type': 'image/x-icon'} );
response.end();
return;
}
response.writeHead(200, {'Content-Type': 'text/plain'});
response.end(`チェックワンツー、ワンツー`);
// ==Taberareloo==
// {
// "name" : "WikiHub Model for RAC Articles"
// , "description" : "Post an article to https://rac.wikihub.io/articles"
// , "include" : ["background"]
// , "version" : "0.0.2"
// , "downloadURL" : "https://gist.githubusercontent.com/raw/87ea769b18357185f27babb24e471a31/model.wikihub.rac.tbrl.js"
// }
// ==/Taberareloo==
{"programming":{"title":"Programming","pages":[],"articles":{"@r7kamura":{"20160704215030":"ActiveModelで特定の語句を含むことを禁止するValidationを定義する","20160704195851":"Facebookで上手く表示されるようにmeta要素を記述する","20160703095421":"RailsアプリにGoogle Analyticsのトラッキングコードを追加する","20160702202711":"Let's EncryptとAmazon LinuxとNginxでamakan.netをHTTPSに対応させた","20160702201751":"Amazon Product Advertising APIで得られた画像のHTTPS版を利用する","20160629145440":"iCalendarのURLを指定してカレンダーを登録するためのリンクを生成する","20160628125028":"Amazon Product Advertising APIでKindle版の書籍を絞り込む・除外する・判定する","20160627030457":"RailsでiCalendar形式で予定を公開する","20160624234249":"ActiveRecordで途中からcollationをutf8mb4_binに変更する","20160624110140":"モデルでURLを組み立てるときにホスト名をどうにかして用意する","20160619091726":"Imgur APIを利用してWebブラウザから画像をアップロードする","20160617011257":"Railsでデフォルトで設定されるX-Frame-Optionsの値を変更する","20160615122140":"WikiHub不具合日記 2016年6月15日","20160606205809":"ActiveRecordで子レコードを作成するときに親レコードのインスタンス変数を参照したい場合はinverse_ofが必要","20160530234126":"テンプレートマッチングでスプラトゥーンのゲーム結果画面を見ているかどうか判定してみた","20160521224916":"HTML内のCSS定義をstyle属性に置