Skip to content

Instantly share code, notes, and snippets.

View saluber's full-sized avatar
🙃

Samantha Luber saluber

🙃
View GitHub Profile
@saluber
saluber / WeMoWsdlBasicService.wsdl
Last active March 20, 2021 20:49
WeMo Smart Plug Get/Set State
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:u="urn:Belkin:service:basicevent:1">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:Belkin:service:basicevent:1">
<xsd:element name="SetBinaryState">
<xsd:complexType>
<xsd:all>
/*
* Belkin Wemo Plug Toggle, tested on an ESP-01S
*
This Arduino sketch checks the status of a Belkin Wemo Plug.
If the switch is off, it makes a second request to turn it on. If the
switch is on, it makes a second request to turn it off. It's highly
recommended you give the Wemo Switch and the device running this code
static IPs on your network.
*/
@StevenACoffman
StevenACoffman / go-swagger-ui.md
Created May 31, 2020 03:06
golang serve Swagger-ui

From https://medium.com/@ribice/serve-swaggerui-within-your-golang-application-5486748a5ed4

SwaggerUI can be downloaded from their GitHub Repo Releases page. Once downloaded, place the contents of dist folder somewhere in your Go project. For example, swaggerui. After that, also move your openapi.json or swagger.json file to swaggerui folder (or whatever you called it), and inside index.html change url to ./swagger.json (e.g. url: "./swagger.json").

Serve using net/http

fs := http.FileServer(http.Dir("./swaggerui"))
http.Handle("/swaggerui/", http.StripPrefix("/swaggerui/", fs))

Serve using Gorilla Mux (commit)

@andreyryabtsev
andreyryabtsev / backmatting.ipynb
Last active June 5, 2024 04:56
BackMatting.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@PatrickJS
PatrickJS / zoom-bombing.php
Created April 3, 2020 17:26 — forked from nekromoff/zoom-bombing.php
Zoom bombing - identify Zoom existing meeting IDs
<?php
/*
Identify existing meetings/meeting IDs on Zoom.us call app
License: Public domain. Use for pranking only. Any other use prohibited.
https://gist.github.com/nekromoff/48ec26cbaecc31fccb202d1efa7d0657
*/
$ch = curl_init();
@junftnt
junftnt / mask.md
Created February 15, 2020 00:05 — forked from gund/mask.md
Simple Angular mask directive

Simple Angular mask directive

This directive does not create it's own value accessor - it simply reuses whatever element is using already and just hooks in.

Also it is fully abstracted off of the HTML implementation and so can be safely used in WebWorker and server side environment.

Usage

@esneko
esneko / log.txt
Created November 14, 2019 15:31
AWS AppSync
Stack name:
appsync-delta-api
Stack ID:
arn:aws:cloudformation:us-east-2:948919640322:stack/appsync-delta-api/af08d730-7c79-11e9-b24e-06017dd90e3a
Status:
CREATE_COMPLETE
> aws dynamodb list-tables
@Rich-Harris
Rich-Harris / README.md
Last active July 17, 2020 07:09
Svelte style properties naive implementation

This is a copy of an early attempt to imagine an implementation of 'style properties' in Svelte, as described in this RFC. It is preserved here to satisfy curiosity, or in case we hate the new one.


Style properties — handily distinguishable from regular properties by the leading -- used by CSS custom properties — are passed down to components through a separate channel. The example at the top of this RFC might be converted to the following JavaScript:

const slider = new Slider({
  props: {
    value: ctx.value,
@Mike-Devel
Mike-Devel / Boostdep.png
Last active November 29, 2019 18:35
Boost dependency graph with cmake coloring
Boostdep.png
@pervognsen
pervognsen / dotgen.py
Last active September 19, 2019 06:00
class DotGenerator(Visitor):
def __init__(self):
super().__init__()
self.lines = []
self.next_id = 0
def make_name(self, node, name=None):
if name is None:
name = "n%d" % self.next_id
self.next_id += 1