Skip to content

Instantly share code, notes, and snippets.

@valichek
valichek / bundle.js
Created May 28, 2015 11:43
jspm bundle task for gulp
var gulp = require('gulp');
var paths = require('../paths');
var jspm = require('jspm/api');
gulp.task('bundle', function (done) {
jspm.bundle(
[
'*',
'aurelia-skeleton-navigation/*',
'aurelia-bootstrapper',
@valichek
valichek / gist:6bff5ff0ff626aaea666
Last active November 4, 2021 20:35
Thread safe println #clojure #debug
;http://yellerapp.com/posts/2014-12-11-14-race-condition-in-clojure-println.html
(defn safe-println [& more]
(.write *out* (str (clojure.string/join " " more) "\n")))
@valichek
valichek / gist:ba510de9ff2cf3d0c502
Created May 5, 2014 21:12
Strange behaviour of merge and into with map where keys are instances of AsyncChannel from http-kit
(ns clj-test-server.core
(:use org.httpkit.server))
; https://github.com/http-kit/http-kit/blob/master/src/java/org/httpkit/server/AsyncChannel.java
(def clients (atom nil))
(defn handler []
(future (let
[merged (merge {} @clients)]