Skip to content

Instantly share code, notes, and snippets.

View rakhmaevao's full-sized avatar

rakhmaevao rakhmaevao

View GitHub Profile
@connerxyz
connerxyz / store-magic-for-meta-pattern.md
Last active September 16, 2021 15:04
Using %store magic to capture meta within/across Jupyter notebooks

Overview

The %store magic allows data to be stored in the ipython database, outside of a notebook's particular kernel, so it can be accessed from other notebooks.

Instructions

Initialization

If you're executing only one notebook, or this is the

@ah-cog
ah-cog / ESP8266 AT Commands for Creating a UDP Server.md
Last active March 16, 2024 15:19
ESP8266 AT command sequence to start a UDP server with Espressif AT firmware v0.22.

Create a UDP Server to Listen for Incoming Broadcasts

The following sequence of commands will (1) start a TCP server listening for traffic on port 80 and (2) start a UDP server and listen for incoming UDP packets from all addresses.

AT

OK
AT+CWMODE_CUR=3

OK

@ethanwhite
ethanwhite / git_head_hash.py
Created June 29, 2014 02:56
Get hash of current git HEAD using Python built-ins
import subprocess
process = subprocess.Popen(['git', 'rev-parse', 'HEAD'], shell=False, stdout=subprocess.PIPE)
git_head_hash = process.communicate()[0].strip()
@alexey-detr
alexey-detr / main.cpp
Last active April 7, 2024 04:56
Читаем заголовок WAV файла на C++
#include <stdio.h>
#include <tchar.h>
#include <conio.h>
#include <math.h>
// Структура, описывающая заголовок WAV файла.
struct WAVHEADER
{
// WAV-формат начинается с RIFF-заголовка: