Skip to content

Instantly share code, notes, and snippets.

View masatomo's full-sized avatar

Masatomo Nakano masatomo

View GitHub Profile
@masatomo
masatomo / gist:985082
Created May 22, 2011 01:29
fix bulkloader.py to dump multiple Kinds
--- bulkloader.py.org 2011-05-22 02:27:56.000000000 +0100
+++ bulkloader.py 2011-05-22 02:21:17.000000000 +0100
@@ -3121,7 +3121,7 @@
"""
self.app_id = arg_dict['application']
self.post_url = arg_dict['url']
- self.kind = arg_dict['kind']
+ self.kind = ParseKind(arg_dict['kind'])
self.batch_size = arg_dict['batch_size']
self.input_generator_factory = input_generator_factory
feature_branch() {
if [ "${1}" = "" ]; then
echo "${0} <new feature branch name>"
return
fi
branch_name="`date '+%d%m%y'`_${1}"
git co -b ${branch_name} master
git push
git branch --set-upstream ${branch_name} origin/${branch_name}
diff --git a/spec/functional/embedded_document_spec.rb b/spec/functional/embedded_document_spec.rb
index 22112d5..166eefe 100644
--- a/spec/functional/embedded_document_spec.rb
+++ b/spec/functional/embedded_document_spec.rb
@@ -9,6 +9,7 @@ describe "EmbeddedDocument" do
@pet_klass = EDoc('Pet') do
key :name, String
+ key :flag, Boolean
end
Autodoc.configuration.template = <<-EOF
## <%= method %> <%= path %>
<%= description %>
<%= parameters_section %>
### request
```
<%= method %> <%= path %>
```
<%= request_body_section %>
### response
@masatomo
masatomo / gist:7942405
Last active December 31, 2015 05:39
a bookmarklet to open an issue based on the current issue.
javascript: (function() { var urls = window.location.href.split("/") ; open('https://github.com/' + urls[3] + '/' + urls[4] + '/issues/new?body=' + encodeURIComponent("See #" + urls.pop())) })();
@masatomo
masatomo / github-url.el
Last active December 31, 2015 09:58 — forked from dagezi/github-url.el
Create a url to github from your local code.
moved to https://github.com/quipper/github-url.el

duplicate issue

javascript: (function() { var urls = window.location.href.split("/") ; open('https://github.com/' + urls[3] + '/' + urls[4] + '/issues/new?body=' + encodeURIComponent("See " + window.location)) })();

hide comments (show only references)

javascript: $(".discussion-bubble").not(".discussion-reference").hide();
@masatomo
masatomo / gist:983a84bad9671dc29213
Last active February 28, 2018 08:49
How to use MongoDB 2.6.x on CircleCI (circle.yml)
dependencies:
cache_directories:
- mongodb-linux-x86_64-2.6.4
pre:
- if [[ ! -d mongodb-linux-x86_64-2.6.4 ]]; then wget http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.6.4.tgz && tar xvzf mongodb-linux-x86_64-2.6.4.tgz; fi
- sudo /etc/init.d/mongodb stop
- sudo cp mongodb-linux-x86_64-2.6.4/bin/* /usr/bin
- sudo /etc/init.d/mongodb start
@masatomo
masatomo / quipper-cto-1.md
Last active March 5, 2016 12:59
CTOより 第1回 「Quipperの今」

これはなに

なんとなく始めてみた短期集中のQuipperのCTOブログ。リクルートグループに入り、ますます日本での活動が増えているQuipperなので、CTOとして、開発、プロダクト、サービス、チームに関わることを書いていこうと思っている。今回は、第1回ということで、Quipperの現状について書いてみようと思う。

最近のQuipper関連記事

まず、最近、世の中に出たQuipperについての記事を。

@masatomo
masatomo / quipper-cto-2.md
Last active May 4, 2022 00:43
CTOより 第2回 「Quipper開発チームに入って欲しい人」

前回、現在のQuipperの状況みたいのを書いたが、今回は、普段CTOとして、どういうことを意識して開発チームを作っているか、どういう開発チームになって欲しいと思っているか、というのを書いてみたいと思う。

この辺り、自分自身の経験からくる「好み」とか「美学」みたいなものが強めな部分でもあるので、表に出すのはなかなか勇気がいるが、co-founder/CTOである自分のそういうところが、開発チームのカルチャーに当然影響しているし、一緒に働くことになる人ととはカルチャーのマッチがとても大事だと思っているので出してみる。

まず、以前、社内でなんとなく書いた文章があるのでそのまま出してみる。これは開発者の採用活動に当たり、どんな人が欲しいと思っているか率直に書いたものである。

以下、「開発者」と書いてある部分は、Web開発者/iOS開発者/Android開発者/デザイナー/インフラ等の人達を指している。