2013 Minori Yamashita [email protected]
-- ここにあなたの名前を追記 --
2013 Minori Yamashita [email protected]
-- ここにあなたの名前を追記 --
| import java.io.File | |
| import language.experimental.macros | |
| import scala.reflect.macros.Context | |
| object Macros { | |
| def LINE: Int = macro lineImpl | |
| def lineImpl(c: Context): c.Expr[Int] = { | |
| import c.universe._ |
| /* | |
| Copyright 2018 Viktor Klang | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software |
| # | |
| # Author:: Christopher Peplin (<[email protected]>) | |
| # Copyright:: Copyright (c) 2010 Bueda, Inc. | |
| # License:: Apache License, Version 2.0 | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| // | |
| // NSArray+IndexHelper.h | |
| // C_POS | |
| // | |
| // Created by Tomohisa Takaoka on 6/14/12. | |
| // Copyright (c) 2012 __MyCompanyName__. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |
| object RetryUtil { | |
| case class RetryException(throwables: List[Throwable]) extends Exception | |
| def retry[T](retryLimit: Int, retryInterval: Int, shouldCatch: Throwable => Boolean)(f: => T): T = { | |
| // @annotation.tailrec | |
| def _retry( errors: List[Throwable], f: => T):T = { | |
| try { | |
| f | |
| } catch { |
| #!/usr/bin/env ruby | |
| # Add your gems here | |
| # | |
| gemfile_contents = <<-EOF | |
| source "http://rubygems.org" | |
| gem "fog" | |
| gem "yajl-ruby" | |
| EOF |