Skip to content

Instantly share code, notes, and snippets.

View seglo's full-sized avatar
❤️
Programmering

Sean Glover seglo

❤️
Programmering
View GitHub Profile

Keybase proof

I hereby claim:

  • I am seglo on github.
  • I am seglo (https://keybase.io/seglo) on keybase.
  • I have a public key ASD7-GoMNYaK8RYkX_lUtYmq_VdooJ70Sqg8UdVRG-6gUwo

To claim this, I am signing this object:

@seglo
seglo / docker-compose.yml
Last active January 22, 2020 07:30
user-events kafka cluster
# See dockerhub for different versions of kafka and zookeeper:
# https://hub.docker.com/r/wurstmeister/kafka/
# https://hub.docker.com/r/wurstmeister/zookeeper/
# Usage notes:
# https://github.com/wurstmeister/kafka-docker/
version: '2'
services:
zookeeper:
image: wurstmeister/zookeeper:3.4.6
ports:
package object controllers {
private def rel(url: String)(implicit request: Request[AnyContent]): String = {
val count = request.uri.count(c => c == '/')
(url, count) match {
/**
* Requested url is '/' and we are at the root of the app. Link to root route with '.'.
*/
case ("/", 1) => "."
/**
@seglo
seglo / TradeAnalysis.scala
Last active July 27, 2017 17:55
A programming assignment I did for an onsite interview to do several kinds of analytics on stock trade data using core Scala lib only
import scala.io.Source
import scala.util._
import scala.math.BigDecimal.RoundingMode
import java.io.File
import scala.collection.immutable.HashMap
object AssetRiskApp extends App {
val dataDir = """C:\Users\MyUser\Desktop\data"""
val marksDataFile = """C:\Users\MyUser\Desktop\data\marks.txt"""
@seglo
seglo / DisplayModeService.js
Created March 26, 2014 19:57
DisplayModeService is a service that will notify consumers when the bootstrap display mode changes. Example Usage: DisplayModeService.on('visible-md', function() { $log.info('visible-md callback'); });
'use strict';
/*
* DisplayModeService is a service that will notify consumers when the bootstrap display mode changes.
* - heavily inspired by the following post: http://www.dnasir.com/2013/10/09/display-mode-detection-for-responsive-websites-using-angularjs/
*/
angular.module('myApp')
.service('DisplayModeService', function($window, $log) {
var markers = angular.element('<div class="visible-xs"></div><div class="visible-sm"></div><div class="visible-md"></div><div class="visible-lg"></div>');