wc -l <filename> # lines
wc -c 'string' #length of the string
sed '<lne_number>q;d' <filename> | wc -c # length of the output string
ser 'q;d'
##MAC - COMMAND LINE
###Random #####Go to teh home directory Cmd + shift + H
you should create your own bash profile: ~/.profile
#####compress files tar -cvzf nameofmytar.tar.gz /path/to/file/*.xxx
##How do I force a file to download from the web? source: https://www.dropbox.com/en/help/201 source:http://www.webcastingtoday.com/2013/10/how-to-create-download-link-for-file-on.html
https://www.dropbox.com/s/qmocfrco2t0d28o/Fluffbeast.docx
to
https://www.dropbox.com/s/qmocfrco2t0d28o/Fluffbeast.docx?raw=1
##Google Style Python Docstrings
source: http://sphinxcontrib-napoleon.readthedocs.org/en/latest/example_google.html
[ | |
{ "keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": false } }, | |
{ "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": true } } | |
] |
#D3.js Reference
###API reference https://github.com/mbostock/d3/wiki/API-Reference
###Sortable Table http://jsfiddle.net/recek/v58zT/
###You can remove the div element using
'source: http://stackoverflow.com/questions/6242605/excel-vba-getting-row-of-clicked-button | |
Sub test() | |
MsgBox ("Row of pressed button: " & ActiveSheet.Shapes(Application.Caller).TopLeftCell.Row) | |
End Sub |
It is my redesigned version of a pie chart that was presented in a one of Steve Jobs presentations about smartphone market. It was a exercise from Lecture 3 of 'Data Visualization and D3.js' course from Udacity .
Please, visit here to see the result and click here to come back to this page.
I base my code on this and this examples. I'm still don't understand very well what I am doing =)
As pointed at the source, in the original chart, the november rate is lower then the previous one, but it is shown as if it was at the same level.
Also, I decided to keep the Y axes starting at 8% to emphasise the rate change between the months. As the unemployment rate of any country is unlikely to go to 0, I guess that it makes sense starting the chart in a higher rate.
Variable | Type | Encoding |
---|---|---|
date | Quantitative | X |
unemployment rate | Quantitative | Y |