Skip to content

Instantly share code, notes, and snippets.

@schrepfler
schrepfler / designer.html
Created December 6, 2014 00:05
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@schrepfler
schrepfler / designer.html
Created December 10, 2014 11:45
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@schrepfler
schrepfler / designer.html
Last active August 29, 2015 14:11
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="betslip">
<template>
<style>
:host {
position: absolute;
width: 100%;
@schrepfler
schrepfler / designer.html
Last active August 29, 2015 14:11
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="betslip">
<template>
<style>
:host {
position: absolute;
width: 100%;
<element name="rx-web-component">
<style>
</style>
<template>
</template>
<script>
({
sayHello: function() {
@schrepfler
schrepfler / gist:367c1a3647574bbc920e
Created August 11, 2015 19:19
docker-zipkin error log
tall
---> Running in 13e6e969f01a
*** Adding Cassandra deb source
*** Importing Cassandra deb keys
gpg: directory `/root/.gnupg' created
gpg: new configuration file `/root/.gnupg/gpg.conf' created
gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/root/.gnupg/secring.gpg' created
gpg: keyring `/root/.gnupg/pubring.gpg' created
gpg: requesting key 0353B12C from hkp server keys.gnupg.net
class CapabilitiesExtractor(val device: Device, val capabilitiesFilter: Option[List[String]]) {
def extract(): Map[String, Option[CapabilityValue]] = {
val capabilities = device.capabilities ++ device.virtualCapabilities
???
}
}
object CapabilitiesExtractor {
module Test.Main where
import Prelude
import Control.Monad.Eff (Eff)
import Control.Monad.Eff.Console (CONSOLE, logShow)
import Data.Maybe (Maybe(Just))
import Data.Map as Map
import Data.Monoid.Additive (Additive(Additive))
import Main (GCounter(..), increment, value)
@schrepfler
schrepfler / Main.purs
Created August 17, 2016 00:37
GCounter
module Main where
import Data.Foldable (fold)
import Data.Map (Map)
import Data.Map as Map
import Data.Maybe (Maybe(Just, Nothing))
import Data.Monoid (mempty, class Monoid)
import Prelude
data GCounter n = GCounter String (Map String n)
import akka.{Done, NotUsed}
import akka.actor.ActorSystem
import akka.http.scaladsl.Http
import akka.http.scaladsl.common.EntityStreamingSupport
import akka.http.scaladsl.model.ws.TextMessage.{Streamed, Strict}
import akka.http.scaladsl.model.ws.{Message, TextMessage, WebSocketRequest}
import akka.stream.ActorMaterializer
import akka.stream.scaladsl.{Flow, Keep, Sink, Source}
import akka.util.ByteString
import io.circe.Json