Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
int add(int a, int b) { | |
return a + b; | |
} |
import { useBindingListener, useCamera } from "@rbxts/pretty-roact-hooks"; | |
import Roact from "@rbxts/roact"; | |
import { useState } from "@rbxts/roact-hooked"; | |
interface BackgroundBlurProps { | |
blurSize?: number | Roact.Binding<number>; | |
} | |
/** | |
* Wraps a BlurEffect |
/* `useLocalStorage` | |
* | |
* Features: | |
* - JSON Serializing | |
* - Also value will be updated everywhere, when value updated (via `storage` event) | |
*/ | |
import { useEffect, useState } from "react"; | |
export default function useLocalStorage<T>(key: string, defaultValue: T): [T, (value: T) => void] { |
Next.js, Nginx with Reverse proxy, SSL certificate
<!-- MIT License --> | |
<html> | |
<head> | |
<script> | |
function generateKey(alg, scope) { | |
return new Promise(function(resolve) { | |
var genkey = crypto.subtle.generateKey(alg, true, scope) | |
genkey.then(function (pair) { | |
resolve(pair) | |
}) |