Permalink
Browse files

python script now updates readme.md directly, updated readme

  • Loading branch information...
calimarkus committed Feb 13, 2013
1 parent 5c7b79a commit 2035faf59c8e50205932b7f26c9892152184449a
Showing with 9 additions and 7 deletions.
  1. +5 −2 .generateDescription.py
  2. +4 −5 README.md
View
@@ -2,7 +2,9 @@
import os
import glob
-file = open('description.md', 'w')
+file = open('readme.md', 'w')
+file.write('# CodeSnippets\n\nThese are my Xcode 4 CodeSnippets. Just check them out into the following path:\n\n')
+file.write('`~/Library/Developer/Xcode/UserData/CodeSnippets`\n\nAnd you\'re ready to go.\n\n')
file.write('## Snippet Descriptions\n\n(generated with .generateDescription.py)\n\n')
listing = os.listdir(".")
@@ -40,4 +42,5 @@
file.write(summary + '\n\n')
file.write(' ' + contents.replace('\n', '\n ') + '\n\n')
-file.close()
+file.close()
+
View
@@ -8,8 +8,7 @@ And you're ready to go.
## Snippet Descriptions
-(created with .generateDescription.py)
-
+(generated with .generateDescription.py)
**allocInit.codesnippet** (Initalize an object)
Shortcut: `alloc`
@@ -92,9 +91,9 @@ Pushes a newly created ViewController on the current NavigationController
<#UIViewController#>* viewController = [[<#UIViewController#> alloc] init];
[self.navigationController pushViewController:viewController animated:YES];
-**stringWithFormat.codesnippet** (Format a string)
+**stringWithFormat.codesnippet** (Formatted String)
Shortcut: `format`
-Formats a string
+Shortcut for a formatted string
- [NSString stringWithFormat: @"<#formatString#>"]
+ [NSString stringWithFormat: @"<#string#>", <#param1#>]

0 comments on commit 2035faf

Please sign in to comment.