format
-
vimrc settings
Located in ~/.vimrc If it doesn’t exist, create it! To see more info on these settings, from within vim: To format a file with mixed tabs and spaces, after applying the above settings, from within vim: Continue reading
-
Concatenate string in Objective-C
Unfortunately, this is not as straight forward as it seems it should be. This really comes down to roughly two approaches in my opinion: stringByAppendingString approach: strigWithFormat approach: References StackOverflow, http://stackoverflow.com/questions/510269/how-do-i-concatenate-strings-in-objective-c cocoadevcentral.com, “Learn Objective-C”, http://cocoadevcentral.com/d/learn_objectivec/ Continue reading
-
PHP Quick Reference
Escape sequences for print output: Max integer and float size (overflow): generate random number: Get Current Page Name: Came across the following on stackoverflow while looking for the PHP equivalent of string.format. Sprintf (similar to php printf, in c# string.format):… Continue reading
-
String Formatting
Snippets below have been condensed from their original sources for brevity. See references for original articles. All examples are in C# .Net. My own little function: Format With extension method by James Newton-King: References James Newton-King, “FormatWith”,http://james.newtonking.com/archive/2008/03/27/formatwith-string-format-extension-method.aspx Continue reading