Category Archives: tools

Amazon.com: KMASHI 10000mAh MP816 (2.1Amp+1Amp Output,2Amp Input Fast Charging) Dual USB Portable External Extended Battery Pack Power Bank Backup Charger For iPhone 5S 5C 5 4S 4 iPad Air Retina Mini Samsung Galaxy S5 I9600 Neo S4 I9500 I9190 S3 I9300 S3 I8190 S2 Note 3 N9000 Gear HTC Sensation One X S EVO 3D 4G DNA Thunderbolt Incredible Droid DNANexus 4 7 10 LG Optimus V Blackberry Z10 Z30 Q5 Q10 Bold Curve Torch Motorola Razr Maxx Bionic ATRIX Sony Xperia Z Z1 Nokia Lumia 1020 920 Google Glasses and other 5V Smartphones: Cell Phones & Accessories

Amazon.com: KMASHI 10000mAh MP816 (2.1Amp+1Amp Output,2Amp Input Fast Charging) Dual USB Portable External Extended Battery Pack Power Bank Backup Charger For iPhone 5S 5C 5 4S 4 iPad Air Retina Mini Samsung Galaxy S5 I9600 Neo S4 I9500 I9190 S3 I9300 S3 I8190 S2 Note 3 N9000 Gear HTC Sensation One X S EVO 3D 4G DNA Thunderbolt Incredible Droid DNANexus 4 7 10 LG Optimus V Blackberry Z10 Z30 Q5 Q10 Bold Curve Torch Motorola Razr Maxx Bionic ATRIX Sony Xperia Z Z1 Nokia Lumia 1020 920 Google Glasses and other 5V Smartphones: Cell Phones & Accessories.

vim tips

Marks

Command Description
ma set mark a at current cursor location
'a jump to line of mark a (first non-blank character in line)
`a jump to position (line and column) of mark a
d'a delete from current line to line of mark a
d`a delete from current cursor position to position of mark a
c'a change text from current line to line of mark a
y`a yank text to unnamed buffer from cursor to position of mark a
:marks list all the current marks
:marks aB list marks aB

http://vim.wikia.com/wiki/Using_marks

Go to Line

gg – start of the file

G – end of the file

42G or 42gg or :42<Enter> to 42 line

Tyler McGinnis » AngularJS: Factory vs Service vs Provider

TL;DR

1) When you’re using a Factory you create an object, add properties to it, then return that same object. When you pass this service into your controller, those properties on the object will now be available in that controller through your factory.

2) When you’re using Service, it’s instantiated with the ‘new’ keyword. Because of that, you’ll add properties to ‘this’ and the service will return ‘this’. When you pass the service into your controller, those properties on ‘this’ will now be available on that controller through your service.

3) Providers are the only service you can pass into your .config() function. Use a provider when you want to provide module-wide configuration for your service object before making it available.

via Tyler McGinnis » AngularJS: Factory vs Service vs Provider.