Skip to content

Instantly share code, notes, and snippets.

View beshrkayali's full-sized avatar

Beshr Kayali Reinholdsson beshrkayali

View GitHub Profile
@MarcSkovMadsen
MarcSkovMadsen / HvplotInteractive.ipynb
Created November 1, 2021 19:42
HvplotInteractive.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@beshrkayali
beshrkayali / poly-pio-mode.el
Created February 19, 2021 20:35
Poly RaspberryPi PIO mode
;; Simple Polymode for RaspberryPi Pico PIO files that uses
;; both asm-mode as host-mode and c-mode for pass-through section
(define-hostmode poly-pio-hostmode
:mode 'asm-mode)
(define-auto-innermode poly-pio-c-innermode
:mode 'c-mode
:head-matcher "^% c-sdk {$"
:tail-matcher "^%}$"
@joshskidmore
joshskidmore / img-url-exif.sh
Last active February 15, 2024 15:14
img-url-exif.sh
#!/usr/bin/env bash
# Josh Skidmore <josh@josh.sc>
# Basic example of using an HTTP range header to extract EXIF data
# from a JPEG file without having to download the entire image.
# This has no error handling and assumes the EXIF data is embedded
# within the first $KB_TO_DOWNLOAD kilobytes of the image
# Requirements:
# * curl
count website
4282314 neo.sci.gsfc.nasa.gov
1290870 catalogueoflife.org
862314 hydrol-earth-syst-sci.net
128600 worldplants.webarchiv.kit.edu
109806 web.archive.org
104630 apps.kew.org
86508 tiedostopalvelu.maanmittauslaitos.fi
58578 dyntaxa.se
39580 ildis.org
@joar
joar / lib-tty.py
Last active November 21, 2017 12:26
"""Terminal utilities."""
# Author: Steen Lumholt.
from termios import *
__all__ = ["setraw", "setcbreak"]
# Indexes for termios list.
IFLAG = 0
@joyrexus
joyrexus / README.md
Last active February 24, 2024 15:16
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.

@bishboria
bishboria / springer-free-maths-books.md
Last active April 25, 2024 06:27
Springer made a bunch of books available for free, these were the direct links
@hopewise
hopewise / English To Hindi
Last active February 6, 2019 03:16
This script will replace all English numbers by Hindi numbers, it uses regular expression that exclude numbers between tags, ex: <h3>
<script type="text/javascript">
var replaceDigits = function() {
var map = ["&#x660;","&#x661;","&#x662;","&#x663;","&#x664;", "&#x665;","&#x666;","&#x667;","&#x668;","&#x669;"]
// replace english floating point with arabic one:
document.body.innerHTML = document.body.innerHTML.replace(/\d(?=[^<>]*(<|$))/g, function($0) { return map[$0]});
// replace english floating point with arabic one:
document.body.innerHTML = document.body.innerHTML.replace(/\.(?=[^<>]*(<|$))/g, "&#x066B;");
}
window.onload = replaceDigits;
</script>
@sharpner
sharpner / goclone
Created August 14, 2015 09:32
clone and symlink go open source project
#/!bin/bash
repository=github.com
if [ -z "$GOPATH" ] ; then
echo '$GOPATH not set.'
exit 1
fi
cd $GOPATH