Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

request = require('request')
cheerio = require('cheerio')
iconv = require('iconv-jp')
module.exports = (robot) ->
robot.hear /http(s?):\/\/(.*)/i, (msg) ->
url = msg.match[0]
unless url.match(/\.(png|jpg|jpeg|gif|txt|zip|tar\.bz|js|css)/) # filter out some common files from trying
@teramako
teramako / httpstatus.js
Last active December 14, 2015 00:59
[Vimperator]httpstatus コマンドで、HTTP のステータスコードをすばやくしらべる! 一般的な Web Programmer ならば、HTTP Status code はすべて暗記していると聞きました。 しかし、僕はWeb Programmerではないので、なかなか覚えきれていないので、HTTPのステータスコードをさがすのに便利なツールを用意しました。
/**
* @see http://blog.64p.org/entry/2013/02/21/121830
* @see http://mattn.kaoriya.net/software/vim/20130221123856.htm
* @see http://yuroyoro.hatenablog.com/entry/2013/02/21/144004
* @see http://ymotongpoo.hatenablog.com/entry/2013/02/21/160646
* @see http://d.hatena.ne.jp/syohex/20130221/1361423585
* @see http://blog.livedoor.jp/dankogai/archives/51855038.html
* @see http://d.hatena.ne.jp/hasegawayosuke/20130221
* @see https://gist.github.com/tk0miya/5002917
* @see http://app2641.hatenablog.com/entry/2013/02/21/161928
@teramako
teramako / page-nav.js
Last active December 18, 2015 16:59 — forked from anonymous/page-nav.js
[Vimperator]ページ内の見出し的要素へジャンプする奴
"use strict";
/**
* :nav コマンドでテキトウに補完を使いましょう
* :nnoremap v :nav<Space> とかすると快適かも
*/
var selector = "h1, h2, h3, h4, main, [role=main], [role=navigation], [role=search]";
var cache = new WeakMap;
function getJumpList (force) {
@azu
azu / .tigrc
Created January 28, 2014 07:18
tig + git browse-remote
bind main o !@git browse-remote %(commit)
bind diff o !@git browse-remote %(commit)
bind log o !@git browse-remote %(commit)
@anekos
anekos / read-code-of-commands-or-mappings.vim
Created March 9, 2012 10:18
Vimperator でコマンドやマッピングのコードを見てみる。
" コマンド
:echo commands.get('コマンド名').action
" マッピング
:echo mappings.get(modes.NORMAL, '<C-n>').action
@aseemk
aseemk / coffeescript-updates.md
Last active December 2, 2017 20:22
CoffeeScript upcoming changes.

CoffeeScript 1.7 is shaping up to be a pretty kick-ass release with significant improvements. Here are the ones I'm most excited about, in order of my own excitement.

Parentheses-free chaining

jashkenas/coffeescript#3263

Years of being wished for, finally granted!

@hackable
hackable / expressjs-base64-image.js
Created October 18, 2011 05:21
Node.js base64 encode a downloaded image for use in data URI
express = require("express")
request = require("request")
BufferList = require("bufferlist").BufferList
app = express.createServer(express.logger(), express.bodyParser())
app.get "/", (req, res) ->
if req.param("url")
url = unescape(req.param("url"))
request
uri: url
encoding: 'binary'

どんなゲーム?

名作 Diablo2 に恋焦がれた人たちが作ったゲーム。とにかくトレハン、成長、トレード、って感じ。 ランダム生成のマップで、大量の敵が押し寄せるので、それを高速に殲滅しながら、クエストをこなす。

2012年ぐらいから継続して開発されているが、最近は XBOX One 版と中国語版が成功していて、予算がついて開発が加速している。

基本無料。ただしスタッシュ(倉庫)が無課金だとちょっと狭い。慣れてきたら1000円ぐらい払ってスタッシュを拡張するのをおすすめするが、とりあえず1キャラ遊ぶ程度だと、無課金でも問題ない。倉庫以外の課金要素は、性能に関係ないアバターのみ。

難易度は結構高めで、育成失敗すると終盤で進められなくなることはある。

@mizchi
mizchi / webpack.config.js
Last active December 6, 2019 21:20
minimum webpack with babel
/*
yarn init -y
yarn add webpack webpack-cli webpack-serve html-webpack-plugin -D
yarn add babel-loader@^8.0.0-beta @babel/core @babel/preset-env -D
echo '{ "presets": ["@babel/preset-env"] }' > .babelrc
*/
const HtmlPlugin = require("html-webpack-plugin");
module.exports = {
mode: process.env.NODE_ENV || "development",
@anekos
anekos / kindle-cloud-reader.js
Last active March 8, 2020 19:46
Kindle Cloud Reader Key Mapper for Vimperator
/* NEW BSD LICENSE {{{
Copyright (c) 2014, anekos.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,