Skip to content

Instantly share code, notes, and snippets.

View stevemar's full-sized avatar
🇨🇦
What's happening?

Steve Martinelli stevemar

🇨🇦
What's happening?
View GitHub Profile
@stevemar
stevemar / test.md
Created June 13, 2022 17:41
test graphql
{
  products(first: 10, reverse: true) {
    edges {
      node {
        id
        title
        handle
        resourcePublicationOnCurrentPublication {
 publication {
@stevemar
stevemar / DCO.md
Last active September 29, 2021 18:17
DCO for IBM repos

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or

(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or

(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.

@stevemar
stevemar / tts.py
Created September 19, 2020 19:01
Text to speech example
from ibm_watson import TextToSpeechV1
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
## Text to Speech
authenticator = IAMAuthenticator('guDxxxxxxxxoZ')
text_to_speech = TextToSpeechV1(
authenticator=authenticator
)
text_to_speech.set_service_url('https://api.us-south.text-to-speech.watson.cloud.ibm.com/instances/b6fcdc7dxxxxx9715e6')
@stevemar
stevemar / stt.py
Last active December 2, 2020 15:12
example python and output for using watson STT
import json
from os.path import join, dirname
from ibm_watson import SpeechToTextV1
from ibm_watson.websocket import RecognizeCallback, AudioSource
import threading
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
authenticator = IAMAuthenticator('dnaxxxxxxYN4')
service = SpeechToTextV1(authenticator=authenticator)
service.set_service_url('https://stream.watsonplatform.net/speech-to-text/api')
@stevemar
stevemar / tone_analyzer.py
Last active October 8, 2024 13:04
Tone Analyzer example
import json
from ibm_watson import ToneAnalyzerV3
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
# get this from the service credential
authenticator = IAMAuthenticator('t4a0vhxxxxxxxxFjW4')
tone_analyzer = ToneAnalyzerV3(
version='2017-09-21',
authenticator=authenticator
)
import json
import re
import requests
# The public org where new repos will be created.
PUBLIC_ORG = 'foo'
# The repo where folks will request new repos for the public org in the form of a comment
GHE_REQUEST_REPO = 'https://github.mycompany.com/api/v3/repos/myorg/myrepo'

Keybase proof

I hereby claim:

  • I am stevemar on github.
  • I am stevemar (https://keybase.io/stevemar) on keybase.
  • I have a public key whose fingerprint is 69FF 0DF1 89C3 7FFA D062 93A6 D103 B672 309F B560

To claim this, I am signing this object:

@stevemar
stevemar / testing.md
Last active September 28, 2018 02:13
@stevemar
stevemar / table.md
Last active September 6, 2018 20:45
Online Support IBM Support for Runtimes IBM Advance Support for Runtimes
dW Answers (Ask questions, get answers) x x
Slack (Join the conversation on #node.js-at-ibm) x x x
Runtime Support x
Popular Framework Support1 x
Availability 24 x 7 8 x 5 8 x 5
Cost Free Purchase NowContact Us Purchase NowContact Us