Skip to content

Instantly share code, notes, and snippets.

@NaxAlpha
NaxAlpha / Library.cs
Created July 25, 2016 07:07
Managed Dll Injection with C#
using System.Diagnostics;
using System.Windows.Forms;
namespace Loader {
public static class Library
{
[DllExport]
static void ShowMessage() {
using(var p = Process.GetCurrentProcess()) {
// Add System.Windows.Forms reference
@davidfowl
davidfowl / dotnetlayout.md
Last active June 3, 2025 09:20
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@theikkila
theikkila / keywords.json
Last active January 5, 2025 01:54
7000 skill keywords
[
"Automotive",
"Budgeting",
"HVAC",
"Heaters",
"Hydraulics",
"Logistics Management",
"Management",
"Negotiation",
"Project Planning",
@econchick
econchick / gist:4666413
Last active December 22, 2023 13:32
Python implementation of Dijkstra's Algorithm
class Graph:
def __init__(self):
self.nodes = set()
self.edges = defaultdict(list)
self.distances = {}
def add_node(self, value):
self.nodes.add(value)
def add_edge(self, from_node, to_node, distance):
@chirdeeptomar
chirdeeptomar / excel_reader.py
Created December 11, 2012 13:31
Finds duplicate rows in excel 2007
from openpyxl import load_workbook
import os
dir_name = os.path.relpath(os.path.dirname(__file__))
file_name = os.path.join(dir_name, 'Data.xlsx')
unique_items = []
all_items = []
@jl2
jl2 / mkhelix.py
Created May 15, 2012 19:31
Python script using CATIA's COM interface to create a product structure containing 200 cubes arranged in a helix.
#!/usr/bin/env python3
import sys
import array
import math
import random
import os.path
import win32com.client
def get_catia():