Skip to content

Instantly share code, notes, and snippets.

@sekcompsci
sekcompsci / Comparison Espressif ESP MCUs.md
Last active November 15, 2024 03:20 — forked from fabianoriccardi/Comparison Espressif ESP MCUs.md
Comparison chips (SoCs) table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6. Forked from @fabianoriccardi

Comparison chips (SoCs) 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
@maavelar5
maavelar5 / dmenu.el
Created November 1, 2020 04:35
emacs + dmenu
(setq dmenu-cfg " | dmenu -i -l 20 -p .")
(defun dmenu-ag ()
(interactive)
(setq my_shell_output (shell-command-to-string (concat "ag . " dmenu-cfg)))
(setq splitted (split-string my_shell_output ":"))
(when (> (length splitted) 1)
(find-file (car splitted))
@dio
dio / hello-wasm.js
Last active September 10, 2023 07:42
This is a simpe example on embedding wasm inside an offline single html page
// this code is from a simple add function in c:
//
// // hello.c
// int add(int a, int b) {
// return a + b;
// }
//
// compiles it with emcc (http://webassembly.org/getting-started/developers-guide/)
// $ git clone https://github.com/juj/emsdk.git
@danirabbit
danirabbit / gist:bebcd4b5c3c10274bdd0997e85610bb3
Created November 14, 2017 22:07
How to install Pantheon in Fedora
sudo dnf install appcenter audience maya-calendar noise pantheon-calculator pantheon-files pantheon-files pantheon-photos pantheon-terminal scratch-text-editor screenshot-tool snap-photobooth switchboard elementary-icon-theme elementary-theme pandora-wallpapers plank gala pantheon-agent-polkit pantheon-session-settings slingshot-launcher wingpanel
@andrei-markeev
andrei-markeev / mc.html
Last active March 25, 2020 00:28
Mini IDE for learning how to code, Minecraft theme
<html>
<head>
<meta charset="utf8"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.15.2/codemirror.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.15.2/codemirror.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.15.2/mode/javascript/javascript.min.js"></script>
</head>
<body>
<canvas width="200" height="240"></canvas>
<div style="position: absolute; left: 250px; top: 20px; bottom: 0px; right: 0px;">
@rmacqueen
rmacqueen / browser.js
Created August 18, 2015 14:57
Minimal webkit example in GJS
const Gtk = imports.gi.Gtk;
const WebKit2 = imports.gi.WebKit2;
Gtk.init(null);
let webview = new WebKit2.WebView();
webview.load_uri('http://www.google.com');
let mwindow = new Gtk.Window({
default_width: 600,
default_height: 400
@mjohnsullivan
mjohnsullivan / TimerActivity.java
Created July 9, 2015 13:15
Example of how to create a long running timer service that survives activity destruction by moving to the foreground, and back to the background when a new activity bind to it.
//
// Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
@XVilka
XVilka / BiDiSupport.md
Last active August 9, 2024 06:36
BiDirectional Text

This gist will show the support of BiDirectional text in the terminal emulators and console programs. You can read more about the standardization efforts at the dedicated page of FreeDesktop Terminal BiDi working group.

How to test

Logical Order ◀ ◀ ◀ RTL LTR ▶ ▶ ▶
WHAT IS UNICODE؟ in arabic in arabic ؟EDOCINU SI TAHW ؟EDOCINU SI TAHW in arabic
ما هو الترميز الموحد يونيكود؟ in Arabic ما هو الترميز الموحد يونيكود؟ in Arabic
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is based on the javascript.lang file of GtkSourceView.
It has additional Typescript keywords defined.
Author: Johannes Bergmann
Copyright (C) 2014 Johannes Bergmann
###
@cybercase
cybercase / product.js
Last active February 10, 2023 10:59
Python-like itertools.product function in javascript
function product() {
var args = Array.prototype.slice.call(arguments); // makes array from arguments
return args.reduce(function tl (accumulator, value) {
var tmp = [];
accumulator.forEach(function (a0) {
value.forEach(function (a1) {
tmp.push(a0.concat(a1));
});
});
return tmp;