(source: http://webapps.stackexchange.com/a/80416/133151)
There are 4 language-related options.
- Web interface language:
hl=
Example: www.google.com/search?q=vilnius&hl=lt
- Pages in specified language:
lr=lang_
| // look here for more details : https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent | |
| var mouseMoveEvent = document.createEvent("MouseEvents"); | |
| mouseMoveEvent.initMouseEvent( | |
| "mousemove", //event type : click, mousedown, mouseup, mouseover, mousemove, mouseout. | |
| true, //canBubble | |
| false, //cancelable | |
| window, //event's AbstractView : should be window | |
| 1, // detail : Event's mouse click count |
| // gecko and webkit | |
| // details here https://developer.mozilla.org/en-US/docs/DOM/event.initKeyEvent | |
| var keyboardEvent = document.createEvent("KeyboardEvent"); | |
| var initMethod = typeof keyboardEvent.initKeyboardEvent !== 'undefined' ? "initKeyboardEvent" : "initKeyEvent"; | |
| keyboardEvent[initMethod]( | |
| "keydown", // event type : keydown, keyup, keypress | |
| true, // bubbles |
| define([ | |
| 'lodash' | |
| ], function(_) { | |
| // Regular expressions | |
| var digitTest = /^\d+$/, | |
| keyBreaker = /([^\[\]]+)|(\[\])/g, | |
| plus = /\+/g, | |
| paramTest = /([^?#]*)(#.*)?$/; |
(source: http://webapps.stackexchange.com/a/80416/133151)
There are 4 language-related options.
hl=Example: www.google.com/search?q=vilnius&hl=lt
lr=lang_| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| #!/usr/bin/env node | |
| var fs = require('fs'); | |
| var outfile = "primes.txt"; | |
| var count = 0; | |
| var maxCount = 100; | |
| var primes = []; | |
| var i = 2; |
| import something from './somewhere'; | |
| export default function() { | |
| console.log('hi'); | |
| } |
| #!/usr/bin/env node | |
| /* | |
| * Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js | |
| * Modified from https://gist.github.com/paolorossi/1993068 | |
| */ | |
| var http = require('http') | |
| , fs = require('fs') | |
| , util = require('util') |
| #!/usr/bin/env node | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const { promisify } = require('util'); | |
| const { ncp } = require('ncp'); | |
| const readDir = promisify(fs.readdir); | |
| const readFile = promisify(fs.readFile); | |
| const copyDir = promisify(ncp); |
| (async () => { | |
| console.log('hi!'); | |
| })() |