This is content converted from Markdown!
Here's a JSON sample:
{
"foo": "bar"
}
"""" This script demonstrates how to use the Content Safety API Shield Prompt """ | |
import os | |
from pprint import pprint | |
from azure.ai.contentsafety import ContentSafetyClient | |
from azure.core.credentials import AzureKeyCredential | |
from azure.core.exceptions import HttpResponseError | |
from azure.core.rest import HttpRequest, HttpResponse |
"""" Pulls car data from Tesla inventory API """ | |
from datetime import datetime | |
import json | |
import requests | |
from pprint import pprint | |
import argparse | |
def get_cars(model='m3', condition='used', region='NSW'): | |
""" Get cars from Tesla inventory API """ |
var request = require('request'); | |
const MicrosoftGraph = require("@microsoft/microsoft-graph-client"); | |
// required inputs | |
var tenant = ''; // tenant id | |
var clientId = ''; // application id | |
var secret = ''; // application password | |
// prepare http request | |
var url = 'https://login.microsoftonline.com/' + tenant + '/oauth2/v2.0/token'; |
<html> | |
<head> | |
<style> | |
h1 { | |
font-family: Calibri; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Hello World!</h1> |
package net.bubblemix.signature; | |
import java.io.UnsupportedEncodingException; | |
import java.nio.charset.Charset; | |
import java.nio.charset.StandardCharsets; | |
import java.security.InvalidKeyException; | |
import java.security.KeyFactory; | |
import java.security.KeyPair; | |
import java.security.KeyPairGenerator; | |
import java.security.NoSuchAlgorithmException; |
package net.bubblemix; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.UnsupportedEncodingException; | |
import java.util.Enumeration; | |
import javax.servlet.Filter; | |
import javax.servlet.FilterChain; |
package main | |
import ( | |
"fmt" | |
"golang.org/x/crypto/ripemd160" | |
) | |
func main() { | |
hasher := ripemd160.New() | |
hasher.Write([]byte("The quick brown fox jumps over the lazy dog")) |
<html> | |
<head> | |
<style> | |
#ian { | |
position: absolute; | |
bottom: 0px; | |
height: 400px; | |
} | |
body { | |
background: #eef; |
package net.bubblemix.test; | |
import org.cassandraunit.spring.CassandraDataSet; | |
import org.cassandraunit.spring.CassandraUnitTestExecutionListener; | |
import org.cassandraunit.spring.EmbeddedCassandra; | |
import org.junit.After; | |
import org.junit.Before; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.slf4j.Logger; |