ゆるいメモ。3.2用。
コントローラーentriesに対して、
(require compatibility/mlist) | |
(define (alist->malist alist) | |
(list->mlist (map (lambda (i) (mcons (car i) (cdr i))) alist))) | |
(define (prototype malist) | |
(set! malist (mlist (mcons 'prototype malist))) | |
(define (search malist name t f) | |
(let ((res (massq name malist))) | |
(if (mpair? res) (t res) (f)))) |
NeoBundle 'mattn/zencoding-vim' | |
let g:user_zen_settings = { | |
\ 'indentation' : " ", | |
\ 'lang' : 'ja', | |
\ 'html' : { | |
\ 'filters' : 'html', | |
\ 'snippets' : { | |
\ 'html:5': "<!DOCTYPE html>\n" | |
\ ."<html lang=\"${lang}\">\n" | |
\ ."\t<head>\n" |
#!/bin/sh | |
xdotool search --name "Mozilla Firefox" windowfocus key ctrl+r | |
@-moz-document domain("feedly.com") { | |
img[data-feedly-blocked="small"] { | |
display: inline !important; | |
max-width: none !important; | |
height: auto !important; | |
width: auto !important; | |
} | |
} |
var time_ago_in_words = function(from, to) { | |
to = to ? to : Date.now(); | |
var minutes = (to - from) / 60000; | |
var data = [ | |
[0 , 'less than a minute ago'], | |
[1 , 'a minute ago'], | |
[2 , function(m) {return m.toFixed() + ' minutes ago';}], | |
[45 , 'about 1 hour ago'], |
require 'find' | |
require 'fileutils' | |
require 'shellwords' | |
require 'kconv' | |
Find.find '.' do |path| | |
unless path.isutf8 | |
next | |
end | |
if /^((goog|test)-(phish|malware))|classifier.hashkey/ =~ File.basename(path) |