Skip to content

Instantly share code, notes, and snippets.

View Samstiles's full-sized avatar

Sam Stiles Samstiles

View GitHub Profile
(s/defn execute-queue-length
[request]
(try
(m/mark! @queue-length-request-meter)
(let [at (time/now)
tenant-id (:tenant-id request)
start (or (:start request) default-start)
end (or (:end request) default-end)]
(if (and (date-valid start) (date-valid end))
2015-09-17T23:04:12.627+0000 hyperion 66629a40-5d90-11e5-9baf-c22dbe83bb0f sam-ThinkPad-W541 INFO [hyperion.producers.druid] - Executing druid query
{:type :druid,
:druid-query
{:queryType :groupBy,
:dataSource "prometheus",
:granularity :all,
:dimensions ["tenant-id"],
:aggregations
[{:type :count, :name "count"}
{:type :min, :name "minLength", :fieldName "queue-length"}
2015-09-17T23:04:12.627+0000 hyperion 66629a40-5d90-11e5-9baf-c22dbe83bb0f sam-ThinkPad-W541 INFO [hyperion.producers.druid] - Executing druid query
{:type :druid,
:druid-query
{:queryType :groupBy,
:dataSource "prometheus",
:granularity :all,
:dimensions ["tenant-id"],
:aggregations
[{:type :count, :name "count"}
{:type :min, :name "minLength", :fieldName "queue-length"}
## Dev properties for hyperion
#Override server port. Default 80
hal9002.port=8779
## ZINN PROPERTIES
zinn.logLevel=debug
## EUREKA PROPERTIES
<!DOCTYPE html>
<html>
<head>
<title>Crabbe Mountain Administration</title>
<link rel="stylesheet" href="/stylesheets/admin/admin.css" />
</head>
<body>
<h1>FUUU</h1>
{{{body}}}
</body>
@Samstiles
Samstiles / rule.js
Last active August 29, 2015 14:26 — forked from jme900/rule.js
(function () {
'use strict';
angular.module('eyesover')
.directive('rule', function () {
return {
scope: {
rule: '=ruleset'
},
replace: true,
ig.module(
'game.entities.player'
).requires(
'impact.entity'
).defines(function () {
EntityPlayer = ig.Entity.extend({
size: { x: 9, y: 15 },
checkAgainst: ig.Entity.TYPE.B,
animSheet: new ig.AnimationSheet('assets/placeholder.png', 9, 15),
(function() {
'use strict';
/*
{
name: 'is_targeted',
type: 'string',
label: 'Targeted?',
group: 'general',
index: 0,
// Play Media
{
name: 'play-media',
entity: 'activity',
label: 'Play Media',
type: 'task',
params: {
participant: 'customer',
media: 'd3585b58-aa23-4d41-a3d7-1167261cfe21',
loop: true
// Play Media
{
name: 'play-media',
entity: 'activity',
label: 'Play Media',
type: 'task',
params: {},
inputs: [{
name: 'participant',
type: 'select',