Skip to content

Instantly share code, notes, and snippets.

Kenneth Kalmer kennethkalmer

Block or report user

Report or block kennethkalmer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 01_core_async_timeout.clj
(ns user
(:require [clojure.core.async :as async :refer [<! <!! go-loop]]))
;; Use an agent to print so we don't clobber the output during async prints
(def printer (agent nil))
(defn report [& s]
(send printer
(fn [_]
(apply println s))))
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'ember-cli-nouislider'
});
View 01_README.md

Upload component

Context

Based heavily on [s3-beam][1], but uses re-frame events/subs to get the job done. The /sign handler is the [s3-beam][1] handler (near verbatim).

For background on (ui.core/component "...") see https://opensourcery.co.za/2017/02/12/using-semantic-ui-react-with-re-frame/

ui.ajax is just thin wrappers and/or aliases around plumbing from ajax.core from cljs-http

@kennethkalmer
kennethkalmer / general.md
Last active Oct 12, 2016
Draft for announcement via @channel in #general
View general.md

Hi everyone! Apologies for popping into your notifications/inbox so soon again but we have some important news to share with you! We're merging with the ZA Tech Slack team!

A lot of you knew about the much larger ZA Tech Slack team, and ~200 of you (25%) are in both teams already. The admins there have managed to register a non-profit and get access to a better Slack experience than we have, including full history!

As the stewards of this community we've decided that a merger makes more sense than running competing communities, and as such we're officially anouncing that this team is deprecated and will be shut down by the end of the year in favour of a larger and more united local community. All we've done is not lost, they share a lot of our same values and we've been working hard the last few days to smooth out some differences in the way the communities are run.

If this catches you by surprise, we're sorry! We've already been through a few days of migrating the existing channels over and having discu

@kennethkalmer
kennethkalmer / invite-to-code-of-conduct.clj
Created Aug 13, 2016
Simple clojure code used to invite all the members of the ZA Developer slack team into a specific channel to discuss amendments to the code-of-conduct :)
View invite-to-code-of-conduct.clj
(require 'clj-slack.users)
(require 'clj-slack.channels)
(def connection {:api-url "https://slack.com/api" :token "TOKEN"})
;; Get all the users and channels
(def users (clj-slack.users/list connection))
(def channels (clj-slack.channels/list connection))
;; Find the channel we care about
View stacktrace.log
condition did not pass in 5.0 seconds (failed with exception)
geb.waiting.WaitTimeoutException: condition did not pass in 5.0 seconds (failed with exception)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
@kennethkalmer
kennethkalmer / _README.md
Last active Aug 29, 2015
Temporary node proxy while ember toolchain fixes the bugs with theirs
View _README.md

Simple proxy

$ git clone https://gist.github.com/kennethkalmer/de832976dedc4ab64798.git proxy
$ cd proxy
$ npm install
$ node proxy.js

profit

@kennethkalmer
kennethkalmer / _README.md
Last active Sep 25, 2019
Simple start with InfluxDB & Grafana using Travis as a source of historical data
View _README.md

InfluxDB & Grafana starter pack

Simple example of how easy it is to jam numbers into InfluxDB and graph something with Grafana. I choose to use Travis as a source of historical time-series data.

Dependencies

Get InfluxDB installed with Homebrew

$ brew install influxdb
View testfiles.diff
diff --git a/audited-activerecord.gemspec b/audited-activerecord.gemspec
index 089c94a..2a1e86e 100644
--- a/audited-activerecord.gemspec
+++ b/audited-activerecord.gemspec
@@ -20,6 +20,7 @@ Gem::Specification.new do |gem|
gem.files = `git ls-files lib`.split($\).grep(/(active_?record|generators)/)
gem.files << 'LICENSE'
+ gem.test_files = `git ls-files -- {test,spec}/*`.split($\).reject { |f| f =~ /mongo_mapper/ }
gem.require_paths = ['lib']
View keybase.md

Keybase proof

I hereby claim:

  • I am kennethkalmer on github.
  • I am kennethkalmer (https://keybase.io/kennethkalmer) on keybase.
  • I have a public key whose fingerprint is 9970 D42A 6E04 2612 1DD0 BF99 7EC6 DBDB 18C5 AFDD

To claim this, I am signing this object:

You can’t perform that action at this time.