Skip to content

Instantly share code, notes, and snippets.

@ebith
ebith / yaopen.js
Last active August 29, 2015 14:22
(function() {
var sites, _ref;
sites = ((_ref = liberator.globalVariables.yaopen) != null ? _ref.sites : void 0) || {
tts: {
url: 'http://translate.google.com/translate_tts?tl=en&q=%ARG%'
},
steamdb: {
url: 'https://steamdb.info/search/?a=app&q=%ARG%'
},
@ebith
ebith / 3DS.markdown
Last active August 29, 2015 14:19
持ってるゲームのリスト
  • スーパーロボット大戦UX
  • ゼルダの伝説 神々のトライフォース2
  • ドラゴンクエストVII
  • ファイアーエムブレム 覚醒
  • ブレイブリーセカンド
  • ブレイブリーデフォルト
  • メタルマックス4
  • モンスターハンター4G
  • 世界樹と不思議のダンジョン
  • 世界樹の迷宮IV
@ebith
ebith / index.html
Last active August 29, 2015 14:11
新・世界樹の迷宮2 ファフニールの騎士 QRコード
<!DOCTYPE html><html><head><meta charset="utf-8"><title>新・世界樹の迷宮2 ファフニールの騎士 QRコード</title><style>.container{display:flex;flex-wrap:wrap}ul{list-style:none;margin-top:0}.lv10:before{content:'\2605'}.lv1:before{content:'1'}.lv2:before{content:'2'}.lv3:before{content:'3'}.lv4:before{content:'4'}.lv5:before{content:'5'}.lv6:before{content:'6'}.lv7:before{content:'7'}.lv8:before{content:'8'}.lv9:before{content:'9'}</style></head><body><div class="container"><div class="item alchemist"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQsAAAELAQAAAADmLp7/AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAABJ0AAASdAHeZh94AAAAAmJLR0QAAd2KE6QAAAaNSURBVGje7dqxrew8DgXgYzBQ5mmAgNpQppasBmyrAbslZWpDgBqQMwWCzwZz73sbLLCJgN3gHzj8AnmGpEhiwP/2KfiH/K9JAzZT72SbGbvR1cvlFa4EViYs88jDsRnb/IBByGP39YJu3r6uLJnPRJJ09/amnIans6cZq7GR9skaMsJUcnR7euyQ09nXlxW6mhI4n2yop1FALpSQAGAFlkTOJRyBgNNABXhnibRP16Xz/vsDTCANCFn/8/M3pCYQkg/HDl1oX4dPrpFyJ/vk+m9JMoE0UzbDF2ODfjKOLifkRTkoJ2ycR9jZDO/MZmzzjEmXXk9X4IS5
@ebith
ebith / gyazo-server.lua
Created September 25, 2014 22:24
lua-nginx-moduleで動くGyazoServer
local upload = require "resty.upload"
math.randomseed(ngx.time())
local function random_string(digit)
local alphabet = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}
local result = ""
repeat
result = result .. alphabet[math.random(36)]
digit = digit - 1
until digit == 0
@ebith
ebith / bf4friends.coffee
Created September 12, 2014 12:49
Battlefield4のフレンドがゲームを開始したらHubotで通知する
# Description:
# Battlefield4のフレンドがゲームを開始したら通知する
#
# Dependencies:
# "request": "^2.42.0"
# "ws": "^0.4.32"
#
# Configuration:
# HUBOT_ORIGIN_EMAIL
# HUBOT_ORIGIN_PASS
@ebith
ebith / startup.ps1
Created August 29, 2014 00:11
5秒後に同階層以下のショートカットファイル(*.lnk)を起動するPowerShellスクリプト
Sleep 5
Set-Location (Split-Path ( & { $MyInvocation.ScriptName } ) -Parent)
Get-ChildItem -Recurse -include '*.lnk' -exclude 'startup.ps1.lnk' | ForEach-Object {
Invoke-Item $_.FullName
}
@ebith
ebith / steam.js
Created May 31, 2014 12:57
VimperatorプラグインなSteamクライアント
// Generated by CoffeeScript 1.7.1
(function() {
var apiKey, request, setup, steamId, subCommands;
apiKey = liberator.globalVariables.steam_api || 'E912B5192623C96289A8EA2322E501DB';
if (!liberator.globalVariables.steam_id) {
return liberator.echoerr('steam: need steam id');
} else {
steamId = liberator.globalVariables.steam_id;
@ebith
ebith / iPhone5sInstalledPackages.md
Last active January 2, 2016 22:29
iPhone 5s, iOS 7.0.4

Installed packages

  • Action Menu
  • Action Menu Plus Pack
  • Activator
  • ActivityAction for Action Menu
  • afc2add
  • AlwaysClear
  • AppLinks
  • Ask Assistant
  • AskToCall
@ebith
ebith / SPDY-indicator.js
Last active December 19, 2015 05:39
SPDY使ってたらステータスラインに⚡を表示するプラグイン
(function(){
e = document.createElement('label');
e.id = 'liberator-status-spdy';
e.style.fontWeight = 'bold'
document.getElementById('liberator-status').appendChild(e);
statusline.addField('spdy', 'The currently SPDY status', 'liberator-status-spdy', function (node, state) {
if (state) {
node.value = '\u26A1';
diff -r 20ce96a7a44f common/content/base.js
--- a/common/content/base.js Thu May 30 23:32:20 2013 +0900
+++ b/common/content/base.js Mon Jul 01 11:50:38 2013 +0900
@@ -67,7 +67,7 @@
})();
if (isinstance(obj, [HTMLCollection, NodeList]))
return (node for (node of obj));
- if (obj instanceof NamedNodeMap)
+ if (obj instanceof MozNamedAttrMap)
return (function () {