For testing purposes, the easiest way to go is jitpack:
resolvers += "jitpack" at "https://jitpack.io"
libraryDependencies += "com.github.User" % "Repo" % "Tag"
For testing purposes, the easiest way to go is jitpack:
resolvers += "jitpack" at "https://jitpack.io"
libraryDependencies += "com.github.User" % "Repo" % "Tag"
Updated: Just use qutebrowser (and disable javascript). The web is done for.
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
In order to build SuperCollider 3.6.5 from source on Linux (Debian), the following steps were necessary on a fresh system:
sudo apt-get install build-essential
sudo apt-get install cmake
sudo apt-get install libfftw3-dev
sudo apt-get install libqt4-dev
sudo apt-get install libqtwebkit-dev
sudo apt-get install libjack-jackd2-dev
sudo apt-get install libsndfile1-dev
package slickdemo | |
import scala.reflect.macros.Context | |
import scala.language.experimental.macros | |
object Macros { | |
// scala.reflect.runtime.currentMirror | |
// universe.reify |
scala> case class Wrapped(x: Int, y: Long) | |
defined class Wrapped | |
scala> import com.twitter.bijection._ | |
import com.twitter.bijection._ | |
scala> import com.twitter.bijection.json._ | |
import com.twitter.bijection.json._ | |
scala> import com.twitter.bijection.json.JsonNodeInjection._ |
This document describes the guidelines for managing two important
namespaces: the package scala._
, and the Maven group org.scala-lang
.
These questions become more important as we modularize the distribution, and as we publish new modules (such as ScalaJS, scala-async, scala-pickling.)
/* We've run into a few common pitfalls when dealing with Futures in Scala, so I wrote these three helpful | |
* classes to give some baked-in functionality. | |
* | |
* I'd love to hear about other helpers you're using like these, or if you have improvement suggestions. | |
* [email protected] / @connerdelights | |
*/ | |
import scala.concurrent.{ExecutionContext, CanAwait, Awaitable, Future, Promise} | |
import scala.concurrent.duration.Duration | |
import scala.util.Try |
object Trimmed { | |
val Stop = ".*\\b(a|an|the|to|of|as|in|with|for)$".r | |
val Fine = "(.+\\.)$".r | |
val Punc = "(.+)[,;:]$".r | |
} | |
class Trimmed(size: Int) { | |
def unapply(s: String) = s.replaceAll("\\s+", " ") match { | |
case res if res.size <= size => Some(res) | |
case res => res.split(' ').inits.map(_ mkString " ").flatMap { |
to get it working, install Emscripten: | |
https://github.com/kripken/emscripten/wiki/Tutorial | |
(on Ubuntu: https://github.com/kripken/emscripten/wiki/Getting-Started-on-Ubuntu-12.10) | |
set all the env variables and run build.sh. | |
open sin_audiodata.html in your Firefox. |