Or: “Everybody likes being given a glass of water.”
By Merlin Mann.
It's only advice for you because it had to be advice for me.
#!/usr/bin/env ruby -wKU | |
# | |
# by Kelan Champagne | |
# http://yeahrightkeller.com | |
# | |
# A script to generate a personal podcast feed, hosted on Dropbox | |
# | |
# Inspired by http://hints.macworld.com/article.php?story=20100421153627718 | |
# | |
# Simply put this, and some .mp3 or .m4a files in a sub-dir under your Dropbox |
# this will create a course and populate it with synthetic analytics data | |
# (early / late / missing submissions, grades, messages, page views and participations) | |
# to use: in a canvas rails console | |
# > load 'fake_analytics.rb' | |
# > FakeAnalytics.create_course!(teacher) | |
# where teacher is the user to enroll as teacher in the new course | |
class FakeAnalytics | |
ASSIGNMENT_COUNT = 7 |
#!/bin/bash | |
# | |
# Usage: filestodirs directory_name | |
# | |
# Moves all files in the specified directory into | |
# subdirectories of the same name, minus the file | |
# extension. | |
if [ $# -ne 1 ]; then |