Skip to content

Instantly share code, notes, and snippets.

@tanacasino
tanacasino / play2-src-reading.md
Created December 7, 2016 07:55
play2-src-reading
<style> pre { font-size: 30px;
@tanacasino
tanacasino / Routes.scala
Created December 7, 2016 06:52
play-routes-compiler が生成した Routes クラス
// @GENERATOR:play-routes-compiler
// @SOURCE:/Users/tomofumi.tanaka/Downloads/play-scala/conf/routes
// @DATE:Mon Dec 05 20:35:14 JST 2016
package router
import play.core.routing._
import play.core.routing.HandlerInvokerFactory._
import play.core.j._
@tanacasino
tanacasino / Animal.scala
Created December 7, 2014 12:33
コップ本のtraitのメソッド解決順序の話
class Animal
trait Furry extends Animal
trait HasLegs extends Animal
trait FourLegged extends HasLegs
class Cat extends Animal with Furry with FourLegged
@tanacasino
tanacasino / GitBucketAPIPlan.md
Last active March 2, 2018 15:16
GitBucket API Plan

GitBucket API Plan

Goal

Provides GitHub API v3 compatibility and support for popular ecosystem tools.

Steps

@tanacasino
tanacasino / pulls.json
Created October 13, 2014 13:37
pulls.json
[
{
"url": "https://api.github.com/repos/tanacasino/test/pulls/6",
"id": 22601309,
"html_url": "https://github.com/tanacasino/test/pull/6",
"diff_url": "https://github.com/tanacasino/test/pull/6.diff",
"patch_url": "https://github.com/tanacasino/test/pull/6.patch",
"issue_url": "https://api.github.com/repos/tanacasino/test/issues/6",
"number": 6,
"state": "open",
@tanacasino
tanacasino / fix-458.patch
Created August 4, 2014 15:30
gitbucket-fix-458
diff --git a/src/main/twirl/helper/activities.scala.html b/src/main/twirl/helper/activities.scala.html
index 980eaf5..c85dd8c 100644
--- a/src/main/twirl/helper/activities.scala.html
+++ b/src/main/twirl/helper/activities.scala.html
@@ -22,7 +22,7 @@
case "fork" => simpleActivity(activity, "activity-fork.png")
case "push" => customActivity(activity, "activity-commit.png"){
<div class="small activity-message">
- {activity.additionalInfo.get.split("\n").reverse.take(4).zipWithIndex.map{ case (commit, i) =>
+ {activity.additionalInfo.get.split("\n").reverse.filter(_ matches "[0-9a-z]{40}:.*").take(4).zipWithIndex.map{ case (commit, i) =>
@tanacasino
tanacasino / ag-install-centos65
Last active August 29, 2015 14:01
ag-install-centos65
sudo yum -y groupinstall "Development Tools"
sudo yum -y install pcre-devel xz-devel
git clone https://github.com/ggreer/the_silver_searcher
cd the_silver_searcher
./build.sh
mkdir -p ~/bin/
ln -sf `pwd`/ag ~/bin/
sudo yum -y update
sudo reboot
sudo yum -y install man git
sudo yum -y groupinstall "Development Tools"
git clone https://github.com/creationix/nvm.git ~/.nvm
source ~/.nvm/nvm.sh
nvm ls-remote
nvm install 0.10
nvm use 0.10
diff --git a/http.c b/http.c
index 3447945..8374c33 100644
--- a/http.c
+++ b/http.c
@@ -44,6 +44,7 @@ static long curl_low_speed_limit = -1;
static long curl_low_speed_time = -1;
static int curl_ftp_no_epsv;
static const char *curl_http_proxy;
+static const char *curl_http_noproxy;
static const char *curl_cookie_file;
[http]
sslVerify = false