Note: "Forked" from Latency Numbers Every Programmer Should Know
| Event | Nanoseconds | Microseconds | Milliseconds | Comparison |
|---|---|---|---|---|
| L1 cache reference | 0.5 | - | - | - |
| Branch mispredict | 5.0 | - | - | - |
| L2 cache reference | 7.0 | - | - | 14x L1 cache |
| Mutex lock/unlock | 25.0 | - | - | - |
| var net = require("net"); | |
| process.on("uncaughtException", function(error) { | |
| console.error(error); | |
| }); | |
| if (process.argv.length != 5) { | |
| console.log("usage: %s <localport> <remotehost> <remoteport>", process.argv[1]); | |
| process.exit(); | |
| } |
| Online Builder, Basis and Full version | |
| al-init $element | |
| al-model - proxy for al-value, al-focused, al-checked ... | |
| про эвенты и атрибуты - без компонентов | |
| @event | |
| @keydown.alt.control.shift.meta.enter |
Note: "Forked" from Latency Numbers Every Programmer Should Know
| Event | Nanoseconds | Microseconds | Milliseconds | Comparison |
|---|---|---|---|---|
| L1 cache reference | 0.5 | - | - | - |
| Branch mispredict | 5.0 | - | - | - |
| L2 cache reference | 7.0 | - | - | 14x L1 cache |
| Mutex lock/unlock | 25.0 | - | - | - |
| from telethon import TelegramClient | |
| from telethon.errors.rpc_errors_401 import SessionPasswordNeededError | |
| # (1) Use your own values here | |
| api_id = 17349 | |
| api_hash = '344583e45741c457fe1862106095a5eb' | |
| phone = 'YOUR_NUMBER_HERE' | |
| username = 'username' |
| // file /usr/share/X11/xkb/symbols/se | |
| partial alphanumeric_keys | |
| xkb_symbols "se" { | |
| name[Group1]="Swedish"; | |
| // tool: xev | |
| // mapping key file: /usr/share/X11/xkb/keycodes/evdev | |
| // reload conf: setxkbmap -layout se | |
| // key <code> {[ default, +shift, +altGr, +shit +altgr ]}; |
| Svelte | Malina.js | Shortcut / Comment |
|---|---|---|
| Reference to element | ||
bind:this={ref} |
#ref |
|
| 1-way binding | ||
prop={prop} |
prop={prop} |
|
{prop} |
{prop} |
|
| 2-way binding | ||
bind:value={value} |
bind:value={value} |
:value={value} / :value:value |
bind:value |
bind:value |
:value |
| <script type="typescript"> | |
| let name: string = 'bar'; | |
| </script> | |
| <h1>Hello {name}!</h1> |
| // file: /usr/share/X11/xkb/symbols/se | |
| default partial alphanumeric_keys | |
| xkb_symbols "basic" { | |
| include "latin(type2)" | |
| include "se(se)" | |
| }; | |
| partial alphanumeric_keys |