most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| (function(d) { | |
| var dl = d.createElement('a'); | |
| dl.innerText = 'Download MP3'; | |
| dl.href = "http://media.soundcloud.com/stream/"+d.querySelector('#main-content-inner img[class=waveform]').src.match(/\.com\/(.+)\_/)[1]; | |
| dl.download = d.querySelector('em').innerText+".mp3"; | |
| d.querySelector('.primary').appendChild(dl); | |
| dl.style.marginLeft = '10px'; | |
| dl.style.color = 'red'; | |
| dl.style.fontWeight = 700; | |
| })(document); |
| # Find all markdown files | |
| path = File.join(File.dirname(__FILE__), "source", "**/*.html.markdown") | |
| # Also generate .latex files along side | |
| Dir[path].each do |markdown_file| | |
| http_path = markdown_file.split("source").last.gsub(".html.markdown", "") | |
| page "#{http_path}.latex", :proxy => "#{http_path}.html", :latex => true, :layout => false | |
| end | |
| require "fileutils" |
| ### Here's one way to do it. | |
| library(igraph) | |
| library(ggplot2) | |
| ## The igraph docs say that vertex.label.degree controls the position | |
| ## of the labels with respect to the vertices. It's interpreted as a | |
| ## radian, like this: | |
| ## | |
| ## Value is : Label appears ... the node |