This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>カレーのレシピ</title> | |
</head> | |
<body> | |
<article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// same as `Action = Actions['selectSubreddit'] | Actions['invalidateSubreddit'] | ...` | |
export type Action = Actions[keyof Actions]; | |
// same as `ActionType = 'SELECT_SUBREDDIT' | 'INVALIDATE_SUBREDDIT' | ...` | |
export type ActionType = Action['type']; | |
interface Actions { | |
selectSubreddit: { | |
type: 'SELECT_SUBREDDIT'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ThunkAction } from "redux-thunk"; | |
import { RequestPosts, ReceivePosts } from './creators'; | |
import { State } from "../reducers/index"; | |
const ThunkActionClass = class { | |
constructor(thunk: any) { | |
return thunk; | |
} | |
} as { | |
new<R, S, A>(thunk: ThunkAction<R, S, A>): ThunkAction<R, S, A>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const request = require('request'); | |
const Encoding = require('encoding-japanese'); | |
function write(threadUrl, { | |
name = '', | |
mail = '', | |
message = '', | |
}, onsuccess, onerror) { | |
const thread = parseUrl(threadUrl); | |
const writeUrl = thread.url.replace('read.cgi', 'write.cgi'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name wheel de slide | |
// @namespace http://rikuba.com/ | |
// @include http://www.slideshare.net/* | |
// @include https://www.slideshare.net/* | |
// @include http://speakerdeck.com/player/* | |
// @include https://speakerdeck.com/player/* | |
// @include http://slides.com/* | |
// @include http://qiita.com/* | |
// @include http://niconare.nicovideo.jp/watch/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Link to module | |
// @namespace http://rikuba.com/ | |
// @include https://github.com/*/* | |
// @version 1.3 | |
// @grant GM_xmlhttpRequest | |
// @grant GM_openInTab | |
// @license CC0-1.0 <http://creativecommons.org/publicdomain/zero/1.0/legalcode> | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name VolumeWheel | |
// @namespace http://rikuba.com/ | |
// @match http://*/* | |
// @match https://*/* | |
// @run-at document-end | |
// @version 0.1 | |
// ==/UserScript== | |
(function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
try { | |
Array.apply(null, {}); | |
return; | |
} catch (e) { } | |
var toString = Object.prototype.toString, | |
arrayType = '[object Array]', | |
_apply = Function.prototype.apply, | |
slice = /*@cc_on @if (@_jscript_version <= 5.8) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var bind = Function.prototype.bind; | |
var slice = Array.prototype.slice; | |
Object.defineProperty(Function.prototype, 'new', { | |
value: function _new() { | |
return new (bind.apply(this, [null].concat(slice.call(arguments)))); | |
}, | |
configurable: true, | |
enumerable: false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function.prototype.getName = | |
(function () { return (function foobar() { }).name === 'foobar'; })() | |
? (function () { return function getName() { return this.name; }; })() | |
: (function () { | |
var functionKeywordPattern = (function () { | |
var parts = []; | |
var keyword = 'function'; | |
for (var i = 0; i < 8; ++i) { | |
var ch = keyword.charAt(i); | |
var code = keyword.charCodeAt(i); |
NewerOlder