This is a test.
-
I am a dot
-
I am a subdot
-
-
I am a toplevel dot
This is a test.
I am a dot
I am a subdot
I am a toplevel dot
An attempt to summarize all the arguments around tabs vs. spaces.
One way to extract polling data from Duolingo. Ask each user to write what they want in their comment in the form:
I vote for Tamil.
Then, with the script below, you can extract the vote for each user into a CSV output. If you want to run this and save to a CSV so you can upload it to Google spreadsheets, you can do this (on a mac):
ruby get_poll_results.rb 'https://www.duolingo.com/comments/3938897' > poll_results.csv
What I did so far:
var CONFIGS = [ | |
{ search: "label:github", after_days: 5 }, | |
{ search: "label:tlug", after_days: 30 }, | |
{ search: "from:Trello", after_days: 30 }, | |
{ search: "from:Quora Digest", after_days: 10 } | |
]; | |
var SAVE_EMAIL_LABEL = "saved"; | |
var EMAIL_FOR_SUMMARIES = "you@me.com"; | |
var SEARCH_LIMIT = 100; |
# Simple script to determine what your rough overall annual yield is for something that has gained value with multiple deposits and withdrawals. | |
# | |
# Expects an input file with each line in one of the following formats: | |
# | |
# 1. amount added: | |
# yyyy-mm-dd £###.## | |
# | |
# 2. amount subtracted: | |
# yyyy-mm-dd (£###.##) | |
# |
(define (cc amount kinds-of-coins) | |
(if (or (< amount 0) (= kinds-of-coins 0)) 0 | |
(+ (cc amount (- kinds-of-coins 1)) | |
(if (= amount (first-denomination kinds-of-coins)) 1 0) | |
(cc (- amount (first-denomination kinds-of-coins)) kinds-of-coins)))) |