Skip to content

Instantly share code, notes, and snippets.

View eaba's full-sized avatar

Ebere Abanonu eaba

View GitHub Profile
@mvalipour
mvalipour / NDP461-KB3102438-Web.exe
Created July 25, 2016 19:24
Azure Cloud Service .NET 4.6.1 Installation
download this file... see: https://azure.microsoft.com/en-gb/documentation/articles/cloud-services-dotnet-install-dotnet/
@atifaziz
atifaziz / TaskWhenAll.cs
Last active May 29, 2021 14:12
Implementation of Task.WhenAll in C# and F#
// http://msdn.microsoft.com/en-us/library/system.threading.tasks.task.whenall.aspx
using System;
using System.Threading;
using System.Threading.Tasks;
static class TaskExtensions
{
public static Task<T[]> WhenAll<T>(this Task<T>[] tasks)
{
@leegould
leegould / jquery.newguid.js
Last active July 15, 2018 06:46
Jquery plugin for creating a new guid.
/* Jquery function to create guids.
* Guid code from
* http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript
*/
(function ( $ ) {
$.fn.newguid = function () {
this.val('xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { var r = Math.random() * 16 | 0, v = c == 'x' ? r : r & 0x3 | 0x8; return v.toString(16); }));
return this;
};
@jbtule
jbtule / AESGCM.cs
Last active June 20, 2025 12:03
I have two code examples that I wrote for best practices encrypting a string in c#. They are both using authenticated encryption. http://stackoverflow.com/a/10366194/637783
/*
* This work (Modern Encryption of a String C#, by James Tuley),
* identified by James Tuley, is free of known copyright restrictions.
* https://gist.github.com/4336842
* http://creativecommons.org/publicdomain/mark/1.0/
*/
using System;
using System.IO;
using System.Text;