1- Attaching Aliases to the native command line:
Steps in this stackoverflow answer.Quoting:
you may make the alias(es) persistent with the following steps,
| CULTURE SPEC.CULTURE ENGLISH NAME | |
| -------------------------------------------------------------- | |
| Invariant Language (Invariant Country) | |
| af af-ZA Afrikaans | |
| af-ZA af-ZA Afrikaans (South Africa) | |
| ar ar-SA Arabic | |
| ar-AE ar-AE Arabic (U.A.E.) | |
| ar-BH ar-BH Arabic (Bahrain) | |
| ar-DZ ar-DZ Arabic (Algeria) | |
| ar-EG ar-EG Arabic (Egypt) |
| // http://stevenbenner.com/2010/03/javascript-regex-trick-parse-a-query-string-into-an-object/ | |
| // JavaScript regex trick: Parse a query string into an object | |
| var queryString = {}; | |
| anchor.href.replace( | |
| new RegExp("([^?=&]+)(=([^&]*))?", "g"), | |
| function($0, $1, $2, $3) { queryString[$1] = $3; } | |
| ); | |
| // Usage |
1- Attaching Aliases to the native command line:
Steps in this stackoverflow answer.Quoting:
you may make the alias(es) persistent with the following steps,
| var PUNCTUATION = "" + | |
| "’'" + // apostrophe | |
| "()[]{}<>" + // brackets | |
| ":" + // colon | |
| "," + // comma | |
| "‒–—―" + // dashes | |
| "…" + // ellipsis | |
| "!" + // exclamation mark | |
| "." + // full stop/period | |
| "«»" + // guillemets |
If you want resources offline to learn about programming and web technologies MDN is for you! and I recommend to use MDN over w3school because w3school is outdated.
Download it offline (2.1gb) at https://mdn-downloads.s3-us-west-2.amazonaws.com/developer.mozilla.org.tar.gz
| <!DOCTYPE html | |
| PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <title>HTML Template</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <style> | |
| body { | |
| width: 100% !important; |
Hello (<-- two spaces)
World
Hello
World
| function rus_to_latin ( str ) { | |
| var ru = { | |
| 'а': 'a', 'б': 'b', 'в': 'v', 'г': 'g', 'д': 'd', | |
| 'е': 'e', 'ё': 'e', 'ж': 'j', 'з': 'z', 'и': 'i', | |
| 'к': 'k', 'л': 'l', 'м': 'm', 'н': 'n', 'о': 'o', | |
| 'п': 'p', 'р': 'r', 'с': 's', 'т': 't', 'у': 'u', | |
| 'ф': 'f', 'х': 'h', 'ц': 'c', 'ч': 'ch', 'ш': 'sh', | |
| 'щ': 'shch', 'ы': 'y', 'э': 'e', 'ю': 'u', 'я': 'ya' | |
| }, n_str = []; |
| "use strict"; | |
| // PHP function array() implemantation in JS | |
| // https://gist.github.com/Serrin/a8f336f486b6a8a6288197c8aa9ebbc8 | |
| // ES5 | |
| //function array () { return Array.prototype.slice.call(arguments); } | |
| // ES6 | |
| const array = (...a) => a; |