Check your versions:
react-native init
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
# Taken from https://johanwind.github.io/2023/03/23/rwkv_details.html. | |
# I've added additional comments restructured it a tiny bit, which makes it clearer for me. | |
import numpy as np | |
from torch import load as torch_load # Only for loading the model weights | |
from tokenizers import Tokenizer | |
exp = np.exp | |
layer_norm = lambda x, w, b : (x - np.mean(x)) / np.std(x) * w + b | |
sigmoid = lambda x : 1/(1 + exp(-x)) |
job "ingress" { | |
region = "global" | |
datacenters = ["home"] | |
type = "service" | |
constraint { | |
attribute = "${meta.proxy_type}" | |
value = "internal" | |
} | |
### Disclaimer, | |
- datetime is not copied with the timezone difference. seems like the dates are saved in UTC so there will be difference with the datetime columns | |
--- | |
in this guide, | |
postgres username = "jep" | |
postgres password = "jepjep" |
# warning: do not use the certificates produced by this tool in production. This is for testing purposes only | |
# certificate authority | |
openssl genrsa -out RootCA.key 4096 | |
openssl req -new -x509 -days 1826 -extensions v3_ca -key RootCA.key -out RootCA.crt | |
openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in RootCA.key -out RootCA.key.pkcs8 | |
# intermediate CA | |
openssl genrsa -out IntermediateCA.key 4096 |
kubectl exec --namespace=manadr-dev -it $(kubectl get pod -l "service=mysql" --namespace=manadr-dev -o jsonpath='{.items[0].metadata.name}') -- bash |
{... | |
"scripts": { | |
"postinstall": "node patch.js", | |
... | |
} | |
} |
/** | |
* Callbag loves TypeScript | |
* | |
* Copy-paste this into http://www.typescriptlang.org/play/index.html | |
*/ | |
// A Callbag dynamically receives input of type I | |
// and dynamically delivers output of type O | |
type Callbag<I, O> = { | |
(t: 0, d: Callbag<O, I>): void; |
function slugify(string) { | |
const a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìıİłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;' | |
const b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------' | |
const p = new RegExp(a.split('').join('|'), 'g') | |
return string.toString().toLowerCase() | |
.replace(/\s+/g, '-') // Replace spaces with - | |
.replace(p, c => b.charAt(a.indexOf(c))) // Replace special characters | |
.replace(/&/g, '-and-') // Replace & with 'and' | |
.replace(/[^\w\-]+/g, '') // Remove all non-word characters |