Skip to content

Instantly share code, notes, and snippets.

@vladyspavlov
vladyspavlov / telegram.yaml
Created November 2, 2023 21:37
ESPHome Telegram bot send message example
substitutions:
TELEGRAM_BOT_TOKEN: !secret telegram_bot_token
api_key: !secret api_key
ota_password: !secret ota_password
chat_id: xxxxxxxxx
esphome:
name: wemos
friendly_name: wemos
@lpillmann
lpillmann / altair_theme_readable.py
Last active September 26, 2022 22:07
Custom Altair theme to enlarge font size and make it comfortably readable
import altair as alt
# Custom theme for readability
def readable():
return {
"config" : {
"title": {'fontSize': 16},
"axis": {
"labelFontSize": 14,
"titleFontSize": 14,
#include "Arduino.h"
#include "esp_camera.h"
#include "ESPAsyncWebServer.h"
typedef struct {
camera_fb_t * fb;
size_t index;
} camera_frame_t;
#define PART_BOUNDARY "123456789000000000000987654321"
@LionsAd
LionsAd / response-to-real-differences-between-ot-and-crdt-for-co-editors.md
Last active July 13, 2019 06:09
Response to "Real Differences between OT and CRDT for Co-Editors"

To: Chengzheng Sun, David Sun, Agustina, Weiwei Cai

Thanks for the paper, it was very interesting to read.

Unfortunately the paper is having a strong direction of:

CRDT vs. OT

but that is not helpful in practice.

@oshliaer
oshliaer / .ru.md
Last active July 16, 2019 10:46
oshlibot

oshlibot

  • Как вызвать бота? В Telegram ник @oshlibot

  • Как запустить своего бота? Скопировать код. Получить [apikey][BotFather link]. Добавить apikey в свойства скрипта. Опубликовать скрипт как веб-приложение для всех. Запустить вручную setWebhook() из модуля ScriptService.gs

  • Важно. В настройках необходимо в свойства скрипта добавить apikey

  • Как получить apikey? Необходимо спросить у [@BotFather][BotFather link]

  • Какие бывают способы доступа для бота? Два метода API определяют будущее поведение приложения: [getUpdates][getUpdates link] или [setWebhook][setWebhook link]

  • @oshlibot использует подписку на [Webhooks][setWebhook link]

@kevinelliott
kevinelliott / osx-10.10-setup.md
Last active August 12, 2024 10:45
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

@pixelhandler
pixelhandler / playing-with-orbit-js-and-ember-js.md
Last active February 22, 2018 21:55
Notes from Ember-SC April 2014 meetup - Playing with Orbit.js and Ember.js

Playing with Orbit.js and Ember.js

This presenation is an exploration of rolling your own data persistence for and Ember.js Application

During this discovery I attempt to roll my own data solution. I've selected to use alpha software, Orbit.js. So not also choosing other alpha software at the some time. Not covering es6, broccoli, ember-cli etc.

The exploratory app is based on converting my blog app (uses REST) to use Web sockets with a Node.js backend. I am using some build tools brunch.io also borrowing from tapas-with-ember. The modules in the source code are [CommonJS modules].

@machty
machty / new-router-examples.md
Last active April 16, 2020 22:03
How to do cool stuff with the new Router API
@sgergely
sgergely / gist:3793166
Created September 27, 2012 09:43
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
@endolith
endolith / A_weighting.py
Last active September 14, 2024 01:28
A-weighting audio files in Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Translated from a MATLAB script (which also includes C-weighting, octave
and one-third-octave digital filters).
Author: Christophe Couvreur, Faculte Polytechnique de Mons (Belgium)
[email protected]
Last modification: Aug. 20, 1997, 10:00am.
BSD license