Skip to content

Instantly share code, notes, and snippets.

@raa0121
raa0121 / gist:8973236
Last active August 29, 2015 13:56
VimAdvテスト用コード
require 'open-uri'
data = {}
search = []
command = ["!vac", "vim"]
VAC12=open("https://raw.github.com/osyo-manga/vim_advent_calendar2012/master/README.md").read
descript = VAC12.split("\n")
descript.map{|m| m.match(/\|(.*)\|(.*)\|(.*)\|(?:"(.*)":(.*))?\|/) {|m|
data[m[1]] = {"count" => m[1], "date" => m[2], "author" => m[3], "title" => m[4], "url" => m[5]}
}}
@raa0121
raa0121 / rsense-installer.sh
Last active August 29, 2015 13:56
how-to-build-rsense
sudo jruby -S gem install rspec rake bundler
git clone https://github.com/jruby/jruby-parser
git clone https://github.com/edubkendo/rsense
cd jruby-parser
jruby -S rake
cd ../rsense
git checkout -b parser_port origin/parser_port
patch < fix.patch
ant
$ nvim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Feb 27 2014 11:22:13)
Included patches: 1-160
Compiled by raa0121@isokaze
Huge version without GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_sgr +tag_binary
+arabic +find_in_path -mouse_sysmouse +tag_old_static
+autocmd +float +mouse_urxvt -tag_any_white
-balloon_eval +folding +mouse_xterm -tcl
-browse -footer +multi_byte +terminfo
set nocompatible
scriptencoding utf-8
set fileencodings=utf-8,cp932,euc-jp
set encoding=utf-8
set clipboard+=unnamed
set nrformats-=octal
set timeout timeoutlen=3000 ttimeoutlen=100
set hidden
language: scala
scala:
- 2.10.3-RC3
package io.github.akechi.sugoicraft
import org.scalatest.FunSuite
class HelloSuite extends FunSuite {
test("""traditional "hello, world" from K&R""") {
assert(Hello.greeting === "hello, world")
}
}
let s:V = vital#of('vital')
let s:List = s:V.import('Data.List')
let s:File = s:V.import('System.File')
let s:Cache = s:V.import('System.Cache')
let s:ProMan = s:V.import('ProcessManager')
function! sbtimport#start_sbt()
call s:ProMan.touch('sbt', 'sbt')
endfunction
let s:save_cpo = &cpo
set cpo&vim
let s:V = vital#of('unite_sbtimport')
let s:List = s:V.import('Data.List')
let s:File = s:V.import('System.File')
let s:Cache = s:V.import('System.Cache')
let s:ProMan = s:V.import('ProcessManager')
let s:save_cpo = &cpo
set cpo&vim
let s:V = vital#of('unite_sbtimport')
let s:List = s:V.import('Data.List')
let s:File = s:V.import('System.File')
let s:Cache = s:V.import('System.Cache')
let s:ProMan = s:V.import('ProcessManager')
#!/usr/bin/env python
import sys
from gntp.notifier from GrowlNotifer
def notify(title, message, icon):
n = pynotify.Notification(title, message)
if len(icon) > 0:
f = urllib.urlopen(icon)
data = f.read()