Experimenting zoom behavior of d3. Zoom behavior is only active on x-axis.
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
function ruby_version() { | |
echo 'ruby('`rbenv version | sed -e 's/ .*//'`')' | |
} | |
function node_version() { | |
echo 'node('`nvm version`')' | |
} | |
PROMPT='%{$fg[yellow]%}$(ruby_version):$(node_version) %{$fg_bold[red]%}➜ %{$fg_bold[green]%}%~ %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%} | |
$ ' |
This time, sort function is cleaner than the previous one. It doesn't need to update rect and text position, just the container g. And, by using 'transform', appending rect and text becomes easier.
A Pen by Hidenari Nozaki on CodePen.
A Pen by Hidenari Nozaki on CodePen.
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
HTML Font Size mapping | |
1: < 12px | |
2: < 15px | |
3: < 17px | |
4: < 21px | |
5: < 28px | |
6: < 40px | |
7: >= 40px |
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
[user] | |
name = ... | |
email = YOUR@EMAIL.COM | |
[core] | |
autocrlf = input | |
safecrlf = true | |
[alias] | |
co = checkout | |
ci = commit | |
st = status |
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
scala> val a = (1 to 10).toList | |
a: List[Int] = List(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) | |
scala> for (x <- a.grouped(2)) println(x) | |
List(1, 2) | |
List(3, 4) | |
List(5, 6) | |
List(7, 8) | |
List(9, 10) |
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
function ruby_version() { | |
echo `rbenv version | sed -e 's/ .*//'` | |
} | |
PROMPT='%{$fg[yellow]%}$(ruby_version)%{$fg[yellow]%} %{$fg_bold[red]%}➜ %{$fg_bold[green]%}%~ %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%} | |
$ ' | |
ZSH_THEME_GIT_PROMPT_PREFIX="[%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}] %{$fg[yellow]%}✗%{$reset_color%}" |
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
.chart { | |
background: #b0e0f8; | |
margin: 5px; | |
} | |
.chart rect { | |
stroke: white; | |
fill: steelblue; | |
} |
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/env python | |
import sys | |
import gdata.service | |
import subprocess | |
import getpass | |
import urllib | |
import re | |
import os | |
import ConfigParser |