Skip to content

Instantly share code, notes, and snippets.

View sifue's full-sized avatar

Soichiro Yoshimura sifue

View GitHub Profile
@lobster1234
lobster1234 / pom.xml
Created September 6, 2011 06:34
Maven pom.xml compatible with Scala 2.9.1 with updated dependency versions. This is needed because the archetype:generate for scala-archetype-simple will be 2.8 and the tests will fail with 2.9.1.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.manish</groupId>
<artifactId>scala-simple</artifactId>
<version>1.0-SNAPSHOT</version>
<name>${project.artifactId}</name>
<description>My wonderfull scala app</description>
<inceptionYear>2010</inceptionYear>
<licenses>
<license>
@fivestar
fivestar / services.yml
Created October 21, 2011 10:03
services.yml
services:
foo.logger:
class: Monolog\Logger
arguments:
- foo_log
calls:
- [ pushHandler, [ @foo.logger.handler ] ]
foo.logger.handler:
class: Monolog\Handler\StreamHandler
@j5ik2o
j5ik2o / gist:2156447
Created March 22, 2012 05:41
Play framework 2.0でデーモン化する方法

commons-daemonの依存関係を追加する

次のようにproject/Build.scala を編集する。

object ApplicationBuild extends Build {
    // ...
    val appDependencies = Seq(
      "commons-daemon" % "commons-daemon" % "1.0.10"
    )

// ...

@m-nori
m-nori / README.md
Created January 11, 2013 03:09
VirtualBoxで共有フォルダを作る方法

VirtualBoxで共有フォルダを作る方法

共有フォルダをそのまま作るとシンボリックリンクが貼れなかったりするので、以下の方法で作成する。


VirtualBoxマネージャで共有フォルダを作成

Windows側で以下の操作を行う。

@andelf
andelf / beam_decompile.erl
Created March 19, 2013 03:25
Erlang BEAM file decompile to .erl file
#!/usr/bin/env escript
% -*- mode: erlang -*-
main([BeamFile]) ->
{ok,{_,[{abstract_code,{_,AC}}]}} = beam_lib:chunks(BeamFile,[abstract_code]),
io:fwrite("~s~n", [erl_prettypr:format(erl_syntax:form_list(AC))]).
@japboy
japboy / jade-ftw.md
Last active October 23, 2023 11:18
Jade について。

Jade FTW

こんにちは。今回は現実逃避を兼ねて Jade の素晴らしさをお伝えしたいと思います。

Jade とは何か

[Jade][0] は JST (JavaScript Templates) の一つであり、HTML を書くための[軽量マークアップ言語][1] である [Haml][2] に影響を受けた JavaScript テンプレートエンジンでもあります。

@j5ik2o
j5ik2o / hoge.md
Last active December 17, 2015 12:29
play idea -> IDEAでビルドすると以下のエラー。

playからIDEAプロジェクトを生成する

$ play idea

IDEAでビルドする

scala: Output path ???-api/project/target/scala_2.9.2 is shared between: Module '???-domain-build' production, Module '???-infrastructure-build' production, Module '???-api-build' production, Module '???-domain-build' tests, Module '???-infrastructure-build' tests, Module '???-api-build' tests
Currently external Scala compiler prohibits output path sharing.
Either disable the external build mode or configure separate output paths.
@miyamae
miyamae / gist:5664554
Last active December 17, 2015 19:59
Rails4でwheneverのrunnerジョブを定義する方法

Rails4だとscript/runnerがないので、今のところ(2013/5時点)wheneverのrunnerジョブが使えない。

そこで次のような感じで独自のjob_typeを定義すればok。

job_type :rails4_runner, "cd :path && bin/rails runner -e :environment :task.execute :output"

every 1.day, at: '01:00' do
  rails4_runner 'Tasks::HogeTask'
end
@gakuzzzz
gakuzzzz / 1_.md
Last active August 2, 2023 01:59
Scala の省略ルール早覚え

Scala の省略ルール早覚え

このルールさえ押さえておけば、読んでいるコードが省略記法を使っていてもほぼ読めるようになります。

メソッド定義

def concatAsString(a: Int, b: Int): String = {
  val a_ = a.toString();
  val b_ = b.toString();
@udzura
udzura / tutorial.md
Created June 2, 2014 03:31
Hubot + CoffeeScript ではじめるやわらかプログラミング入門

やわらかプログラミング入門

  • Hubot であそぼう


始めに、地図を描く