Skip to content

Instantly share code, notes, and snippets.

View daneko's full-sized avatar

Koichi Akatsuka daneko

View GitHub Profile
@xuwei-k
xuwei-k / scalaz-stream.md
Last active June 24, 2021 01:09
Scalaz-Streamの基本的なクラスや概念まとめ

Scalaz-Streamの基本的なクラスや概念まとめ

  • versionは0.7a

scalaz-streamが依存してるライブラリ内のclass

  • scalaz-streamではなくscalaz-concurrentにあるクラス
  • scalaz-streamは、これと Task にかなり依存してるので、まずはこれらを理解することが重要
@wbroek
wbroek / genymotionwithplay.txt
Last active February 12, 2024 03:22
Genymotion with Google Play Services for ARM
NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
@seratch
seratch / getting_started_ja.md
Last active June 5, 2018 02:56
Skinny Framework 1.0 Introduction in Japanese

NOTICE: This is just a draft of Skinny framework introduction (written in Japanese for now). English version will be published soon.

Skinny Framework とは

Logo

https://github.com/seratch/skinny-framework

Skinny Framework は Scala のフルスタックな Web アプリケーション開発フレームワークです。2014/03 を目処に最初の安定バージョン 1.0.0 をリリースするべく精力的に開発しています。(追記: 2014/03/28 に 1.0.0 がリリースされました)

@potato2003
potato2003 / 1.scala
Last active December 24, 2015 12:39
implicit def xxx(implicit yyy) が 暗黙的パラメータと理解するために試した。 参考: http://d.hatena.ne.jp/gakuzo/20111204/1323007376
class ClassA(val label: String)
implicit val arg1:ClassA = new ClassA("ぼくは暗黙的パラメータ") // implicit def foo のための暗黙的パラメータ定義
implicit def foo(implicit a: ClassA):String = { // 引数の implicit 消すと 暗黙的パラメータ見つからないってエラーになる
println("fooだよ")
a.label
}
def bar()(implicit argStr:String):String = {
@ShinsukeYokota
ShinsukeYokota / fluentdでapacheのログ集約
Created December 5, 2012 12:09
fluentdでapacheのログ集約
■fluentdでapacheのログ集約
複数台あるAPIサーバのログをADMサーバのmongodbに保存する
ホスト:AWS/EC2インスタンス
OS:ScientificLinux6.1
【AWS】
## EC2のセキュリティグループの設定変更
@mokemokechicken
mokemokechicken / Chef.md
Created November 9, 2012 05:45
Chef勉強会下書き

Chefとは

  • インフラ・ミドルウェア・アプリケーション構成の設定・管理フレームワーク
  • CUIコマンドベースでなく、Rubyベースで記述する
  • 一度書けば、誰でも実行できたり、再利用できるのが嬉しい
  • 類似フレームワークとしては、Puppetが有名

Chefのメリット

@rosylilly
rosylilly / gist:3401612
Created August 20, 2012 06:40
先輩と覚える HTTP ステータスコード

先輩に学ぶ HTTP Status Code

超雑にまとめました。修正してください。

登場人物

  • アプリケーション先輩: いつも忙しい。横に広がるのが得意(デブじゃない)。
  • 後輩: 頼んでばっかしで役に立たない。
  • サーバー先輩: アプリケーション先輩と仲がいい。Unix Socket でつながるくらい仲良し。
  • プロクシ先輩: アプリケーション先輩とかサーバー先輩と後輩の間を取り持って代わりに伝えたりしてくれる。たまに勝手にレスポンスを書き換える。
@jeroenr
jeroenr / deploy.rb
Created May 22, 2012 15:20
Deploying play2 application with capistrano
set :deploy_to, "/usr/share/my-app"
namespace :play do
task :setup do
run "mkdir -p #{deploy_to}"
upload "my-app/start.sh", "#{deploy_to}/start.sh", :mode => '755', :via => :scp
upload "my-app/stop.sh", "#{deploy_to}/stop.sh", :mode => '755', :via => :scp
end
task :deploy do