Update index.html
Browse files- index.html +6 -74
index.html
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
<head>
|
4 |
-
<title>
|
5 |
<meta charset="utf-8"/>
|
6 |
<!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/hack-font@3/build/web/hack.css">
|
7 |
-->
|
@@ -115,11 +115,10 @@
|
|
115 |
<body>
|
116 |
<div class="contents">
|
117 |
<div class="top">
|
118 |
-
|
119 |
-
<div class="sub">PLAYGROUND</div>
|
120 |
<p>Otis an Anti-Spam AI Model</p>
|
121 |
</div>
|
122 |
-
<div><input type="text" value="
|
123 |
data-gramm_editor="false" spellcheck="false" autocomplete="off"></div>
|
124 |
<div>
|
125 |
<textarea id="output" readonly
|
@@ -128,80 +127,13 @@
|
|
128 |
</div>
|
129 |
|
130 |
<div class="bottom">
|
131 |
-
<h3>
|
132 |
-
<
|
133 |
-
name.last >> "Anderson"
|
134 |
-
age >> 37
|
135 |
-
children >> ["Sara","Alex","Jack"]
|
136 |
-
children.# >> 3
|
137 |
-
children.1 >> "Alex"
|
138 |
-
child*.2 >> "Jack"
|
139 |
-
c?ildren.0 >> "Sara"
|
140 |
-
fav\.movie >> "Deer Hunter"
|
141 |
-
friends.#.first >> ["Dale","Roger","Jane"]
|
142 |
-
friends.1.last >> "Craig"</pre>
|
143 |
|
144 |
-
|
145 |
-
<p>
|
146 |
-
Query an array for the first match by using #(...),
|
147 |
-
or find all matches with #(...)#.
|
148 |
-
Queries support the ==, !=, <, <=, >, >= comparison operators and
|
149 |
-
the simple pattern matching % operator.
|
150 |
-
</p>
|
151 |
-
|
152 |
-
<pre class="example">
|
153 |
-
friends.#(last=="Murphy").first >> "Dale"
|
154 |
-
friends.#(last=="Murphy")#.first >> ["Dale","Jane"]
|
155 |
-
friends.#(age>45)#.last >> ["Craig","Murphy"]
|
156 |
-
friends.#(first%"D*").last >> "Murphy"
|
157 |
-
friends.#(nets.#(=="fb"))#.first >> ["Dale","Roger"]</pre>
|
158 |
-
|
159 |
-
<p>
|
160 |
-
|
161 |
-
</p>
|
162 |
-
|
163 |
-
<p>
|
164 |
-
Use the selectors syntax to join multiple paths into a new JSON document.
|
165 |
-
</p>
|
166 |
-
|
167 |
-
<pre class="example">
|
168 |
-
{name.first,age,"murphys":friends.#(last="Murphy")#.first}
|
169 |
-
[name.first,age,children.0]</pre>
|
170 |
-
|
171 |
-
<p>
|
172 |
-
Use modifiers to modify the json. There are currently the following built-in modifiers:
|
173 |
-
<ul>
|
174 |
-
<li><b>@reverse</b>: Reverse an array or the members of an object.</li>
|
175 |
-
<li><b>@ugly</b>: Remove all whitespace from JSON.</li>
|
176 |
-
<li><b>@pretty</b>: Make the JSON more human readable.</li>
|
177 |
-
<li><b>@this</b>: Returns the current element. It can be used to retrieve the root element.</li>
|
178 |
-
<li><b>@valid</b>: Ensure the json document is valid.</li>
|
179 |
-
<li><b>@flatten</b>: Flattens an array.</li>
|
180 |
-
<li><b>@join</b>: Joins multiple objects into a single object.</li>
|
181 |
-
<li><b>@keys</b>: Returns an array of keys for an object.</li>
|
182 |
-
<li><b>@values</b>: Returns an array of values for an object.</li>
|
183 |
-
</ul>
|
184 |
-
</p>
|
185 |
-
|
186 |
-
<pre class="example">
|
187 |
-
children.@reverse >> ["Jack","Alex","Sara"]
|
188 |
-
[email protected] >> "Jack"
|
189 |
-
{name.first,"murphys":friends.0}.@pretty >> <i>beautiful JSON</i>
|
190 |
-
{name.first,"murphys":friends.0}.@ugly >> <i>compact JSON</i>
|
191 |
-
[@this].#(age>35).name.last >> "Anderson"</pre>
|
192 |
-
|
193 |
-
<p>
|
194 |
-
For more information, please see the <a href="https://github.com/tidwall/gjson">GJSON project</a>
|
195 |
-
and the <a href="https://github.com/tidwall/gjson/blob/master/SYNTAX.md">GJSON syntax</a>.
|
196 |
-
</p>
|
197 |
-
<p>
|
198 |
<br>
|
199 |
<br>
|
200 |
-
|
201 |
-
<a href="https://github.com/tidwall/gjson-play">tidwall/gjson-play</a>.
|
202 |
<br>
|
203 |
-
<a href="https://github.com/tidwall/gjson"><img class="octocat"
|
204 |
-
src="octocat.png" height="40" border="0"></a>
|
205 |
</p>
|
206 |
|
207 |
</div>
|
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
<head>
|
4 |
+
<title>OTIS Playground</title>
|
5 |
<meta charset="utf-8"/>
|
6 |
<!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/hack-font@3/build/web/hack.css">
|
7 |
-->
|
|
|
115 |
<body>
|
116 |
<div class="contents">
|
117 |
<div class="top">
|
118 |
+
<div class="sub">OTIS PLAYGROUND</div>
|
|
|
119 |
<p>Otis an Anti-Spam AI Model</p>
|
120 |
</div>
|
121 |
+
<div><input type="text" value="Want free discord nitro?" id="path"
|
122 |
data-gramm_editor="false" spellcheck="false" autocomplete="off"></div>
|
123 |
<div>
|
124 |
<textarea id="output" readonly
|
|
|
127 |
</div>
|
128 |
|
129 |
<div class="bottom">
|
130 |
+
<h3>What is OTIS?</h3>
|
131 |
+
<p>Otis is an advanced anti-spam artificial intelligence model designed to mitigate and combat the proliferation of unwanted and malicious content within digital communication channels. Leveraging cutting-edge machine learning algorithms and sophisticated pattern recognition techniques.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
<br>
|
134 |
<br>
|
135 |
+
<center><a href="https://github.com/JewishLewish/Otis">Github Repo</a></center>
|
|
|
136 |
<br>
|
|
|
|
|
137 |
</p>
|
138 |
|
139 |
</div>
|