Skip to content

Instantly share code, notes, and snippets.

View add20's full-sized avatar

add20 add20

  • Tokyo Japan
View GitHub Profile
@add20
add20 / FuzzyMatch.hs
Last active December 31, 2015 17:39
SublimeTextのfuzzy search algorithmをHaskellで書いてみた。 参考:http://www.quora.com/Algorithms/How-is-the-fuzzy-search-algorithm-in-Sublime-Text-designed
module FuzzyMatch where
import Data.Char (toLower)
-- $setup
-- import Data.List (sort)
-- >>> let searchSet = ["Strings to search, one per line", "diff_match_patch.js", "diff_match_patch_uncompressed.js", "diff_match_patch_test.js"]
-- |
-- >>> Data.List.sort $ fuzzyMatch searchSet "mas"
@add20
add20 / finished.rb
Last active December 16, 2015 12:19 — forked from ttscoff/finished.rb
#!/usr/bin/env ruby
# finished: a quick script to notify you when a command is done using Mountain Lion notifications
# It grabs the current folder as the title and takes one argument as the message
# Example: make && make install && finished "Done compiling" || finished "compiler failed"
#
# Needs the terminal-notifier gem : `gem install terminal-notifier`
# Can alternately be used with the CLI <https://github.com/alloy/terminal-notifier>
# (remove require block below and swap comment lines at the bottom)
require 'rubygems'
@add20
add20 / README.md
Last active December 14, 2015 00:49
Gradleで自動テスト。 LiveReloaderを使うだけ。 Guardなんていらなかったんだ…。