Skip to content

Instantly share code, notes, and snippets.

package akkaWorkerMainJS
import scala.scalajs.js
import akka.actor._
import akka.worker.AkkaWorkerMaster
import com.typesafe.config.ConfigFactory
class A extends Actor {
import context.system
def receive = {
.jsSettings(
unmanagedSourceDirectories in Compile += baseDirectory.value / "../../akka-js-testkit/js/src",
libraryDependencies ++= Seq(
"be.doeraene" %%% "scalajs-pickling" % "0.4.0",
"org.scalatest" %%% "scalatestjs" % "2.3.0-SNAP2",
"org.scala-js" %%% "scalajs-dom" % "0.8.0"
)
)
[error] missing or invalid dependency detected while loading class file 'Matchers.class'.
[error] Could not access type SequencingConstraint in value org.scalactic.enablers,
[error] because it (or its dependencies) are missing. Check your build definition for
[error] missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
[error] A full rebuild may help if 'Matchers.class' was compiled against an incompatible version of org.scalactic.enablers.
[error] missing or invalid dependency detected while loading class file 'Matchers.class'.
[error] Could not access term enablers in package org.scalactic,
[error] because it (or its dependencies) are missing. Check your build definition for
[error] missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
[error] A full rebuild may help if 'Matchers.class' was compiled against an incompatible version of org.scalactic.
{
"_id" : ObjectId("52691e5c9122a8d97b000001"),
"__v" : 10,
"author" : "Sonia Lifonti",
"body" : "<p>Quante volte negli ultimi anni abbiamo sentito questa frase? Nienta paura, però – in\r\nquesto caso non ci riferiamo al bestseller che ha venduto milioni di copie, ma\r\nal trend più classico nella moda maschile autunno inverno 2013-2014: il ritorno\r\nal classico, e sempre amato, grigio.</p>\r\n<p>Declinato dallo smart al casual ritroviamo il grigio in questa nuova stagione\r\ncompletamente sdoganato dallo stigma di colore serioso. Grazie all’intervento\r\ndei top designer a tutte le sfumature di grigio, dal pallido Paris Grey fino ad\r\narrivare all’antracite e gunpowder, vengono affiancati tagli moderni, chic e\r\nportabili sia come workwear, sia nel tempo libero, magari abbinato ad un jeans\r\na sigaretta. Molto in voga anche il gilet, o waistcoat, non solo relegato nei completi rigorosi, ma\r\nabbinato a look urban smart.</p>\r\n<p>Oltre alle varie palette di grigio in vers
@yawnt
yawnt / quotes
Last active August 29, 2015 14:18
“Do you have a press kit I could check out?”
When a journalist asks you that question, the answer needs to be “yes.”
- Jim Glade and Andrew Wight (publicize.co)
"For developers, having or not having a press kit can be the
difference between tons of coverage and zero attention."
- Harrison Weber (VentureBeat, TheNextWeb)
> Object.keys(res).filter(function(e) { return res[e] > 1; }).sort(function(a,b) { return res[a] > res[b] }).reverse().slice(0,10)
[ 'google',
'github',
'twitter',
'typesafe',
'shopify',
'rackspace',
'nodejitsu',
'plataformatec',
'linkedin',
@yawnt
yawnt / api.js
Last active August 29, 2015 14:17
var ffi = require('lib/llffi'),
console = require('lib/console');
var Struct = ffi.defineCStruct({
z: ffi.CTypes.int,
a: ffi.defineCArray(ffi.CTypes.int, 3)
})
var Other = ffi.defineCStruct({
k: ffi.CTypes.int,
var Struct2 = ffi.defineCStruct({
z: ffi.CTypes.int
})
var Struct = ffi.defineCStruct({
x: ffi.CTypes.int,
y: ffi.CTypes.long,
k: Struct2
})
/* A simple server in the internet domain using TCP
The port number is passed as an argument */
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
void error(char *msg)
{
perror(msg);
@yawnt
yawnt / run.sh
Last active August 29, 2015 14:17
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:hollywood/ppa
sudo apt-get update
sudo apt-get install hollywood
hollywood