This file contains 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
(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)] |
This file contains 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
;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"))) |
This file contains 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
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', |
This file contains 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 {inject, ViewCompiler, ViewResources, Container} from 'aurelia-framework'; | |
/** | |
* Compiler service | |
* | |
* compiles an HTML element with aurelia | |
*/ | |
@inject(ViewCompiler, ViewResources, Container) | |
export class Compiler { |
This file contains 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
<template> | |
<ul class="nav nav-tabs"> | |
<li role="presentation" click.delegate="$parent.selectTab(tab)" repeat.for="tab of tabs" class="${ $parent.selectedTab === tab ? 'active' : '' }"><a href="#">${ tab.heading }</a></li> | |
</ul> | |
<div style="margin-top:8px"> | |
<content></content> | |
</div> | |
</template> |
This file contains 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
// Copyright 2015 Simon Schmidt | |
// Copyright 2012 Junqing Tan <[email protected]> and The Go Authors | |
// Use of this source code is governed by a BSD-style | |
// Part of source code is from Go fcgi package | |
// Fix bug: Can't recive more than 1 record untill FCGI_END_REQUEST 2012-09-15 | |
// By: wofeiwo | |
package fcgiclient |
This file contains 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
<template> | |
<require from="./list"></require> | |
<div>List</div> | |
<list></list> | |
</template> |
This file contains 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
var Promise = require('bluebird'); // Promise polyfill for IE11 | |
// Bluebird config | |
Promise.config({ | |
// Enable warnings | |
warnings: true, | |
// Enable long stack traces | |
longStackTraces: true, | |
// Enable cancellation | |
cancellation: false, | |
// Enable monitoring |
This file contains 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
<template> | |
<h1>${message}</h1> | |
<div>${'val' | t} ${'tr1:val1' | t}</div> | |
<button click.trigger="changeLocale('de')">de</button> | |
<button click.trigger="changeLocale('en')">en</button> | |
</template> |
This file contains 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
<template> | |
<h1>${message}</h1> | |
<div>${'val' | t} ${'tr1:val1' | t}</div> | |
<button click.trigger="changeLocale('de')">de</button> | |
<button click.trigger="changeLocale('en')">en</button> | |
</template> |
OlderNewer