This example shows how to use the d3.hexbin plugin for hexagonal binning. 2,000 random points with a normal distribution are binned into hexagons; color encodes the number of points that fall into each bin. You can also use area encoding. Inspired by earlier work by Zachary Forest Johnson.
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
#include <v8.h> | |
#include <iostream> | |
#include "utils.h" | |
using namespace v8; | |
void runJS(const std::string& inp) { | |
using namespace v8; |
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
(lquery:define-lquery-list-function tag-name (nodes &rest tags) | |
"Manipulate elements on the basis of there tag-name. | |
With no arguments, return their names else return | |
the corresponding tags." | |
(if (null tags) | |
(map 'vector #'plump:tag-name nodes) | |
(loop for node across nodes | |
if (find (plump:tag-name node) tags :test #'string=) | |
collect node))) |
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
% stack build [11:12] | |
ghc-mod-5.4.0.0: configure | |
Configuring ghc-mod-5.4.0.0... | |
ghc-mod-5.4.0.0: build | |
Preprocessing library ghc-mod-5.4.0.0... | |
[24 of 46] Compiling Language.Haskell.GhcMod.CabalHelper ( Language/Haskell/GhcMod/CabalHelper.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Language/Haskell/GhcMod/CabalHelper.o ) | |
/home/edwlan/github_repos/ghc-mod/Language/Haskell/GhcMod/CabalHelper.hs:149:33: | |
Not in scope: ‘packageId’ |
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
/home/edwlan/.stack/programs/x86_64-linux/ghc-7.10.2/lib/ghc-7.10.2/package.conf.d: | |
Cabal-1.22.4.0 | |
array-0.5.1.0 | |
base-4.8.1.0 | |
bin-package-db-0.0.0.0 | |
binary-0.7.5.0 | |
rts-1.0 | |
bytestring-0.10.6.0 | |
containers-0.5.6.2 | |
deepseq-1.4.1.1 |
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
{ | |
"name": "fiddlerwoaroof/markdown_case", | |
"require": { | |
"league/commonmark": "^0.13.0" | |
}, | |
"authors": [ | |
{ | |
"name": "fiddlerwoaroof", | |
"email": "[email protected]" | |
} |
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
INANGULIS> (defun a c (a c) a c) | |
INANGULIS> (a c 2) | |
2 |
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
#!/usr/bin/zsh | |
git add $argv || exit 1 | |
git commit || exit 2 | |
git push || exit 3 | |
exit 0 |
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
(xhtmlambda::def-element <::request) | |
(defun post-to-endpoint (xml) | |
(let ((drakma:*text-content-types* (acons "application" "xml" drakma:*text-content-types*))) | |
(drakma:http-request *endpoint* | |
:basic-authorization (list *api-key* "X") | |
:method :post | |
:content (with-output-to-string (s) | |
(format s "~w" xml))))) |
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
(ql:quickload :ningle) | |
(ql:quickload :clack) | |
(defvar *app* (make-instance 'ningle:<app>)) | |
(setf (ningle:route *app* "/some.json" :method :GET) | |
(lambda (p) | |
(declare (ignore p)) | |
'(200 | |
(:Content-Type "application/json") |
OlderNewer