- Perunaa
- Sipulia
- Sitruunaa
- Oliiviöljy
- Oregano
- Suola
- Vettä
Lisäksi jos haluaa lisää makua:
- Valkosipulia
#include <initializer_list> | |
#include <string> | |
std::string JoinPath(const std::initializer_list<std::string>& parts) | |
{ | |
#if defined(_WIN32) | |
static const char separator = '\\'; | |
#else | |
static const char separator = '/'; | |
#endif |
export const usePreferDarkMode = (): boolean => { | |
const [darkMode, setDarkMode] = useState<boolean>( | |
window.matchMedia | |
? window.matchMedia('(prefers-color-scheme: dark)').matches | |
: false | |
); | |
useEffect(() => { | |
const mediaQueryList = window.matchMedia | |
? window.matchMedia('(prefers-color-scheme: dark)') |
/* Kompilera med: cc TURN-OFF-CAPSLOCK.c -lX11 -o TURN-OFF-CAPSLOCK */ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <X11/X.h> | |
#include <X11/XKBlib.h> | |
int main() | |
{ | |
Display* display; |
// ==UserScript== | |
// @name Ask.fm mandatory registration removal | |
// @description Removes the mandatory registration requirement from Ask.fm | |
// @version 1.0 | |
// @include https://ask.fm/* | |
// ==/UserScript== | |
(() => { | |
const observer = new MutationObserver((mutations) => { | |
for (const mutation of mutations) { |
export default class Raattori { | |
constructor() { | |
this.sanat = { | |
minä: "mää", | |
sinä: "sää", | |
minäkin: "määki", | |
sinäkin: "sääki", | |
tämä: "tää", | |
tuo: "toi", | |
nuo: "noi", |
Lisäksi jos haluaa lisää makua:
git clone git@github.com:kaduke/Netgear-A6210.git | |
cd Netgear-A6210 | |
git fetch origin port-to-4.15 | |
git checkout port-to-4.15 | |
make | |
sudo make install | |
# At this point you need to restart network-manager before plugging in | |
# the device. | |
sudo service network-manager restart |
This is just my personal setup of the Microsoft Natural Ergonomic Keyboard 4000 on Ubuntu which does various remappings that I like.
Create new file /etc/udev/hwdb.d/61-keyboard-local.hwdb
and insert following there:
# Microsoft Natural Ergonomic Keyboard 4000 - remap zoom in/out to up/down
evdev:input:b0003v045Ep00DB*
KEYBOARD_KEY_c022d=up
KEYBOARD_KEY_c022e=down
diff --git a/src/parse-query.js b/src/parse-query.js | |
index 2033083..1d7e21e 100644 | |
--- a/src/parse-query.js | |
+++ b/src/parse-query.js | |
@@ -10,7 +10,7 @@ export const parseQuery = (query) => { | |
let id = null; | |
let className = null; | |
let mode = TAG_NAME; | |
- let buffer = ''; | |
+ let previousOffset = 0; |
: class | |
swap class-create swap tuck "-prototype" + tuck const " new" + compile swap | |
>symbol swap >word define | |
; | |
: class-extends | |
"prototype" swap @ nip rot "__proto__" swap ! class | |
; | |
: class-create |