Have you seen this?
(N ^= 1) I was a bit stumped by this, I have not seen this before in JavaScript. Chances are you may not have seen it before either. I wrote a quick little JSFiddle to try and see what it does. But before I get into that I thought I should get into where IRead more about Have you seen this?[…]
Iterate Through a Date Range.
When you need to write logic for each specific date in a date range. One way to iterate through the days is using something like this method. This method could then be called like: If you have not used yield before there are many great articles out there already that can explain in more detail,Read more about Iterate Through a Date Range.[…]
Check for null before calling ToString()
Handy little snippet of code for checking for null before calling ToString(). I found this little bit of code pretty clever and handy. Let us avoid those errors: private static string ToSafeString(object obj) { return (obj ?? string.Empty).ToString(); } Source Share me… Facebook AccessDeniedAccess DeniedK21C5V02HNNR48RBEsXdYCrZ6vMDKmeu4+7E9AMu7q0E5Vh7HfAS702/jbASF8+bkoDAQQCk6Hzc1WzNzeWhIYmMMYM= AccessDeniedAccess DeniedJRXPF89EFX6YJD4AY8Ufw01gS6KOijpDIyfr4DExHh4KKkluIM/t/egesZkC7WliiRNkfTlDYeJXiYbFJcr8+FHSt5c=Google Twitter Pinterest Email Linkedin
Browser Caching JavaScript Files – Lets force it to update!
Ever have a situation where you have to push a new JavaScript file but know you have users that might have it cached, or tired of having to refresh the page to get the latest JavaScript file? I ran across this issue today and found a nice solution that worked as I needed it to.Read more about Browser Caching JavaScript Files – Lets force it to update![…]