Skip to content

Commit

Permalink
Script for new problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Boster committed Feb 26, 2012
1 parent 0bb9ebd commit d64a1fe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions new_problem
@@ -0,0 +1,12 @@
#!/bin/bash

pushd .
cd /Users/boster/Documents/Development/project_euler
printf -v num_str '%03d' $1
echo "Creating problem $num_str"

mkdir problems/$num_str

echo "#!/usr/bin/env ruby" >> problems/$num_str/answer$num_str.rb

popd
1 change: 1 addition & 0 deletions problems/003/answer003.rb
@@ -0,0 +1 @@
#!/usr/bin/env ruby

0 comments on commit d64a1fe

Please sign in to comment.