AGQR の放送を保存するスクリプト.
- 31日まである月に翌日の指定が失敗する
というバグが存在する.
AGQR の放送を保存するスクリプト.
というバグが存在する.
require "active_record" | |
namespace :db do | |
db_config = YAML::load(File.open('config/database.yml')) | |
db_config_admin = db_config.merge({'database' => 'postgres', 'schema_search_path' => 'public'}) | |
desc "Create the database" | |
task :create do | |
ActiveRecord::Base.establish_connection(db_config_admin) |
#!/bin/zsh | |
[ -z $1 ] && exit -1 | |
nakatoji_sequence(){ | |
last=$((4 * $1)) | |
for i in {1..$1} ; do | |
echo -n "$(($last - $i * 2 + 2)),$(($i * 2 - 1))," | |
echo -n "$(($i * 2)),$((1 + $last - $i * 2))," | |
done | sed "s/,$//g" | |
} | |
file=$(echo $1 | sed "s/\.pdf$//g") |
#!/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 |