Skip to content

Instantly share code, notes, and snippets.

View DavideDunne's full-sized avatar
💾

Davide Dunne Sanchez DavideDunne

💾
  • Jalisco
  • 16:06 (UTC -06:00)
View GitHub Profile
@JonathonReinhart
JonathonReinhart / pipe_client.py
Last active May 23, 2023 23:44
Named Pipes between C# and Python
import time
import struct
f = open(r'\\.\pipe\NPtest', 'r+b', 0)
i = 1
while True:
s = 'Message[{0}]'.format(i).encode('ascii')
i += 1
@luisdeol
luisdeol / DataExportClass.cs
Last active May 6, 2024 09:29
Export List of Objects to a Comma-Separated Values (.CSV) file using C#, allowing the export of Entity Framework DbSet to CSV File. An example of use comes within the code.
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace DataExportClass
{
class Program
{
public class Employee