Skip to content

Instantly share code, notes, and snippets.

View yosisa's full-sized avatar

Yoshihisa Tanaka yosisa

View GitHub Profile
@yosisa
yosisa / .lsp-docker
Last active December 13, 2023 23:45
Enable lsp-docker per project basis.
docker/image:name
@yosisa
yosisa / Dockerfile
Created February 9, 2020 15:01
pyls docker image
FROM python:3.8-buster
RUN pip install python-language-server[all]
RUN printf '#!/bin/bash \
\npip install . \
\npyls \
\n' >/start.sh && chmod +x /start.sh
WORKDIR /work
package main
import (
"bytes"
"encoding/json"
"fmt"
r "github.com/dancannon/gorethink"
"io/ioutil"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
@yosisa
yosisa / file0.go
Created March 29, 2014 05:55
groupcache‎ で組み込み型分散キャッシュ ref: http://qiita.com/yosisa/items/4980559f328fb31c3a8d
package main
import (
"encoding/json"
"github.com/codegangsta/martini"
"github.com/golang/groupcache"
"net/http"
"os"
"time"
)
@yosisa
yosisa / screen.rb
Created November 18, 2012 12:04
Formula for screen-git
require 'formula'
class Screen < Formula
homepage 'http://www.gnu.org/software/screen'
url 'http://ftpmirror.gnu.org/screen/screen-4.0.3.tar.gz'
mirror 'http://ftp.gnu.org/gnu/screen/screen-4.0.3.tar.gz'
version '4.00.03'
sha1 '7bc6e2f0959ffaae6f52d698c26c774e7dec3545'
head 'git://git.savannah.gnu.org/screen.git', :branch => 'master'
@yosisa
yosisa / python30.rb
Created February 28, 2012 06:17
Formula for python 3.0
# Formula for python 3.0 based on https://github.com/adamv/homebrew-alt/blob/master/versions/python31.rb
require 'formula'
# Was a Framework build requested?
def build_framework?; ARGV.include? '--framework'; end
# Are we installed or installing as a Framework?
def as_framework?
(self.installed? and File.exists? prefix+"Frameworks/Python.framework") or build_framework?
end
@yosisa
yosisa / python25.rb
Created February 28, 2012 04:14
Formula for python 2.5
require 'formula'
<<-COMMENTS
fork of https://github.com/adamv/homebrew-alt/blob/master/versions/python25.rb
Options
-------
There are a few options for customzing the build.
--universal: Builds combined 32-/64-bit Intel binaries.
--framework: Builds a "Framework" version of Python.
@yosisa
yosisa / fix-python-2.5.6-svnversion-issue.patch
Created February 28, 2012 03:57
support building python 2.5 with subversion 1.7
# backport from http://hg.python.org/cpython/rev/150986ab3db2/
# support building with subversion 1.7 #6094
diff --git a/Makefile.pre.in b/Makefile.pre.in
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -458,7 +458,7 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \
$(SIGNAL_OBJS) \
$(MODOBJS) \
$(srcdir)/Modules/getbuildinfo.c
@yosisa
yosisa / wanderlust.rb
Created July 30, 2011 23:24
formula for emacs wanderlust
require 'formula'
class Wanderlust < Formula
url 'http://www.jpl.org/elips/wl/wl-2.14.0.tar.gz'
homepage 'http://www.gohome.org/wl/'
md5 '60b94c9796ee40b6585ef19a509c90df'
head 'cvs://:pserver:anonymous@cvs.m17n.org:/cvs/root:wanderlust', :using => :cvs
depends_on 'emacs'
depends_on 'apel'
@yosisa
yosisa / flim.rb
Created July 30, 2011 23:22
formula for emacs flim
require 'formula'
class Flim < Formula
url 'http://www.kanji.zinbun.kyoto-u.ac.jp/~tomo/comp/emacsen/lisp/flim/flim-1.14/flim-1.14.9.tar.gz'
homepage 'http://kanji.zinbun.kyoto-u.ac.jp/~tomo/elisp/FLIM/'
md5 '3dca42e2a1af4b089bb3f177bcf9321b'
depends_on 'emacs'
depends_on 'apel'