Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.
/ snippie Public archive

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

Notifications You must be signed in to change notification settings

supermarin/snippie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 https://github.com/mneorr/snippie.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

  • Delegate pragma mark - delpragma
  • Image View With Image Named - imgimg
  • Release object - release
  • Property Custom class - pobj
  • Property From dictionary - pvfk
  • View did dissapear - vdd
  • View Will Dissappear - vwd
  • Pragma Mark - mark
  • Private Pragma mark - pmark
  • Better Initializer - init
  • View Will Appear - vwa
  • NSLog - log
  • Factory method with Dictionary - facdict
  • @Synthesizer with _prefix - psynth
  • Private Category - privcat
  • Pragma - View Lifecycle - pview
  • View Did Load - vdl
  • View Did Unload - vdu
    • ``
  • View Did Appear - vda
  • NSString with format - swf
  • Property String - pstr
  • Init With Dictionary - initdict
  • Value For Key - vfk
  • Property NSNumber - pnum
  • UIViewController pragma marks - conpragmas
  • Singleton - singleton
  • Image named - inamed
  • Property IBOutlet custom class - pibo
  • UITableView delegate and datasource default methods - delDat
  • Property NSArray - parr
  • Method declaration - method
  • JSON operation - jsonop
  • Void method declaration - void

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •