2013 Minori Yamashita [email protected]
-- ここにあなたの名前を追記 --
# | |
# 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 |
/* | |
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 |
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._ |
2013 Minori Yamashita [email protected]
-- ここにあなたの名前を追記 --
All you need to do is, | |
In your SBT Dependencies add, | |
"de.neuland" % "jade4j" % "0.3.11" from "https://raw.github.com/neuland/jade4j/master/releases/de/neuland/jade4j/0.3.11/jade4j-0.3.11.jar", | |
"com.googlecode.concurrentlinkedhashmap" % "concurrentlinkedhashmap-lru" % "1.3.1", | |
"org.apache.commons" % "commons-jexl" % "2.1.1" | |
You need apache libs as Jade4J uses them internally, |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
package main | |
import ( | |
"bufio" | |
"errors" | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"net/url" |
import sbt._ | |
import Keys._ | |
import java.net._ | |
import java.io.File | |
import play.PlayRunHook | |
/* | |
Grunt runner should be in project directory to be picked up by sbt | |
*/ | |
object Grunt { |
import scala.concurrent._ | |
import ExecutionContext.Implicits.global | |
import android.util.Log | |
import android.widget.TextView | |
class UIDemoActivity extends Activity { | |
override def onCreate(bundle: Bundle) { | |
super.onCreate(bundle) | |
val tv = new TextView(this) |
val printUpdatedAllModules = TaskKey[Unit]("printUpdatedAllModules") | |
printUpdatedAllModules := { | |
update.value.allModules foreach println | |
} | |
libraryDependencies += "com.typesafe.play" %% "play-json" % "2.2.2" |