This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
Toggle hidden files in Finder: shift + cmd + .
Related tutorial: http://krypted.com/mac-os-x/mavericks-show-hidden-files/
// Ctrl+Shift+C to open Chrome Console. | |
// Choose an IFrame of the Vimeo Video with a comment `player.vimeo.com` | |
// in the drop-down list `top`. | |
// Run a script: | |
var videos = []; | |
$$('script')[3].textContent.match(/\{[^{]+?mp4[^}]+?\}/g).forEach( | |
x => { o = JSON.parse(x); | |
videos.push(o);}); | |
videos.sort((a, b) => a.quality.localeCompare(b.quality)).forEach( |
FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font: 10px sans-serif; | |
} | |
.axis path, | |
.axis line { |
#unique number of values in a DataFrame column | |
df[column_name].nunique() | |
# List unique values in a DataFrame column | |
pd.unique(df.column_name.ravel()) | |
# Convert Series datatype to numeric, getting rid of any non-numeric values | |
df['col'] = df['col'].astype(str).convert_objects(convert_numeric=True) | |
(http://stackoverflow.com/questions/17071871/select-rows-from-a-dataframe-based-on-values-in-a-column-in-pandas) |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |