Skip to content

Instantly share code, notes, and snippets.

@denise-amiga
denise-amiga / DDS238-2 ZN-S Modbus.md
Created February 10, 2020 20:37 — forked from alphp/DDS238-2 ZN-S Modbus.md
Hiking DDS238-2 ZN/S energy meter

Hiking DDS238-2 ZN/S energy meter

Modbus holding registers:

Register(s) Meaning Scale Unit Data format R/W
0000h-0001h total energy 1/100 kWh unsigned dword
0002h-0003h reserved unsigned dword
0004h-0005h reserved unsigned dword
0006h-0007h reserved unsigned dword
@denise-amiga
denise-amiga / SimpleList.bas
Created April 4, 2020 13:41
Simple generic list in freebasic using "any ptr" in the base class.
type listBucket
payload as any ptr
nextBucket as listBucket ptr
end type
type List extends object
private:
_start as listBucket ptr
_end as listBucket ptr
_mutex as any ptr
@denise-amiga
denise-amiga / hashtable.c
Created April 12, 2020 11:23 — forked from phsym/hashtable.c
An hashtable implementation in C
/*
* Author : Pierre-Henri Symoneaux
*/
#include <stdlib.h>
#include <string.h>
//Hashtable element structure
typedef struct hash_elem_t {
struct hash_elem_t* next; // Next element in case of a collision
@denise-amiga
denise-amiga / hash.c
Created April 12, 2020 11:23 — forked from tonious/hash.c
A quick hashtable implementation in c.
/* Read this comment first: https://gist.github.com/tonious/1377667#gistcomment-2277101
* 2017-12-05
*
* -- T.
*/
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */
#include <stdlib.h>
#include <stdio.h>
# https://bougui505.github.io/2016/02/29/zsh_string_manipulation-_split_string.html
Split string in a given word separator (ws)
For example _:
# x="foo_1"
# echo $x[(ws:_:)1]
foo
# echo $x[(ws:_:)2]
1
@denise-amiga
denise-amiga / Crack Sublime Text Windows and Linux.md
Created October 27, 2021 12:12 — forked from JerryLokjianming/Crack Sublime Text Windows and Linux.md
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

YouTube Channel https://www.youtube.com/c/jerrylokjianming


How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/