Updated: Just use qutebrowser (and disable javascript). The web is done for.
This file contains hidden or 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
| """ | |
| 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
This file contains hidden or 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
| package slickdemo | |
| import scala.reflect.macros.Context | |
| import scala.language.experimental.macros | |
| object Macros { | |
| // scala.reflect.runtime.currentMirror | |
| // universe.reify |
This file contains hidden or 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
| 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.)
This file contains hidden or 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
| /* 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. | |
| * github@andrewconner.org / @connerdelights | |
| */ | |
| import scala.concurrent.{ExecutionContext, CanAwait, Awaitable, Future, Promise} | |
| import scala.concurrent.duration.Duration | |
| import scala.util.Try |
This file contains hidden or 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 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 { |
This file contains hidden or 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
| 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. |
This file contains hidden or 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.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._ |