You know how, in JavaScript, we can set a value to a variable if one doesn't, like this:
name = name || 'joe';This is quite common and very helpful. Another option is to do:
name || (name = 'joe');You know how, in JavaScript, we can set a value to a variable if one doesn't, like this:
name = name || 'joe';This is quite common and very helpful. Another option is to do:
name || (name = 'joe');| cd /usr/src/ | |
| wget http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3047_i386.deb | |
| dpkg -i sublime-text_build-3047_i386.deb |
| $(document).ready(function() { | |
| // Support for AJAX loaded modal window. | |
| // Focuses on first input textbox after it loads the window. | |
| $('[data-toggle="modal"]').click(function(e) { | |
| e.preventDefault(); | |
| var url = $(this).attr('href'); | |
| if (url.indexOf('#') == 0) { | |
| $(url).modal('open'); | |
| } else { |
| /* | |
| BoxBlur - a fast almost Box Blur For Canvas | |
| Edited by Yorick to make it faster in modern browsers | |
| Version: 0.3 | |
| Author: Mario Klingemann | |
| Contact: [email protected] | |
| Website: http://www.quasimondo.com/ |
| ## Prepare ################################################################### | |
| # Remove RVM | |
| rvm implode | |
| # Ensure your homebrew is working properly and up to date | |
| brew doctor | |
| brew update | |
| ## Install ################################################################### |