Skip to content

Instantly share code, notes, and snippets.

View ClydeDz's full-sized avatar
🌐
Visit my website for more info!

Clyde D'Souza ClydeDz

🌐
Visit my website for more info!
View GitHub Profile
@ClydeDz
ClydeDz / emoji.json
Created September 23, 2017 10:32
Sample API.AI emojis entity export in JSON format. On importing this JSON into another agent, it creates an entity names @emoji and will have values and can detect emoji's like 'smile', 'like', etc. This is not a comprehensive list, just an example.
{
"id": "bff8ea0a-b4ff-4ea8-8691-ca22f05187e9",
"name": "emoji",
"isOverridable": true,
"entries": [
{
"value": "smile",
"synonyms": [
"\"☺\"",
"\":smile:\"",
@ClydeDz
ClydeDz / general.emoji.json
Created September 23, 2017 10:39
Sample API.AI intent export in JSON format that recognises an emoji entity (sample created in another gist). On importing this intent into another agent, you would be able to roughly detect emojis in user's text.
{
"templates": [
"@emoji:emoji ",
"@emoji:emoji ",
"@emoji:emoji ",
"@emoji:emoji ",
"@emoji:emoji ",
" @emoji:emoji ",
"@emoji:emoji ",
"@emoji:emoji ",
@ClydeDz
ClydeDz / markdown.json
Last active February 7, 2020 09:32
A snippet from the markdown.json file.
"amazon-follow": {
"prefix": "amazon-follow",
"body": [
"[![Follow author profile on Amazon](https://img.shields.io/static/v1.svg?label=Follow%20me%20on%20Amazon&message=📖&color=FF9900&logo=amazon&logoColor=white)](https://www.amazon.com/Michelle-Obama/e/B07B436TLF) "
],
"description": "Follow author profile on Amazon 📖"
},
@ClydeDz
ClydeDz / package.json
Created February 7, 2020 09:35
Sample of the contributes section from the package.json file for a VS Code project.
"contributes": {
"snippets": [
{
"language": "markdown",
"path": "./snippets/markdown.json"
}
]
},
@ClydeDz
ClydeDz / package.json
Created February 10, 2020 09:23
Sample of the engines section from the package.json file for a VS Code project.
{
"engines": {
"vscode": "^1.28.0"
}
}
@ClydeDz
ClydeDz / package.json
Created February 10, 2020 09:26
Sample of the engines section from the package.json file for a VS Code project.
{
"engines": {
"vscode": "^1.28.0"
}
}
@ClydeDz
ClydeDz / humans.txt
Last active March 4, 2020 06:43
Humans.txt example for Medium article
/* TEAM */
Developer: John Smith
Contact: john.smith [at] example.com
Twitter: @johnsmith
Design: Jane Doe
Contact: jane.doe [at] example.com
Twitter: @janedoe
@ClydeDz
ClydeDz / table1.html
Created March 19, 2020 10:19
Table example with thead and tbody - Medium article
<table border="1">
<thead>
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Lorem ipsum 1</td>
@ClydeDz
ClydeDz / table2.html
Created March 19, 2020 10:19
Table example with only tbody - Medium article
<table border="1">
<tbody>
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
</tr>
<tr>
<td>Lorem ipsum 1</td>
<td>Lorem ipsum 2</td>
</tr>
@ClydeDz
ClydeDz / index.js
Created April 12, 2020 07:44
JS to FaunaDB - Stack Overflow
import { client, q } from '../config/db';
var getAllChoices = client.query(
q.Paginate(
q.Match(
q.Ref('indexes/choices_index')))
)
.then(response => {
const notesRefs = response.data
const getAllProductDataQuery = notesRefs.map((ref) => {