Skip to content

Instantly share code, notes, and snippets.

$ 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
@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
@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]}
}}
Uploading source package... <!DOCTYPE html>
<html>
<head>
<style type="text/css">
html, body, iframe { margin: 0; padding: 0; height: 100%; }
iframe { display: block; width: 100%; border: none; }
</style>
<title>Application Error</title>
</head>
<body>
puts "a"
clang version 3.4 (198054)
Target: i686-pc-mingw32
Thread model: posix
Selected GCC installation:
"C:\LLVM\bin\clang.exe" -cc1 -triple i686-pc-mingw32 -S -disable-free -main-file-name main.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -mconstructor-aliases -target-cpu pentium4 -v -resource-dir "C:\\LLVM\\bin\\..\\lib\\clang\\3.4" --std=c++11 -fdeprecated-macro -fno-dwarf-directory-asm -fdebug-compilation-dir "C:\\cygwin64\\home\\raa0121" -ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-use-cxa-atexit -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-slp -o "C:\\Users\\raa0121\\AppData\\Local\\Temp\\main-193ca5.s" -x c++ main.cpp
clang -cc1 version 3.4 based upon LLVM 3.4 default target i686-pc-mingw32
ignoring nonexistent directory "C:\LLVM\bin\..\lib\clang\3.4/../../../include/c++/4.5.0"
ignoring nonexistent directory "C:\LLVM\bin\..\lib\clang\3.4/../../../include/c++/4.5.0/x86_64-w64-mingw32"
ignoring nonexistent directory "C:\LLVM\bin\..\lib\clang
+++ DodontoFServer.rb 2014-01-07 23:14:25.024080088 +0900
--- DodontoFServer.rb 2013-12-24 22:32:56.000000000 +0900
@@ -2206,7 +2206,7 @@
# "_README.txt" のように _ で始まるファイルは対象外とします
next if(/^_/ === name)
- lines = File.readlines(fileName).join
+ lines = File.readlines(fileName)
params = {}
lines.each do |line|
Binary files DodontoF_WebSet_14300/public_html/DodontoF/DodontoF.swf and DodontoF_WebSet_14301/public_html/DodontoF/DodontoF.swf differ
diff -wb -u -r DodontoF_WebSet_14300/public_html/DodontoF/DodontoFAir.xml DodontoF_WebSet_14301/public_html/DodontoF/DodontoFAir.xml
--- DodontoF_WebSet_14300/public_html/DodontoF/DodontoFAir.xml 2013-12-24 22:32:54.000000000 +0900
+++ DodontoF_WebSet_14301/public_html/DodontoF/DodontoFAir.xml 2013-12-26 22:48:36.000000000 +0900
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/1.5">
<id>com.dodontof.DodontoFAir</id>
- <version>Ver.1.43.00(2013/12/24)</version>
+ <version>Ver.1.43.01(2013/12/26)</version>
@raa0121
raa0121 / env.js
Last active January 1, 2016 20:19
var WshShell = new ActiveXObject("WScript.Shell");
var envlist = WshShell.exec("C:\\Windows\\System32\\cmd.exe /c set")
var i=0;
while (!envlist.StdOut.AtEndOfStream){
WScript.Echo(envlist.StdOut.readLine());
i++
}
add_executable(hello hello.cpp)
set(CMAKE_CXX_COMPILER "/usr/bin/c++")
set(CMAKE_CXX_FLAGS "-g -pedantic -Wall -std=c++11")
cmake_minimum_required(VERSION 2.8)
#------------------------------------------------------------------------------
# Required CPM Setup - no need to modify - See: https://github.com/iauns/cpm
#------------------------------------------------------------------------------
set(CPM_DIR "${CMAKE_CURRENT_BINARY_DIR}/cpm-packages" CACHE TYPE STRING)
find_package(Git)