Skip to content

Instantly share code, notes, and snippets.

@ebith
ebith / steam.js
Created May 31, 2014
VimperatorプラグインなSteamクライアント
View steam.js
// 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 / startup.ps1
Created Aug 29, 2014
5秒後に同階層以下のショートカットファイル(*.lnk)を起動するPowerShellスクリプト
View startup.ps1
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 / bf4friends.coffee
Created Sep 12, 2014
Battlefield4のフレンドがゲームを開始したらHubotで通知する
View bf4friends.coffee
# Description:
# Battlefield4のフレンドがゲームを開始したら通知する
#
# Dependencies:
# "request": "^2.42.0"
# "ws": "^0.4.32"
#
# Configuration:
# HUBOT_ORIGIN_EMAIL
# HUBOT_ORIGIN_PASS
@ebith
ebith / gyazo-server.lua
Created Sep 25, 2014
lua-nginx-moduleで動くGyazoServer
View gyazo-server.lua
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 / index.html
Last active Aug 29, 2015
新・世界樹の迷宮2 ファフニールの騎士 QRコード
View index.html
<!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 / 3DS.markdown
Last active Aug 29, 2015
持ってるゲームのリスト
View 3DS.markdown
  • スーパーロボット大戦UX
  • ゼルダの伝説 神々のトライフォース2
  • ドラゴンクエストVII
  • ファイアーエムブレム 覚醒
  • ブレイブリーセカンド
  • ブレイブリーデフォルト
  • メタルマックス4
  • モンスターハンター4G
  • 世界樹と不思議のダンジョン
  • 世界樹の迷宮IV
View yaopen.js
(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%'
},
View sitesearch.js
commands.addUserCommand(
['sitesearch'],
'Search in this site',
function (args) {
let url = window.content.location.hostname;
[
/d\.hatena\.ne\.jp/,
/www\d+\.atwiki\.jp/,
/wikiwiki\.jp/,
].forEach(function(r){
@ebith
ebith / index.html
Created Sep 3, 2015
DQ8の錬金釜レシピを検索する
View index.html
<!DOCTYPE html><html lang="ja"><head><meta charset="utf-8"><title>錬金釜レシピ 逆引き検索 (ドラゴンクエストVIII 空と海と大地と呪われし姫君)</title><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.css"><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/datatables/1.10.9/css/jquery.dataTables.min.css"><script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script><script src="//cdnjs.cloudflare.com/ajax/libs/datatables/1.10.9/js/jquery.dataTables.min.js"></script><script src="main.js"></script><style>.cloak{color:#fff} .page-header{text-align:center} .footer{text-align: right}</style></head><body><div class="page-header"><h1>錬金釜レシピ 逆引き検索</h1><label id="mode"><input type="checkbox"> 正引きモード</label></div><div class="container"><table id="table" class="table"><thead><tr><th>素材</th><th class="info">完成品</th><th>レシピ</th><th class="cloak">レシピ</th><th class="cloak">レシピ</th></tr></thead></table><div class="footer">via <a href="http://www.geocities.jp/dorakie/">http://www.
View ti2gfw.js
/*
require :
GNTP/COM http://github.com/snaka/GNTPCom
mkdir -p C:\bin\limechat2\users\ebith\scripts\files\ti2gfw\
cp default.png C:\bin\limechat2\users\ebith\scripts\files\ti2gfw\default.png
*/
function event::onChannelText(prefix, channel, text)
{