Skip to content

Instantly share code, notes, and snippets.

View kargeor's full-sized avatar
😀
https://nebula.gl/

Georgios Karnas kargeor

😀
https://nebula.gl/
View GitHub Profile
@kargeor
kargeor / scripts.js
Created March 14, 2021 03:40
EasyEDA add wires for all pins
function getRandomId() {
return "gge" + Math.round(Math.random() * 10000000);
}
const ids = api('getSelectedIds');
const result = api('getSource', {type:'json'});
function addWire(x1, y1, x2, y2) {
gId = getRandomId();
result.wire[gId] = {
@kargeor
kargeor / ESP32_I2S1_overclock.ino
Created February 26, 2021 06:23
Using the APLL clock source to output DMA parallel output from I2S1 at greater than 20Mhz bitrate
// Source: https://www.esp32.com/viewtopic.php?t=14185
/* Project ESP32 Logic Analyzer Testes com I2S Bit Clock
ESP32 Dev Kit 38 pins - Arduino IDE 1.8.12 - ESP32 Arduino V1.0.4
https://github.com/Gustavomurta/ESP32-Logic-analyzer
Gustavo Murta and Rui Vianna - 14/jun/2020
I2S1 MCLK pin = GPIO0 (derived from APLL Clock)
using PLL_D2 clock - master clock up to 80 MHz
@kargeor
kargeor / expo-firestore-persistence-hack.js
Created October 15, 2020 05:07 — forked from zwily/expo-firestore-persistence-hack.js
A fragile weaving of various modules together to convince the Firestore web SDK to use persistence in an un-ejected Expo app.
/*
expo-firestore-persistence-hack
A fragile weaving of various modules together to convince the Firestore
web SDK to use persistence in an un-ejected Expo app.
To use, first:
```
$ expo install expo-sqlite
@kargeor
kargeor / _service.md
Created January 21, 2020 04:25 — forked from naholyr/_service.md
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
@kargeor
kargeor / serve_http.py
Created October 14, 2018 04:35 — forked from pankajp/serve_http.py
Simple Python HTTP Server with multi-threading and partial-content support
#! /usr/bin/env python
# Standard library imports.
from SocketServer import ThreadingMixIn
import BaseHTTPServer
import SimpleHTTPServer
import sys
import json
import os
from os.path import (join, exists, dirname, abspath, isabs, sep, walk, splitext,