I hereby claim:
- I am ccjoel on github.
- I am teh0xqb (https://keybase.io/teh0xqb) on keybase.
- I have a public key ASDdzBuDy8cPsxixtA1Q6pRl2_mbG-bqfEjopW48iCW9cgo
To claim this, I am signing this object:
;; deps.edn | |
{:paths ["src"] | |
:deps {org.clojure/clojure {:mvn/version "1.11.2"} | |
ring/ring-core {:mvn/version "1.12.1"} | |
ring/ring-devel {:mvn/version "1.12.1"} | |
http-kit/http-kit {:mvn/version "2.8.0"} | |
compojure/compojure {:mvn/version "1.7.1"} | |
rum/rum {:mvn/version "0.12.11" | |
:exclusions [cljsjs/react cljsjs/react-dom]}} |
I hereby claim:
To claim this, I am signing this object:
(require 'package) | |
(add-to-list 'package-archives | |
'("marmalade" . "http://marmalade-repo.org/packages/")) | |
(package-initialize) | |
(defvar my-packages '(clojure-mode | |
cider | |
paredit | |
auto-complete | |
highlight-parentheses |
I hereby claim:
To claim this, I am signing this object:
/** Assume database returns data for tasks, we may | |
* model each task as an object, and use React for the view. | |
**/ | |
/** | |
* Simple component that accepts data for a task, and returns markup for it | |
**/ | |
function Task({name, finished, reminderDateTime, dueDate}) { | |
return ( | |
<fieldset> |
(ns messagepassing.core) | |
(import [java.util.concurrent LinkedTransferQueue]) | |
(def m 10000000) | |
(defn queue-test [] | |
(defn bounce [in out m] | |
(let [value (.take in)] | |
(if (< value m) | |
(do |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
; Copyright (c) Rich Hickey. All rights reserved. | |
; The use and distribution terms for this software are covered by the | |
; Common Public License 1.0 (http://opensource.org/licenses/cpl.php) | |
; which can be found in the file CPL.TXT at the root of this distribution. | |
; By using this software in any fashion, you are agreeing to be bound by | |
; the terms of this license. | |
; You must not remove this notice, or any other, from this software. | |
;dimensions of square world |
# Curl online manpages and pipe to less | |
webman () { | |
curl http://man.he.net/\?topic\=$1\§ion\=all | less | |
} | |
# Calls man pages or fallbacks to webman | |
man() | |
{ | |
echo "Fetching man page for $1 ..." |
sudo fgrep --exclude=\*.{db,json,so,jar,sig,log,md,edn,patch,class,css,scssc} --exclude-dir=".git" -rnw "." -e "hammer" -e "dragon" -e "plz" -e "crazy" -e "dont look here" -e "please ignore" -e "horrible" -e "horrid" -e "hideous" -e "nonsense" -e "fack" -e "hack" / 2>&1 | tee -a very-telling.txt |
render(){ | |
const { flashState } = this.props; | |
return ({ | |
({ // switch | |
SUCCESS: () => (<Component1 />), | |
INFO: () => (<Component2 />), | |
WARNING: () => (<Component3 />) }[flashState] || | |
(() => (<DefaultComponent />)))() // DEFAULT | |
}); |