30 May '16, 11am

No Newline at End of File

Have you ever seen “No newline at end of file” in your git diffs? Us, too. ~/.dotfiles% git diff diff --git a/vimrc b/vimrc index 7e31913..a8b5f95 100644 --- a/vimrc +++ b/vimrc @@ -2,4 +2,4 @@ let configs = split(glob("~/.vim/configs/*"), "\n") for filename in configs execute 'source ' filename -endfor +endfor \ No newline at end of file Why does this happen and what does it mean? Try it in your shell Here I have made a text file and, by definition, a non-text file: ~% echo foo > text-file ~% od -c text-file 0000000 f o o \n 0000004 ~% wc -l text-file 1 text-file ~% echo -n foo > binary-file ~% od -c binary-file 0000000 f o o 0000003 ~% wc -l binary-file 0 binary-file If you open each file in vim, they will display similarly. The intuition behind what vim is doing is “separate each line with a line break”, which is different from “display each \n as a line break”. However...

Full article: https://robots.thoughtbot.com/no-newline-at-end-of-file

Tweets

New version of FAT32 library adds support for long file names (LFN)

New version of FAT32 library adds support for l...

mikroe.com 30 May '16, 3pm

New version of FAT32 library adds support for long file names (LFN) by Srdjan Misic | May 30, 2016 Our software team publi...

#singapore #sales Club 21 End of Season Sale: C...

sgrate.com 29 May '16, 1pm

promotion start : 2016-05-28 promotion end : 2016-06-05 promotion location : Club 21 credit card 1 : UOB PRVI AMEX Card cr...

The World Agrees: Let's End Illegal Fishing

The World Agrees: Let's End Illegal Fishing

ecowatch.com 29 May '16, 9am

IUU fishing is a major problem around the world and poses serious threats to the effective conservation and management of ...

Save up to 50% off the latest and greatest duri...

finishline.com 31 May '16, 10pm

Free Shipping on ThousanDs of Styles. Every Day. *Promotional offer only valid on eligible items. Look for the "free shipp...

World's longest rail tunnel sees light at end o...

channelnewsasia.com 29 May '16, 7am

GENEVA: When Swiss engineer Carl Eduard Gruner came up with the idea to build the world's longest rail tunnel under the Al...

These five steps will end US #ForeignPolicy of #military intervention

These five steps will end US #ForeignPolicy of ...

sputniknews.com 03 Jun '16, 7pm

It is no secret anymore that Washington's foreign policy of military intervention does not work. "The default foreign poli...