This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface Welcome { | |
actor: Actor; | |
} | |
export interface Actor { | |
actorAttr: ActorAttr; | |
containers: { [key: string]: Container }; | |
picks: { [key: string]: Pick }; | |
amendments: Amendment[]; | |
actorSettings: { [key: string]: ActorSetting }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<graphml xmlns="http://graphml.graphdrawing.org/xmlns"> | |
<key attr.name="label" attr.type="string" for="node" id="label"/> | |
<key attr.name="Edge Label" attr.type="string" for="edge" id="edgelabel"/> | |
<key attr.name="weight" attr.type="double" for="edge" id="weight"/> | |
<key attr.name="r" attr.type="int" for="node" id="r"/> | |
<key attr.name="g" attr.type="int" for="node" id="g"/> | |
<key attr.name="b" attr.type="int" for="node" id="b"/> | |
<key attr.name="x" attr.type="float" for="node" id="x"/> | |
<key attr.name="y" attr.type="float" for="node" id="y"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: pihole-admin | |
imagePullSecrets: | |
- name: dockersecret | |
--- | |
apiVersion: storage.k8s.io/v1 | |
kind: StorageClass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hostname: guiltygear4 | |
k3os: | |
data_sources: | |
- gcp | |
- cdrom | |
modules: | |
- kvm | |
- nvme | |
dns_nameservers: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// tslint:disable: quotemark | |
// modules | |
import { Module } from '@nestjs/common'; | |
import { CharacterModule } from './character/character.module'; | |
import { CampaignModule } from './campaign/campaign.module'; | |
import { PlayerModule } from './player/player.module'; | |
import { SageModule } from './sage/sage.module'; | |
import { TypeOrmModule } from "@nestjs/typeorm"; | |
import { Connection } from 'typeorm'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { parseWithPointers, safeParse, safeStringify } from "@stoplight/json"; | |
const result = parseWithPointers(`{ | |
"hello": "world", | |
"address": { | |
"street": 123 | |
} | |
}`); | |
console.log(result.data); | |
console.log(result.pointers); // Returns undefined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "object", | |
"x-stoplight": { | |
"id": "4254907af0db3" | |
}, | |
"x-examples": { | |
"data": { | |
"majorArcana": [ | |
{ | |
"name": "The Fool", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"personalLife": { | |
"description": "Friends, allies, rivals, enemies, superiors, romantic partners, role models, influence among them all", | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"portrait": { | |
"type": "string" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apologies for the confusion. If you only want to encode `<` and `>` characters that are not part of XML tags, you can modify the regex and the encoding logic. Here's an updated example: | |
```javascript | |
const text = "<example>Some text with <tag> and > symbol</example>"; | |
// Regular expression to match '<' or '>' not followed by an XML tag | |
const regex = /(<(?!\/?[a-zA-Z]+\b)[^>]*>)|([<>])/g; | |
// Function to encode the matched characters | |
function encodeNonXmlTags(match, xmlTag) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
She said she loved him | |
Only she said she loved him. | |
She only said she loved him. | |
She said only she loved him. | |
She said she only loved him. | |
She said she loved only him. | |
She said she loved him only. |
OlderNewer