React-ifying Bostock's amazing original: https://bl.ocks.org/mbostock/3902569
unbind C-b | |
set -g prefix C-s | |
bind-key -r C-s send-prefix | |
bind-key u split-window -h | |
bind-key r source-file ~/.tmux.conf | |
"~/.tmux.conf reloaded" | |
bind-key -n C-h select-pane -L | |
bind-key -n C-j select-pane -D |
if [ -f ~/.bashrc ]; then | |
source ~/.bashrc | |
fi |
alias python=python3 | |
alias weather="curl wttr.in" | |
alias moon="curl wttr.in/Moon" | |
export HISTIGNORE="history:pwd:ls:ls -la:exit" |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
This carousel illustrates a possible UX for something like pro vs. con content (or point vs. counterpoint). The styling is minimalist for purposes of illustration and emphasizing it's baseline usability. Fork (or just copy and paste) and go wild. Images can also be substituted for text in the individual slides with ease! Headings provided by the Onion without permission (theonion.com).
NOTA BENE: Because Blocks use iFrames, you'll have to open this visualization in its own tab/ window to see the chart resize with the window resize.
For sake of reference, toggle the radio buttons to get .tvs with variable rows of data. Up to several hundred data points will resize with ease, but at over 1000, the browser starts to hurt on window resize.
The line chart itself is, of course, based on Bostock's original example here.
const collatz = (n) => { | |
if (n == 1) { | |
console.log(n); | |
return 1; | |
} | |
if (n % 2 == 0) { // n is even | |
console.log(n); | |
return 1 + collatz(n/2) | |
} else { // n is odd |
palindrome := method(a, a reverse == a) | |
palindrome("racecar") // ==> true | |
palindrome("foobar") // ==> false |
require 'sinatra' | |
get '/hi' do | |
"Hello World!" | |
end |