Skip to content

Instantly share code, notes, and snippets.

View theatrus's full-sized avatar
💾
what is a status

Yann Ramin theatrus

💾
what is a status
View GitHub Profile
esphome:
name: rv-es-esphome
friendly_name: rv-es-esphome
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
@theatrus
theatrus / pulse.js
Last active August 29, 2015 14:27 — forked from zipcode/pulse.js
Pulse inserted nodes in the DOM
function pulse(node, time) {
if (!node) throw new Error("node was falsy");
if (node.constructor && node.constructor == NodeList) {
var nodes = Array.prototype.slice.call(node);
nodes.forEach(function (node) { pulse(node, time); });
return;
}
if (!node.style) return;
### Keybase proof
I hereby claim:
* I am theatrus on github.
* I am theatrus (https://keybase.io/theatrus) on keybase.
* I have a public key whose fingerprint is A6A0 4560 3098 883A C603 7F0C 1D95 CDC5 D8F2 CE58
To claim this, I am signing this object:
2014/12/10 16:13:10 https://crest-tq.eveonline.com/market/10000062/orders/buy/?type=https://crest-tq.eveonline.com/types/26368/ Non-200 status code returned from fetching. 503 {"infoText": "You are now in queue. You will be automatically connected as soon as possible", "retryInSec": 30.0, "placeInQueue_str": "48", "estimatedWaitTimeText": "Estimated wait: 11 Sec", "infoHeader": "Server full", "exceptionType": "QueuedError", "estimatedWaitTimeSec": 11.0, "key": "", "placeInQueue": 48, "message": ""}
2014/12/10 16:13:10 https://crest-tq.eveonline.com/market/10000047/orders/sell/?type=https://crest-tq.eveonline.com/types/27535/ Non-200 status code returned from fetching. 503 {"infoText": "You are now in queue. You will be automatically connected as soon as possible", "retryInSec": 30.0, "placeInQueue_str": "45", "estimatedWaitTimeText": "Estimated wait: 10 Sec", "infoHeader": "Server full", "exceptionType": "QueuedError", "estimatedWaitTimeSec": 10.0, "key": "", "placeInQueue": 45, "message": ""}
2014/12/10 16:1
15:45:18.701 [evec-akka.actor.default-dispatcher-15] WARN s.can.server.HttpServerConnection - Illegal request header: Illegal 'User-Agent' header: Invalid input ',', expected TokenChar, '/', OptWS, Comment, ProductVersionComment or EOI (line 1, pos 10):
EVE Tools, eve_tools@flexd.net or flexd on IRC for contact :-)
val t = Traversable(Map(1 -> 2))
val t1 = t.view.map { x => x }
val t2 : Set[Int] = t1.flatMap { x=> x.keySet }(scala.collection.breakOut)
~❯ scala fun.scala
java.lang.ClassCastException: scala.collection.SeqViewLike$$anon$4 cannot be cast to scala.collection.immutable.Set
at Main$$anon$1.<init>(fun.scala:3)
at Main$.main(fun.scala:1)
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mxcl/homebrew
HEAD: 50f4e193e3f709078c9cc0b4482b4b3c73c0fa64
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.9-x86_64
Xcode: 5.0.1
Clang: 5.0 build 500
X11: 2.7.4 => /opt/X11
package foo.bar
import spray.routing._
import spray.http._
import spray.http.StatusCodes.Forbidden
// See https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS
case class Origin(origin: String) extends HttpHeader {
package spray.examples
import scala.concurrent.duration.Duration
import scala.concurrent.duration._
import akka.actor._
import akka.pattern.ask
import spray.util._
import spray.io._
import akka.event.LoggingAdapter
import akka.util.Timeout
name := "eve-central-ng"
version := "3.0"
scalaVersion := "2.9.1"
resolvers += "Twitter" at "http://maven.twttr.com/"
resolvers += "Scala tools snapshots" at "http://scala-tools.org/repo-snapshots/"