Skip to content

Instantly share code, notes, and snippets.

View adachic's full-sized avatar

Akinori ADACHI adachic

  • Individual
  • Shinjuku
View GitHub Profile
@mahm
mahm / hatebu2pinboard.rb
Created May 9, 2012 07:24
はてなブックマークのエクスポートデータをPinboardにインポートする
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
#
# ** Hatebu2Pinboard **
# はてブのAtomエクスポートデータをPinboardにインポートします。
# カレントディレクトリにエクスポートデータ(dump.yml)と、
# Pinboardのユーザ名、パスワードを書いたYAMLファイル(auth.yml)を
# 用意して下さい。
#
# [usage]
@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@j5ik2o
j5ik2o / gist:4093855
Last active October 12, 2015 22:08
Option型(Maybeモナド)の自作
sealed trait MyOption[+A] {
def map[B](f: A => B): MyOption[B] =
if (isEmpty) MyNone else MySome(f(this.get))
def flatMap[B](f: A => MyOption[B]): MyOption[B] =
if (isEmpty) MyNone else f(this.get)
def get: A
@j5ik2o
j5ik2o / gist:5288729
Last active February 7, 2016 03:29
IntelliJ IDEA/Eclipse対応 sbt プロジェクトの作成手順

事前準備

Scala & SBT & gitter8

$ brew install scala sbt giter8

IDE

まず
iCloudログイン
AppStoreで以下をインストール (購入済みタブからまとめてインストールできる)
Xcode
Slack
Sketch
LINE
sourceTree
package com.github.j5ik2o.scalaz
import scalaz._
import Scalaz._
class Request(map: Map[String, Any]) {
def apply(name: String): Any = map(name)
}