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
(function () { | |
const json = JSON.parse(document.body.getElementsByTagName('pre')[0].innerText); | |
const lines = []; | |
for (let ns of Object.keys(json.cs)) { | |
for (let [key, value] of Object.entries(json.cs[ns])) { | |
lines.push(`${ns}.${key}=${value}`); | |
} | |
} |
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
{-# LANGUAGE AllowAmbiguousTypes #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE NoImplicitPrelude #-} | |
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-| | |
Module : Headroom.IO.Cache | |
Description : Support for Cache implementations |
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
name: headroom | |
version: 0.2.2.0 | |
homepage: https://github.com/vaclavsvejcar/headroom | |
license: BSD-3-Clause | |
license-file: LICENSE | |
author: Vaclav Svejcar | |
maintainer: [email protected] | |
copyright: Copyright (c) 2019-2020 Vaclav Svejcar | |
github: vaclavsvejcar/headroom | |
category: Utils |
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 shapeless._ | |
import scala.annotation.implicitNotFound | |
/* | |
* Used type names: | |
* - A = type of the sealed trait | |
* - C = type of the coproduct | |
* - H = type of the iterated singleton (case object) instance | |
* - T = type of the iterated coproduct | |
*/ |
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 com.norcane.reelife.client.router | |
import scala.annotation.tailrec | |
import scala.language.implicitConversions | |
package object syntax { | |
type Out = String | |
def bind[R](routeDef: RouteDef[R]): R = routeDef.self |
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 scala.scalajs.js | |
import scala.scalajs.js.annotation.JSName | |
package object highlightjs { | |
lazy val hljs: HighlightJs = js.Dynamic.global.hljs.asInstanceOf[HighlightJs] | |
@JSName("hljs") | |
@js.native |
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 org.scalajs.dom.html.Span | |
import org.scalajs.dom.{Element, Node} | |
import rx._ | |
import scala.annotation.tailrec | |
import scala.util.{Failure, Success} | |
import scalatags.JsDom.all._ | |
/** | |
* Provides support for using [[https://github.com/lihaoyi/scala.rx Scala.Rx]] together with the |
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 scalaz.Reader | |
/** | |
* Trait providing helper methods for handling application-wide dependency injection using the | |
* ''reader monad'' functional pattern. | |
* | |
* @author Vaclav Svejcar ([email protected]) | |
*/ | |
trait Injector { |
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
#!/usr/bin/env bash | |
## Command line utility for uploading directory structure into GridFS | |
## Copyright (c) 2015-2016 norcane | |
## | |
## Authors: | |
## - Vaclav Svejcar ([email protected]) | |
## ------------------------------------------------------------------ | |
## This program is free software: you can redistribute it and/or modify | |
## it under the terms of the GNU General Public License as published by |
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.util.Iterator; | |
import javax.enterprise.context.spi.CreationalContext; | |
import javax.enterprise.inject.spi.Bean; | |
import javax.enterprise.inject.spi.BeanManager; | |
import javax.naming.Context; | |
import javax.naming.InitialContext; | |
import javax.naming.NamingException; | |
/** | |
* Provides simple way how to obtain the instance of managed beans |