Skip to content

Instantly share code, notes, and snippets.

View joleeee's full-sized avatar
🤳

Jonas joleeee

🤳
View GitHub Profile
@josephspurrier
josephspurrier / structs_interface.go
Last active March 21, 2024 08:11
Golang - Understand Structs and Interfaces
// Also available at: https://play.golang.org/p/yTTpB5gB6C
package main
import (
"fmt"
)
// *****************************************************************************
// Example 1 - Struct vs Struct with Embedded Type
@IvanaGyro
IvanaGyro / ukkonen_suffix_tree.py
Created June 8, 2019 09:30
Implement of Ukkonen’s algorithm of building suffix trees with Python
from collections import defaultdict
class Node: # for the effectivity reason, do not inherit from ABCs
__slots__ = ('beg', 'end', 'link', 's', 'node')
def __init__(self, s):
self.s = s
self.beg = self.end = self.link = None
self.node = defaultdict(lambda: Node(s))
using HHKBKeymapTool.Models.Definitions;
using HHKBKeymapTool.Properties;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace HHKBKeymapTool.Models
{
public class KeyboardLibrary
{