Skip to content

Instantly share code, notes, and snippets.

View slorello89's full-sized avatar

Steve Lorello slorello89

View GitHub Profile
using System;
using System.IO;
using System.Net;
using System.Text;
using Newtonsoft.Json;
namespace NexmoDotnetCodeSnippets.Senders
{
public class RedactSender
{
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace MessagesTensorFlow
{
public class StatusMessage
{
using Newtonsoft.Json;
namespace MessagesTensorFlow
{
public class InboundMessage
{
[JsonProperty("message_uuid")]
public string message_uuid { get; set; }
[JsonProperty("to")]
namespace MessagesTensorFlow
{
public class MessageRequest
{
public To to { get; set; }
public From from { get; set; }
public Message message { get; set; }
using System;
using Newtonsoft.Json;
using System.Net.Http;
using System.Net;
using System.IO;
using System.Diagnostics;
namespace ConsoleApp15
{
class Program
using System;
namespace TestSwitchExpressions
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
var resposne = CarMakeFactory(CarMake.Ford);
[
{
"action":"talk",
"text":"Testing testing 1 2 3 4 5 6 7 8 9 10 - you've called into Nexmo"
}
]
[
{
"action": "talk",
"text": "Please wait while we connect you."
},
{
"action": "connect",
"endpoint": [
{
"type": "phone",
@slorello89
slorello89 / Private.key
Created October 22, 2020 17:13
private key file that throws error
-----BEGIN PRIVATE KEY-----
MIIEugIBADANBgkqhkiG9w0BAQEFAASCBKQwggSgAgEAAoIBAQCnKmLvOmDuCiqS
NPUTjdDsa82GB7LAEMJhrSk3ccgLJwztYBsyR4oRqu9EF+IjlI1JtkRNYBYLm3PX
NHZC34S7TpamXNRe0pm5wtPw8x4DikkditNZFTjS2EvTg/pHJNs30IBGeY5ogomv
+a78Pjj1Tf2gQGtj88V39NbYBPOq/zGu328gIaOX96XZbO2oLdlZ4ZDQv/juuUR6
b9oA/ZnSwf7aDfpZIEru91mb2GpuOLrb5IokPU0dfoUdA6O/t6jD7pMRr9m0fqTW
1It6txo9nnPsdYosJmikKGePN1O5SdEQlY3GTbTkRYgFYfeHsBdejRRAowusXRH6
hu99qheRAgMBAAECgf8i7zi9xfV7yaQb6fVNoNWIkv7gg7tXaCk3QHjcnWqw6fhJ
o0wLteekyZQ3JsabqO/d97lOckYpJtOOpegREaUrf8D8A2peZqS5rX2dXTFoi/27
rsd8VnMJnSo7idlEBO/LOkeUctLQBHfBzuxCyr4cha/7TXsj6E3cQ86iVmaV1WhP
@slorello89
slorello89 / trivial-redis-streams-example.cs
Last active June 8, 2021 01:12
very simple redis streams example using Stackexchange.Redis,
using System;
using System.Threading.Tasks;
using StackExchange.Redis;
namespace StreamsExample
{
class Program
{
static async Task Main(string[] args)
{