Skip to content

Instantly share code, notes, and snippets.

View kylanhurt's full-sized avatar
💭
Working Hard

Kylan Hurt kylanhurt

💭
Working Hard
  • San Diego, California USA
View GitHub Profile
const fetch = require('node-fetch')
const { HyperionStreamClient } = require("@eosrio/hyperion-stream-client")
const client = new HyperionStreamClient({
endpoint: 'https://testnet.telos.caleos.io',
debug: true,
libStream: false
});
client.on('empty', () => {
@kylanhurt
kylanhurt / dcms-v2.md
Created December 21, 2021 16:41
Decide Content Metadata Specification (DCMS v2)

Decide Content Metadata Specification (DCMS v2)

An Update to Extend Telos Decide Functionality

Intro

As applications continue to develop upon the currently Telos Decide functionality, it becomes necessary to extend the contract's functionality to improve the developer and user experience. Given the resources needed to modify the current smart contract, a simpler approach is needed that could be achieved with the code base as-is. This approach requires the work to be done on the application layer, and the creation of a standard to be adopted by application developers.

Specifically, this new specification proposes to add the following functionality through a JSON object in the existing content field:

  1. Since this metadata will be residing within the content columns of the tables, this means that the hyperlinks to externally-hosted content files (typically PDFs, images, or Word documents) will be moved to a new contentUrls field. **Critically, this means that any dapp reading the content f
@kylanhurt
kylanhurt / gist:7994abe5fa0f0f89b1a9df1454630993
Created June 25, 2021 23:25
Decide Content Metadata Specification (DCMS v1)
# Decide Content Metadata Specification (DCMS v1)
## An Update to Extend Telos Decide Functionality
### Intro
As applications continue to develop upon the currently Telos Decide functionality, it becomes necessary to extend the contract's functionality to improve the developer and user experience. Given the resources needed to modify the current smart contract, a simpler approach is needed that could be achieved with the code base as-is. This approach requires the work to be done on the application layer, and the creation of a standard to be adopted by application developers.
Specifically, this new specification proposes to add the following functionality through a JSON object in the existing `content` field:
1. Since this metadata will be residing within the `content` columns of the tables, this means that the hyperlinks to externally-hosted content files (typically PDFs, images, or Word documents) will be moved to a new `contentUrl` field. **Critically, this means that any dapp reading the `content` fi
Welcome to Gradle 6.0!
Here are the highlights of this release:
- Substantial improvements in dependency management, including
- Publishing Gradle Module Metadata in addition to pom.xml
- Advanced control of transitive versions
- Support for optional features and dependencies
- Rules to tweak published metadata
- Support for Java 13
- Faster incremental Java and Groovy compilation
@kylanhurt
kylanhurt / UsefulFilenameManipulations.sh
Created February 28, 2020 07:35
Useful Filename Manipulation Bash Scripts
# Each note separates the command from all the others in this file
# You are only meant to use one command / clause at a time
# Add 'Saga' to each filename before the extension
for f in *; do mv "$f" "${f}Saga"; done
# Capitalize first letter of each filename in folder
for f in * ; do
mv -- "$f" "$(tr [:lower:] [:upper:] <<< "${f:0:1}")${f:1}"
done
@kylanhurt
kylanhurt / StyleTemplate.ts
Created February 14, 2020 18:59
Bash create style files from React Native components (Example)
import { StyleSheet, Dimensions } from 'react-native'
const { width, height } = Dimensions.get('window')

Keybase proof

I hereby claim:

  • I am kylanhurt on github.
  • I am captaincrypto (https://keybase.io/captaincrypto) on keybase.
  • I have a public key ASDKGYiJa-kaIwOVAqvShuBs3l_p7_4yUFPoQt4x8WnZTAo

To claim this, I am signing this object:

for file in *; do mv "${file}" "${file/ course preview/I}"; done
//from c://program files/oracle/virtualbox
VBoxManage.exe modifyhd ../../../"Kylan's Documents"/VirtualBox/DG/DG.vdi --resize 24000
SELECT member_course_table.*, courses.*, subcategories.* FROM member_course_table JOIN courses ON member_course_table.course_ID = courses.course_ID JOIN subcategories ON subcategories.id = courses.category_id WHERE member_course_table.member_ID = 805777