- List
- List
- indented list
- indented list item two
- outer list.
# 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 (£###.##) | |
# |
echo | |
echo "source dir: ${PHOTO_SRC_DIR:=/Volumes/EOS_DIGITAL}" | |
echo "target base dir: ${PHOTO_TARG_BASE_DIR:=/Volumes/Ellington/Raw Imports}" | |
echo "date: ${FOLDER_DATE:=`date "+%Y-%m-%d"`}" | |
PHOTO_TARG_DIR="$PHOTO_TARG_BASE_DIR/$FOLDER_DATE" | |
PHOTO_TMP_DIR="$PHOTO_TARG_BASE_DIR/tmp_`date +%s`" | |
echo "target folder will be: ${PHOTO_TARG_DIR}" | |
echo |
(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)))) |
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: