Is the following shorthand for $(document).ready? (function($){ //some code })(jQuery); I see this pattern used a lot, but I’m unable to find any reference to it. If it is...
Can I write the if else shorthand without the else? var x=1; x==2 ? dosomething() : doNothingButContinueCode(); I’ve noticed putting null for the else works (but I have no...
I can’t seem to find the correct syntax for the CSS transition shorthand with multiple properties. This doesn’t do anything: .element { -webkit-transition: height .5s, opacity .5s .5s; -moz-transition:...
Is there an easy way to create a multiline string literal in C#? Here’s what I have now: string query = "SELECT foo, bar" + " FROM table" +...