Skip to content

Instantly share code, notes, and snippets.

@jeru
jeru / openocd-nrf52840.md
Last active December 17, 2025 16:00
Programming nrf52840 with openocd

Setup

A DAPLink programmer connecting to an NRF52840 board via SWDIO+SWCLK+SRST (naturally also VCC and GND).

Basic

OpenOCD config:

# Copyright 2024 Google LLC.
# SPDX-License-Identifier: Apache-2.0
@matt-graham
matt-graham / jax-sci-comp-tutorial.ipynb
Last active December 17, 2025 15:59
Accompanying notebook for JAX scientific computing tutorial
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@braunfuss
braunfuss / snappy_proc.py
Last active December 17, 2025 15:55
Sentinel-1 processing with snappy (snaps python api) for one swath (https://step.esa.int/main/toolboxes/snap/)
import os
import snappy
from snappy import GPF
from snappy import ProductIO
from snappy import HashMap
from snappy import jpy
import subprocess
from time import *
# documentation: http://step.esa.int/docs/v2.0/apidoc/engine/overview-summary.html
@LuoZijun
LuoZijun / README.rst
Last active December 17, 2025 15:51
IB 交易人词汇表 (Interactive Brokers Traders' Glossary)
@isaacs
isaacs / comma-first-var.js
Created April 6, 2010 19:24
A better coding convention for lists and object literals in JavaScript
// See comments below.
// This code sample and justification brought to you by
// Isaac Z. Schlueter, aka isaacs
// standard style
var a = "ape",
b = "bat",
c = "cat",
d = "dog",
@fatihacet
fatihacet / pubsub-simple.js
Created October 15, 2011 22:02
Simple PubSub implementation with JavaScript - taken from Addy Osmani's design patterns book -
var pubsub = {};
(function(q) {
var topics = {}, subUid = -1;
q.subscribe = function(topic, func) {
if (!topics[topic]) {
topics[topic] = [];
}
var token = (++subUid).toString();
topics[topic].push({
token: token,
@thennothinghappened
thennothinghappened / EventEmitter.gml
Last active December 17, 2025 15:37
Basic EventEmitter for GameMaker
/*
MIT License
Copyright (c) 2025 orca / thennothinghappened
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is