View clfu.md
pbpaste | perl -e 'use URI::Escape; my $url = <STDIN>; chomp $url; my $url = "https://www.pinterest.com/pin/find/?url=" . uri_escape($url); print($url);' | xargs open
View The Path to Freedom.md

The Path to Freedom

We must not believe the many, who say that only free people ought to be educated, but we should rather believe the philosophers who say that only the educated are free. – Epictetus, Roman philosopher and former slave, Discourses

Frederick Bailey was a slave. As a boy in Maryland in the 1820s, he had no mother or father to look after him. ('It is a common custom,' he later wrote, 'to part children from their mothers . . . before the child has reached its twelfth month.') He was one of countless millions of slave children whose realistic prospects for a hopeful life were nil.

View chapter23.md

Maxwell and The Nerds

Why should we subsidize intellectual curiosity?

– Ronald Reagan, campaign speech, 1980

There is nothing which can better deserve our patronage than the promotion of science and literature. Knowledge is in every country the surest basis of public happiness.

– George Washington, address to Congress, 8 January 1790

View requests_curl_logger.py
"""
Log your requests activity in curl format and with pretty colors.
import requests
from requests_curl_logger import curl_log
r = requests.get('http://example.com', hooks=dict(response=curl_log))
"""
from json import dumps as json_dumps
View trump.py
#!/usr/bin/env python
def trumpify(x):
return '“Nobody %s more than me.” – Donald Trump' % x
if __name__ == "__main__":
things = ['repects women', 'understands the horror of nuclear', 'reads the Bible', ]
for thing in things:
print(trumpify(thing))
View email.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
<title></title>
<meta property="og:title" content="">
<meta name="twitter:title" content="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" id="hs-inline-css">
/*<![CDATA[*/
/* everything in this node will be inlined */
View refresh_css.txt
// run this in your console…
(function(){
var nc = (new Date()).valueOf();
jQuery('style').each(function() {
var c = this.innerHTML;
if (c.indexOf('@import')!==-1)
this.innerHTML = c.replace('.css?', '.css?' + nc );
});
})();
View monty hall
{
"metadata": {
"name": "",
"signature": "sha256:54dd0380143918c25eba34914e70f3100831189ab021b2871dcf92f0b5cce9d3"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
View birthday_problem
{
"metadata": {
"name": "",
"signature": "sha256:0c025d13898e4457f1df2d19f109c610049acaa5b621e1c9aa0135551011f5f1"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
View excel_comments_export.vba
' via http://www.extendoffice.com/documents/excel/1579-excel-export-comments-to-word.html
Sub CopyCommentsToWord()
'Update 20140325
Dim xComment As Comment
Dim wApp As Object
On Error Resume Next
Set wApp = GetObject(, "Word.Application")
If Err.Number <> 0 Then
Err.Clear