Skip to content

vampirewalk/snippie

 
 

Repository files navigation

Snippets backup-import & Cheatsheet generator

For Xcode.

You can browse snippets from my xcode-arsenal in the readable_snippets directory above.

Below is the auto-generated cheat-sheet from your own exported snippets. It's created every time you back up your snippets and push to git.

Installation

Fork the repository, to be able to export your own snippets and cheat-sheet.
You can save the repository wherever you want.
$ git clone git@github.com:mneorr/xcode-snippets-manager.git xcode-snippets
$ cd xcode-snippets
$ bundle install

Standard usage

$ rake backup
This will clear my snippets, and put yours in the repository.

It will also generate readable snippets in the readable_snippets dir. And, it will re-create this file.

After you do backup, commit and push, and you should have your fork up and ready. The cheat-sheet will be updated as well.

Import

to your other computers, or a new OS installation

The simplest thing you can do is:
$ rake import
It should not duplicate the same snippets.

However, if you want to clear the existing snippets, and use the fresh ones, you may want to use
$ rake clean_import



Cheat Sheet

  • Memory Warning - memw
  • pragma mark - pm
  • Autolayout UIView - autolayout uiview
  • Test Init - testinit
  • dispatch_async Pattern for Background Processing - async
  • Class Continuation - continuation
  • Documents Directory Path - documents
  • UIView Animation - viewani
  • Autolayout Controller - autolayout controller
  • NSFetchedResultsControllerDelegate - frcd
  • ImageView - imv
  • init - init
  • KVO Setter - kvo
  • Library Directory Path - library
  • UIViewController Lifecycle - lifecycle
  • MFMailComposeViewController Initialization & Delegate - mailcomp
  • #pragma Mark - mark
  • NSLocalizedString - nsl
  • Shared Singleton - shared
  • Log Stack Trace - stack
  • __strong self - strongself
  • UIControlEventTouchUpInside - tu
  • UITableViewDelegate - tvdel
  • UITableViewDataSource - tvds
  • __weak self - weakself

About

Xcode snippets. Browse. Backup. Import. Generate cheat sheet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 53.1%
  • Ruby 45.7%
  • Shell 1.2%