Coder Social home page Coder Social logo

snippie's Introduction

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 [email protected]: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

  • 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

snippie's People

Contributors

mattt avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

dulacp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.