Skip to content

Instantly share code, notes, and snippets.

View benwis's full-sized avatar

Ben Wishovich benwis

View GitHub Profile
@benwis
benwis / Test Gist
Created February 14, 2021 23:02
Created from Remix Form!
SUPER
import React from "react";
import { Link } from "react-router-dom";
import matter from "gray-matter";
import visit from "unist-util-visit";
import renderToString from "next-mdx-remote/render-to-string";
import type { Post, MDXPost } from "../types";
import * as shiki from "shiki";
import setCDN from "shiki";
import langTS from "../content/shiki/languages/ts.tmLanguage.json";
@benwis
benwis / Test Gist
Created January 20, 2021 02:47
Created from Remix Form!
testy gisty
@benwis
benwis / gist:fe56826a6e530eb28e6d
Created November 16, 2014 21:04
TCP/UDP client and server
SYSTEM_MODE(MANUAL);
// UDP Port used for two way communication
unsigned int localPort = 1900;
unsigned int trigger = D0;
//Creates buffer variable and gives it a size
#define MAX_SIZE 1024
char buffer[MAX_SIZE];
//Creates UDP manipulation variable
SYSTEM_MODE(MANUAL);
//Disables connection to Spark Cloud without additional API query
// UDP Port used for two way communication
unsigned int localPort = 8888;
const char *message = "A";
unsigned int ssdpport = 1900;
IPAddress ip( 239, 255, 255, 250 );