Skip to content

Instantly share code, notes, and snippets.

Avatar

Alejandro Palacios pamanes

View GitHub Profile
@pamanes
pamanes / Program.cs
Created Oct 11, 2018
Dan Kaminsky's DefCon RNG challenge 12 numbers at the same time in C#
View Program.cs
//Created by: Alejandro Palacios (pamanes@gmail.com)
//12 threads get a random number at the "same time" based on Dan Kaminsky's DefCon RNG challenge
using System;
using System.Text;
using System.Threading;
namespace entropy
{
class Program
{
@pamanes
pamanes / SQLDataLayer.cs
Last active Apr 6, 2018
This is a C# ADO.NET Data Layer for easy communication with SQL Server, it can also be adapted to other ADO.NET-compatible database systems like MySQL, Oracle, SQLite, etc.
View SQLDataLayer.cs
using System;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Data.Common;
using System.Collections;
using System.Threading.Tasks;
#region Update history
//Created by: Alejandro Palacios (pamanes@gmail.com)
You can’t perform that action at this time.