This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Originally authored by Jason. Updated by me (Andy) to work in Scala 2.9 RC1 | |
* | |
* @author Jason Zaugg (aka retronym), Andy Scott | |
*/ | |
object InterpreterUtil { | |
import scala.tools.nsc.interpreter._ | |
import scala.tools.nsc.interpreter.Results._ | |
import scala.tools.nsc.Settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# git-svn-diff | |
# Generate an SVN-compatible diff against the tip of the tracking branch | |
# I didn't write this and I don't know who did! | |
TRACKING_BRANCH=`git config --get svn-remote.svn.fetch | sed -e 's/.*:refs\/remotes\///'` | |
REV=`git svn find-rev $(git rev-list --date-order --max-count=1 $TRACKING_BRANCH)` | |
git diff --no-prefix $(git rev-list --date-order --max-count=1 $TRACKING_BRANCH) $* | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/com/jidesoft/dialog/StandardDialog.java | |
=================================================================== | |
--- src/com/jidesoft/dialog/StandardDialog.java (revision 1760) | |
+++ src/com/jidesoft/dialog/StandardDialog.java (working copy) | |
@@ -31,6 +31,11 @@ import java.beans.PropertyChangeListener; | |
* createContentPanel() | |
*/ | |
abstract public class StandardDialog extends JDialog implements ButtonNames { | |
+ /** | |
+ * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
dg="\e[0;32m" | |
r="\e[1;31m" | |
b="\e[1;34m" | |
m="\e[1;35m" | |
cyan="\e[1;36m" | |
rs="\e[0m" | |
pdir=${PWD##*/} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/com/jidesoft/comparator/AlphanumComparator.java | |
=================================================================== | |
--- src/com/jidesoft/comparator/AlphanumComparator.java (revision 1765) | |
+++ src/com/jidesoft/comparator/AlphanumComparator.java (working copy) | |
@@ -61,7 +61,6 @@ public class AlphanumComparator implements Comparator<CharSequence> { | |
/** | |
* Length of string is passed in for improved efficiency (only need to calculate it once) * | |
*/ | |
- @SuppressWarnings({"JavaDoc"}) | |
private String getChunk(CharSequence s, int slength, int marker) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.reflect.Method; | |
public class SystemClassLoader { | |
private static final Method defineClassMethod; | |
public static Class<?> loadClass(String className, byte[] b) { | |
// override classDefine (as it is protected) and define the class. | |
Class<?> clazz = null; | |
try { | |
Object[] args = new Object[] { className, b, new Integer(0), new Integer(b.length) }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
machine: | |
timezone: | |
US/Pacific | |
## Customize checkout | |
checkout: | |
post: | |
- git submodule update --init # use submodules | |
dependencies: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type FutureEither[A, B] = EitherT[Future, A, B] | |
implicit class SequenceOverFutureEither[F[_], A, B](v: F[FutureEither[A, B]])(implicit F0: Traverse[F]) { | |
def sequenceR() = v.sequence[({ type λ[R] = FutureEither[A, R] })#λ, B] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait Magnetic[T] { | |
protected sealed trait TagMag | |
type Magnet = T @@ TagMag | |
protected implicit def tag(value: T) = Tag[T, TagMag](value) | |
def apply(mag: Magnet): T = mag | |
} | |
object CreateDescriptor extends Magnetic[CreateDescriptor] { | |
implicit def default(unit: Unit): Magnet = CreateDescriptor(None, AssetDescriptorRecord()) | |
implicit def fromUser(user: ProfilePair): Magnet = CreateDescriptor(Some(user), AssetDescriptorRecord()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before_deploy: | |
- mkdir deploy_staging | |
- cp */target/**/*.jar deploy_staging | |
deploy: | |
skip_cleanup: true | |
provider: s3 | |
bucket: build-bucket | |
region: us-west-2 | |
local-dir: deploy_staging |
OlderNewer