#!
Also called a shebang (from unix/linux)
The hash bit is self-explanatory.
Apparently journalists way back when referred to exclamations as bangs (presumably it made it easier to send a telegram).
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Hello World</title> | |
| </head> | |
| <body> | |
| <h1>Hello World</h1> | |
| <p>This is a website.</p> | |
| </body> |
| <!-- The HTML Page Stub --> | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>Hello World</title> | |
| </head> | |
| <body> | |
| <!-- Content goes here --> | |
| </body> |
| <!-- 1: First JavaScript snippet (Hello World Button) --> | |
| <button id="mybutton">Click me</button> | |
| <script> | |
| $(document).ready(function() { | |
| var button = document.getElementById("mybutton"); | |
| button.addEventListener("click", function(event) { | |
| alert("Hello World"); | |
| }); | |
| }); |
| // Explicitly save/update a url parameter using HTML5's replaceState(). | |
| function updateQueryStringParam (param, value) { | |
| var baseUrl = [location.protocol, '//', location.host, location.pathname].join(''); | |
| var urlQueryString = document.location.search; | |
| var newParam = param + '=' + value; | |
| var params = '?' + newParam; | |
| // If the "search" string exists, then build params from it | |
| if (urlQueryString) { | |
| var keyRegex = new RegExp('([\?&])' + param + '[^&]*'); |
| # get version of current kernel | |
| uname -r | |
| # get a list of the stored kernels | |
| dpkg --list | grep linux-image | |
| # remove an old kernel | |
| sudo apt-get purge linux-image-x.x.x.x-generic | |
| # update grub |
| using terms from application "Quicksilver" | |
| on process text log_text | |
| set theDate to (do shell script "date '+%A %d-%m-%Y'") | |
| set theTime to (do shell script "date '+%H:%M'") | |
| set theText to log_text | |
| if (log_text is equal to "start") then | |
| set theText to " | |
| --- | |
| " & theDate & " |
| license: mit |
| license: mit |
| license: mit |