Skip to content

Instantly share code, notes, and snippets.

@vzvu3k6k
vzvu3k6k / checker.js
Created December 18, 2018 18:02
Lists line numbers of code blocks without info string in markdown files
// Lists line numbers of code blocks without info string
// Usage: node checker.js */**/*.md
const fs = require('fs')
const commonmark = require('commonmark')
function* eachCodeBlocks(parsed) {
const walker = parsed.walker()
let event, node
while ((event = walker.next())) {
@vzvu3k6k
vzvu3k6k / .gitignore
Last active February 14, 2017 15:40
A migration helper from Wunderlist to Todoist for node.js
tasks.json
secret.json
### https://raw.github.com/github/gitignore/a98a0444694f30e52fb6eef9aec08e9b5e211a44/Node.gitignore
# Logs
logs
*.log
npm-debug.log*
@vzvu3k6k
vzvu3k6k / Qiita_Code_Number.user.js
Last active February 14, 2017 00:57 — forked from khsk/Qiita_Code_Number.user.js
Qiitaのコードの左側に選択不可能な行番号を追加するユーザースクリプト ref: http://qiita.com/khsk/items/89fc40321f1387829135
// ==UserScript==
// @name Qiita Code Number
// @namespace khsk
// @description コードに選択不可能な行番号を追加する
// @include http://qiita.com/*/items/*
// @include http://qiita.com/*/private/*
// @version 1
// @grant none
// ==/UserScript==
@vzvu3k6k
vzvu3k6k / Gemfile
Last active May 14, 2016 06:34
ATNDの参加者リストからTwitter IDを取り出す
source 'https://rubygems.org'
gem 'oga'
@vzvu3k6k
vzvu3k6k / .gitignore
Last active March 19, 2016 15:33
Use async generators via babel
*.out.js
### https://raw.github.com/github/gitignore/c696ec7b8ca5443513fe4ef0844c07129f6a2c6c/Node.gitignore
# Logs
logs
*.log
npm-debug.log*
# Runtime data
@vzvu3k6k
vzvu3k6k / qiita-fix_table_completion.user.js
Created February 19, 2016 12:24
qiita-fix_table_completion.user.js
// ==UserScript==
// @name Qiita: Fix Table Completion
// @description Disable table completion ({numbers}x{numbers}) when either numbers starts with zero
// @version 1.0
// @match http://qiita.com/*
// @grant none
// @noframes
// @namespace http://vzvu3k6k.tk/
// @license CC0
// ==/UserScript==
@vzvu3k6k
vzvu3k6k / tumblock.user.js
Last active February 17, 2016 08:31 — forked from noromanba/t-um-block.user.js
detox t.umblr.com link on tumblr.com for UserScript
// ==UserScript==
// @name t.um block (googlish)
// @namespace http://noromanba.flavors.me
// @description Hide t.umblr.com link on tumblr.com as Google does in its search result pages
// @match http://*.tumblr.com/*
// @match https://*.tumblr.com/*
// @grant none
// @noframes
// @run-at document-end
// @version 2016.2.13.0
@vzvu3k6k
vzvu3k6k / wikipedia_language_labels.user.js
Last active September 20, 2015 13:24 — forked from maripo/wikipedia_language_labels.user.js
Enhance links to other languages on Wikipedia
// ==UserScript==
// @name Wikipedia Language Labels
// @description Enhance interlanguage links on the sidebar (e.g. Change "Français" to "Étoile (Français)" on https://en.wikipedia.org/wiki/Star )
// @match https://*.wikipedia.org/wiki/*
// @grant none
// @version 2
// @noframes
// ==/UserScript==
// Original: https://gist.github.com/maripo/3925496
@vzvu3k6k
vzvu3k6k / quyo-random_auto_pager.user.js
Last active August 29, 2015 14:11
Quyoでスクロールすると無限にランダムな記事を表示する。
// ==UserScript==
// @name Quyo: Random Auto Pager
// @description スクロールすると無限にランダムな記事を表示する。AutoPagerizeとは連携しない。
// @version 1.2
// @author vzvu3k6k
// @match http://quyo.hatelabo.jp/items/*
// @exclude http://quyo.hatelabo.jp/items/post
// @exclude http://quyo.hatelabo.jp/items/*/edit
// @namespace http://vzvu3k6k.tk/
// @license CC0
class Hoge
def self.hoge
obj = method(__method__).receiver.new
attributes.each do |key|
obj.send("#{key}=", key.to_s + "!!!")
end
p obj
end
def self.attributes