Skip to content

Instantly share code, notes, and snippets.

View azdle's full-sized avatar

Patrick Barrett azdle

View GitHub Profile
@sekcompsci
sekcompsci / Comparison Espressif ESP MCUs.md
Created June 18, 2021 03:56 — forked from fabianoriccardi/Comparison Espressif ESP MCUs.md
Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

A minimal table to compare the Espressif's MCU families.

ESP8266 ESP32 ESP32-S2 ESP32-S3 ESP32-C3 ESP32-C6
Announcement Date 2014, August 2016, September 2019, September 2020, December
// ==UserScript==
// @name Dark mode HN
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://news.ycombinator.com/*
// @grant GM_addStyle
// ==/UserScript==
(function() {
@ids1024
ids1024 / Makefile
Last active April 7, 2021 00:57
Samsung Gear (Tizen) Rust Makefile
NAME=hue
VERSION = 1.0.0
TIZEN_STUDIO=/home/ian/Devel/tizen-studio
TIZEN_VERSION=3.0
ROOTSTRAP=wearable-3.0-device.core
TRIPLE=arm-linux-gnueabi
RUST_TRIPLE=arm-unknown-linux-gnueabi
SECURITY_PROFILE=ids1024
PKGNAME = com.ids1024.$(NAME)
TOOLCHAIN=gcc-4.9
extern crate multipart;
extern crate reqwest;
use multipart::client::lazy::Multipart;
use reqwest::mime;
use std::process;
use std::io::Read;
const URL: &'static str = "http://example.com/fileupload";
const UPLOAD_FORM_FIELD_NAME: &'static str = "thefile";
@amitizle
amitizle / Install luasec MacOS
Created May 22, 2017 18:41
Install luasec rock MacOS
# With openssl installed (brew install openssl)
$ luarocks --local install luasec OPENSSL_INCDIR=/usr/local/opt/openssl/include/
//here is descriptors
//needs interrupt endpoint 1 in, bulk endpoint 2 out, bulk endpoint 3 in
//info from pl2303hx datasheet
/* Device Descriptor */
const USB_DEVICE_DESCRIPTOR device_dsc=
{
0x12, // Size of this descriptor in bytes
USB_DESCRIPTOR_DEVICE, // DEVICE descriptor type
0x0200, // USB Spec Release Number in BCD format
@GeorgeHahn
GeorgeHahn / ESP8266 WeatherStation.ino
Created July 7, 2016 03:19
Tweaked code from Jens Jensen to run in ESP8266 Arduino environment
/*****************************************
accurite 5n1 weather station decoder
for arduino and 433 MHz OOK RX module
Note: use superhet (with xtal) rx board
the regen rx boards are too noisy
Jens Jensen, (c)2015
*****************************************/
@lmarkus
lmarkus / README.MD
Last active May 2, 2024 09:21
Extracting / Exporting custom emoji from Slack

Extracting Emoji From Slack!

Slack doesn't provide an easy way to extract custom emoji from a team. (Especially teams with thousands of custom emoji) This Gist walks you through a relatively simple approach to get your emoji out.

If you're an admin of your own team, you can get the list of emoji directly using this API: https://api.slack.com/methods/emoji.list. Once you have it, skip to Step 3

HOWEVER! This gist is intended for people who don't have admin access, nor access tokens for using that list.

Follow along...

Experimental Generation of Interpersonal Closeness

Instructions to Subjects Included With Task Slips Packet

This is a study of interpersonal closeness, and your task, which we think will be quite enjoyable, is simply to get close to your partner. We believe that the best way for you to get close to your partner is for you to share with them and for them to share with you. Of course, when we advise you about getting close to your partner, we are giving advice regarding your behavior in this demonstration only, we are not advising you about your behavior outside of this demonstration.

In order to help you get close we've arranged for the two of you to engage in a kind of sharing game. You're sharing time will be for about one hour, after which time we ask you to fill out a questionnaire concerning your experience of getting close to your partner.

You have been given three sets of slips. Each slip has a question or a task written on it. As soon as you both finish reading these instructions, you should

@tommie
tommie / gist:89011c5ac06553d5cdb8
Last active December 6, 2023 06:08
PL2303 USB Protocol

A description of the PL2303HX USB protocol.

Control Transfers

Read Register

Read a device register value.

  • bmRequestType: IN, VENDOR, DEVICE
  • bRequest: 1
  • wValue: 80h | registerNumber