- https://t.co/1FSFQUfp
- http://t.co/vJzKAzFs
- http://t.co/ncTxB5za
- http://t.co/klb4yNn7
- https://twitter.com/randomfrequency/status/244188321834758145
- https://www.lucidchart.com/
- google drawings (a part of google docs I never noticed somewhow)
- http://t.co/E5uMkjaP
- https://t.co/8w7ob5dc
- Emacs' Artist Mode
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
[{:file "react-native/Libraries/Animation/LayoutAnimation.js", | |
:provides ["LayoutAnimation"], | |
:requires | |
["ReactPropTypes" | |
"NativeModules" | |
"createStrictShapeTypeChecker" | |
"keyMirror"]} | |
{:file "react-native/Libraries/Animation/POPAnimationMixin.js", | |
:provides ["POPAnimationMixin"], | |
:requires ["POPAnimation" "invariant" "warning"]} |
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
(def s (start-server 3000 inc false)) | |
;; echo 10\n20\n30 | nc localhost 3000 | |
;; => 11\n21\n31 | |
(stop-server s) |
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
/* javac ArrayBenchmark.java | |
* java -Xbootclasspath/a:. ArrayBenchmark | |
*/ | |
import java.nio.ByteBuffer; | |
import java.nio.ByteOrder; | |
import java.nio.IntBuffer; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.HashMap; |
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
add_action( 'gform_paypal_post_ipn', 'tan_deal_with_posts', 10, 8 ); | |
function tan_deal_with_posts( $ipn_post, $entry, $config, $cancel ){ | |
global $current_user; | |
$time_period = $entry['1.1']; | |
$userid = $entry['created_by']; | |
if( empty( $userid ) ) $userid = $current_user->ID; |
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://www.infoq.com/presentations/core-logic | |
(ns rdf | |
(:refer-clojure :exclude [==]) | |
(:use [clojure.core.logic])) | |
(def g | |
[[:a1 :rdf/type :sdx/FederationService] | |
[:a1 :rdf/type :sdx/name "movies"] | |
[:a1 :rdf/exposedServices :_syscoll1] |
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
;;; this is now in a library: https://github.com/cemerick/shoreleave-remote-ring | |
(ns ^{:doc "Server-side RPC support for use with shoreleave (and maybe fetch?). | |
Mostly copied from https://github.com/shoreleave/shoreleave-remote-noir; | |
changed to eliminate the noir-isms..."} | |
cemerick.cljs.rpc) | |
(def default-remote-uri "/_fetch") | |
(def remotes (atom {})) |
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
(defmacro test-> | |
"Takes an expression and a set of test/form pairs. Threads expr (via ->) | |
through each form for which the corresponding test expression (not threaded) is true." | |
[expr | |
& clauses] | |
(assert (even? (count clauses))) | |
(let [g (gensym) | |
pstep (fn [[test step]] `(if ~test (-> ~g ~step) ~g))] | |
`(let [~g ~expr | |
~@(interleave (repeat g) (map pstep (partition 2 clauses)))] |
Few days ago Mike Anderson wrote [a proposal][mike] for a generic matrix API in Clojure which could compete with NumPy. I wanted to write a similar post for months, but was reluctant to start. This problem is very dear to me. Basically, it is a matter if I can use Clojure for most of my work, or it remains a toy language for me. Thanks to Mike for bringing the question up. Though, I have a different vision of how we should approach arrays and matrices in Clojure.
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
#!/bin/bash | |
NET=10.0.0.0/16 | |
# i.e. 256Kbit/s | |
RATE_OUT=$1 | |
# i.e. 6Mbit/s | |
RATE_IN=$2 | |
DELAY_IN=$3 | |
DELAY_OUT=$4 |
OlderNewer