Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
/** | |
* Will gracefuly scroll the page | |
* This function will scroll the page using | |
* an `ease-in-ou` effect. | |
* | |
* You can use it to scroll to a given element, as well. | |
* To do so, pass the element instead of a number as the position. | |
* Optionally, you can pass a `queryString` for an element selector. | |
* | |
* The default duration is half a second (500ms) |
config.load_autoconfig() | |
config.bind('R', 'config-source ;; message-info config-reloaded') | |
# saner defaults | |
# -------------- | |
c.auto_save.session = True | |
c.aliases['x'] = 'quit --save' | |
c.completion.shrink = False | |
c.input.insert_mode.auto_load = True | |
c.confirm_quit = ["downloads"] |
const app = require('choo')() | |
const html = require('choo/html') | |
app.use(function (state, emitter) { | |
state.loggedIn = false | |
emitter.prependListener('DOMContentLoaded', function () { | |
if (state.route !== '/shazam' && !state.loggedIn) { | |
emitter.emit('pushState', '/shazam') | |
emitter.emit('render') |
function convertMS(ms) { | |
var d, h, m, s; | |
s = Math.floor(ms / 1000); | |
m = Math.floor(s / 60); | |
s = s % 60; | |
h = Math.floor(m / 60); | |
m = m % 60; | |
d = Math.floor(h / 24); | |
h = h % 24; | |
return { d: d, h: h, m: m, s: s }; |
var h = require('virtual-dom/h') | |
var diff = require('virtual-dom/diff') | |
var patch = require('virtual-dom/patch') | |
var createElement = require('virtual-dom/create-element') | |
var Delegator = require('dom-delegator') | |
var sendChange = require('value-event/change') | |
Delegator() | |
var state = main({ actions: {} }, update) |
var caesar = { | |
encode: function encode(plainText, shift) { | |
if (!plainText) throw new Error('No plaintext provided'); | |
shift = Number(shift) || 0; | |
return encryptText(plainText, shift); | |
} | |
}; | |
function encryptText(str, shift) { | |
str = str.toUpperCase().replace(/[^\w\s]/gi, ''); |