Skip to content

Instantly share code, notes, and snippets.

View rhysd's full-sized avatar
🐕
Fixing an off-by-wan error

Linda_pp rhysd

🐕
Fixing an off-by-wan error
View GitHub Profile
diff --git a/gitconfig b/gitconfig
index 660103e..8c7682d 100644
--- a/gitconfig
+++ b/gitconfig
@@ -52,3 +52,5 @@
email = lin90162@yahoo.co.jp
[push]
default = simple
+[github]
+ user = rhysd
#define BOOST_SPIRIT_USE_PHOENIX_V3
#define BOOST_RESULT_OF_USE_DECLTYPE 1
// Include {{{
#include <string>
#include <memory>
#include <exception>
#include <vector>
#include <algorithm>
#include <utility>
def f
return
n = 42
ensure
puts n
end
f
; ModuleID = 'main_module'
%String = type { i32, i32, i8 }
%MatchData = type { i32, i32*, %"Nil | PCRE::Pcre", %String*, i32, i32*, i32 }
%"Nil | PCRE::Pcre" = type { i32, [2 x i32] }
%Regex = type { i32, %String*, i8*, i32 }
%"Int32 | Nil" = type { i32, [1 x i32] }
%Time = type { i32, double }
%"struct.C::TimeSpec" = type { i32, i32 }
%"struct.ABI::UnwindException" = type { i32, i32, i64, i64, i64, i32 }
diff --git a/gitconfig b/gitconfig
index fa48b77..c44249e 100644
--- a/gitconfig
+++ b/gitconfig
@@ -12,9 +12,11 @@
cmv = commit -v
cmm = commit -m
cma = commit --amend
+ cmav = commit --amend -v
cl = clone
@rhysd
rhysd / if.dcs
Last active August 29, 2015 13:59
func f
var if := true
if if if then if else if
if = if if if
end
end
func main
f()
end
<title>~/Github/vim-dachs/syntax/test.dcs.html</title>
diff --git a/vimrc b/vimrc
index 22deaf5..b7211dc 100644
--- a/vimrc
+++ b/vimrc
@@ -1070,6 +1070,12 @@ NeoBundleLazy 'rbtnn/puyo.vim', {
\ }
\ }
+NeoBundleLazy 'thinca/vim-threes', {
+ \ 'autoload' : {
def hoge
if rand(1) == 0
42
else
"hoge"
end
end
@rhysd
rhysd / thought_experiment.cpp
Last active August 29, 2015 14:01
enable to return value by visitor
#include <memory>
#include <string>
#include <type_traits>
#include <cassert>
#include <iostream>
#include <boost/any.hpp>
// visitor のコンストラクタで visit してはどうか