sbt -Dsbt.ivy.home=/your/local/path/.ivy
Then the dependencies and the other files downloaded for sbt will be stored in the cache
folder of the new location.
e.g.)
Run the following command to create ~/.ssh
folder if it doesn't already exist and set the right access permission.
{ { { mkdir ~/.ssh && echo "No ~/.ssh found so just created" } || { echo "~/.ssh already exists"; false } } ; chmod 700 ~/.ssh }
Once done, please check if you have the folder with the right access permission.
This is a modified version of GitHub Wide. I didn't write it entirely but modified a bit.
Change Applies to
to URLs matching the regexp
and put the following pattern.
https://github.com/[^/]+/[^/]+/(((wiki|issues)([?/][^/]*)*)|(pull/[0-9]+(([\/])((?!files).)*)?))
curl https://raw.githubusercontent.com/Kevin-Lee/GitHub-Wikifier/master/pre-commit > .git/hooks/pre-commit; | |
chmod +x .git/hooks/pre-commit; |
.gist .line-numbers { | |
line-height: 1.2; | |
} |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
import java.util.stream.Stream; | |
import static java.util.stream.Collectors.joining; | |
/** |
Copyright 2015 Lee, Seong Hyun (Kevin) | |
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 scala.language.implicitConversions | |
object Test extends App { | |
case class SomethingElse(value: String) | |
implicit class ToSomethingElse(val value: String) { | |
def toSomethingElse = SomethingElse("###" + value) | |
} |
var logger = console ? console : { | |
"log": function() { | |
// It does nothing. | |
} | |
}; | |
/** | |
* Number.prototype.format(n, x, s, c) | |
* | |
* @param integer n: length of decimal |