Skip to content

Instantly share code, notes, and snippets.

View Lykathia's full-sized avatar

Evan Lowry Lykathia

View GitHub Profile
@Lykathia
Lykathia / mmsh-overlay.html
Last active February 25, 2017 04:22
Quickly thrown together POC for a stream overlay re: https://www.twitch.tv/glitchcat7
<html>
<head>
<style type="text/css" media="all">
html { box-sizing: border-box; }
body {
background: transparent;
color: rgba(255, 255, 255, .87);
font: .75rem/2 Sans-Serif;
}
dl {
document.getElementsByClassName('cart-headline-linked').map(function(elem) {
elem.addEventListener('click', function(e) {
e.preventDefault();
document.getElementById(e.href.target).classList.toggle('cart-open');
});
});

Keybase proof

I hereby claim:

  • I am lykathia on github.
  • I am lykathia (https://keybase.io/lykathia) on keybase.
  • I have a public key ASDrEGHDPN2uSu0--TzZq-YdIRulpyuVWvK5Z5voZlr-JQo

To claim this, I am signing this object:

import scodec._
import scodec.bits._
import scodec.codecs._
sealed trait A
sealed trait B extends A
sealed trait C extends A
object B {
implicit val discriminated: Discriminated[B, Int] = Discriminated(uint8)
/* Copyright © 2015 PitchPlay Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
@Lykathia
Lykathia / hconToJson.scala
Created September 22, 2015 21:14
PlayFramework controller to provide a subset of configuration options in json readable format for consumption from clientside code.
import javax.inject.Inject
import play.api.Configuration
import play.api.libs.json.Json
import play.api.libs.json.JsValue
import play.api.mvc.Controller
import play.api.mvc.Action
import com.typesafe.config.ConfigRenderOptions
@Lykathia
Lykathia / build.sbt
Created July 27, 2015 05:54
Example setup of sbt-stylus w/
enablePlugins(SbtWeb)
StylusKeys.compress in Assets := true
StylusKeys.plugins := Vector("nib", "jeet")
@Lykathia
Lykathia / gist:2b7f46232456b2bf6f92
Last active August 29, 2015 14:23
vertical bar css
.landing-about-inner
position: relative
background: transparent
z-index: 0
.landing-about-inner:after
content: ''
display: block
position: absolute
background: black
@Lykathia
Lykathia / genplugins.py
Created May 13, 2015 02:44
Jenkins Plugin Downloader
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Scaffold jenkins plugins for use in docker volume.
Downloads jenkins plugins based on supplied yaml configuration.
Requires:
- pyyaml
"""
@Lykathia
Lykathia / TableScannerTest.scala
Created May 11, 2014 01:29
Unit test for inheritance
package play.api.db.slick.ddl {
package object test {
val driver = scala.slick.driver.H2Driver
}
import org.specs2.mutable._
class TableScannerTest extends Specification {
val classloader = Thread.currentThread().getContextClassLoader()
"TableScanner" should {