I hereby claim:
- I am dcao on github.
- I am dmcao (https://keybase.io/dmcao) on keybase.
- I have a public key ASCRXBBIKxXBcAFxtL2DnXuCPlh4wzMY_q-M5Qrt5SwdQgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
(require 'ov) | |
(defun org-max-heading-depth () | |
"Get maximum depth of a heading." | |
(let ((max-depth 0) | |
depth) | |
(org-map-entries (lambda () | |
(when (> (setq depth (car (org-heading-components))) max-depth) | |
(setq max-depth depth)))) | |
max-depth)) |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Interactivitity</title> | |
<script src="http://d3js.org/d3.v4.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<p>Move the points!</p> | |
<script> |
macro require(mod::Symbol, qualified::Symbol, name::Symbol) if qualified == as return :(import $mod; $(esc(:(const $name = $mod)))) end end |
This is part of a series of examples that describe the basic operation of the D3.js force layout. Eventually they may end up in a blog post that wraps everything together.
The first example creates the simplest possible graph using a force layout. The comments in the code walk through the steps in creating a force directed graph.
Things start to get more interesting in the next example.
" .vimrc | |
" See: http://vimdoc.sourceforge.net/htmldoc/options.html for details | |
" For multi-byte character support (CJK support, for example): | |
"set fileencodings=ucs-bom,utf-8,cp936,big5,euc-jp,euc-kr,gb18030,latin1 | |
" Vim Plug | |
set nocompatible " Be iMproved | |
call plug#begin('C:\Users\David\vimfiles\plugged') |
;;; init.el / fedoras | |
;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;; ;; ;; | |
;;; ;; 1. Preamble - Load MELPA ;; | |
;;; ;; ;; | |
;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(require 'erc) | |
(require 'package) |
This unusual clock in polar coordinates is based on a Flash screensaver by pixelbreaker. See also the earlier Protovis version.
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |