View gist:9374390
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 | |
# | |
# Trims out the bullshit "redirect me to the top-level page" Javascript that scaladoc | |
# jams into every fucking documentation page. Fucking fuckers. | |
if [ -z "$1" ]; then | |
echo "Usage: $0 somedoc.jar" | |
exit 255 | |
fi |
View gist:11371679
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
exception when typing new scaled.Loc(scaled.Loc.apply(sym.lineNo(), 0).$asInstanceOf[Long]())/class scala.reflect.internal.Trees$Apply | |
constructor Loc in class Loc cannot be accessed in anonymous class $anonfun in file /Users/mdb/projects/scaled/codex-mode/src/main/scala/codex/CodexMode.scala | |
scala.reflect.internal.Types$TypeError: constructor Loc in class Loc cannot be accessed in anonymous class $anonfun | |
at scala.tools.nsc.typechecker.Contexts$Context.issue(Contexts.scala:401) | |
at scala.tools.nsc.typechecker.Infer$Inferencer.issue(Infer.scala:312) | |
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$normalTypedApply$1$1.apply(Typers.scala:4613) | |
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$normalTypedApply$1$1.apply(Typers.scala:4613) | |
at scala.tools.nsc.typechecker.Typers$Typer.onError$3(Typers.scala:4571) | |
at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4613) | |
at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4625) |
View gist:53d76d7ece620a3fe0f9
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
2014-05-13 08:51:51 JRebel: Reloading class 'scaled.RBufferView'. | |
2014-05-13 08:51:51 JRebel: Reloading class 'scaled.Loc'. | |
2014-05-13 08:51:51 JRebel: Reloading class 'scaled.Loc$'. | |
2014-05-13 08:51:51 JRebel: Reloading class 'scaled.LineV'. | |
2014-05-13 08:51:52 JRebel: Reloading class 'scaled.Styles$'. | |
2014-05-13 08:51:52 JRebel: Reloading class 'scaled.Styles$Node'. | |
2014-05-13 08:51:52 JRebel: Reloading class 'scaled.Syntax$'. | |
2014-05-13 08:51:52 JRebel: Reloading class 'scaled.Matcher'. | |
2014-05-13 08:51:52 JRebel: Reloading class 'scaled.RBuffer'. | |
2014-05-13 08:51:52 JRebel: Reloading class 'scaled.Buffer'. |
View gist:769d1976ba996d801f61
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
@extempore2 One pest is lack of single line method support (def foo = bar). I can probably cope with a -> a.foo() instead of _.foo(). |
View Rank and file
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
object R2 { | |
trait R2[A] { | |
def f (a :A) :A | |
} | |
trait R2Gen { | |
def gen[A] :R2[A] | |
} | |
def foo (gen :R2Gen) { | |
val x = "one" |
View gist:121e424be7d87d8fc4fd
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
// | |
// Scaled - a scalable editor extensible via JVM languages | |
// http://github.com/scaled/scaled/blob/master/LICENSE | |
package scaled; | |
import java.util.Iterator; | |
import java.util.NoSuchElementException; | |
/** |
View gist:01730df44e0657b3b2f0
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
# NEO4J Version | |
% spam run codex#java codex.TestCodex | |
Diagnostics [error=100, mandatory_warning=16] | |
Extract and store: 15s | |
30006 defs. | |
32382 names. | |
% du -sk neo4j-codex/* | sort -nr | |
15052 neo4j-codex/neostore.propertystore.db |
View gist:f5436732991c5f35c9f3
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
% gem install jekyll | |
Fetching: fast-stemmer-1.0.2.gem (100%) | |
Building native extensions. This could take a while... | |
Successfully installed fast-stemmer-1.0.2 | |
Fetching: classifier-reborn-2.0.3.gem (100%) | |
Successfully installed classifier-reborn-2.0.3 | |
Fetching: ffi-1.9.8.gem (100%) | |
Building native extensions. This could take a while... | |
Successfully installed ffi-1.9.8 | |
Fetching: rb-inotify-0.9.5.gem (100%) |
View gist:51da3452d370381256e4
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
Dependency Error: Yikes! It looks like you don't have redcarpet or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'dlopen(/usr/local/Cellar/ruby/2.1.3_1/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-14/2.1.0/redcarpet-3.2.2/redcarpet.bundle, 9): Library not loaded: /usr/local/lib/libruby.2.1.0.dylib Referenced from: /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-14/2.1.0/redcarpet-3.2.2/redcarpet.bundle Reason: image not found - /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-14/2.1.0/redcarpet-3.2.2/redcarpet.bundle' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/! | |
Conversion error: Jekyll::Converters::Markdown encountered an error while converting 'docs/release/Migrating15to16.md': | |
redcarpet | |
ERROR: YOUR SITE COULD NOT BE BUILT: | |
-------------------------- |
View Euler063.scala
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
object Euler063 extends EulerApp { | |
def count (n :Int, p :Int, c :Int) :Int = | |
if (n == 10) c | |
else if (BigInt(n).pow(p).toString.length < p) count(n+1, 1, c) | |
else count(n, p+1, c+1) | |
def answer = count(1, 1, 0) | |
} |
OlderNewer