Skip to content

Instantly share code, notes, and snippets.

View einari's full-sized avatar
😄
Coding

Einar Ingebrigtsen einari

😄
Coding
View GitHub Profile
http://www.microsoftazurepass.com
1. MC5K0T98D6RB1F
2. MCGPBWTTKDMD9G
3. MC8JVRXIC2D1QN
4. MCJO6UI4K893YO
5. MCH4AJVPLE58F7
6. MC9YVE0ED3VWWF
7. MCK36HK0K9QX5F
using System;
using System.Text;
using System.Threading;
using Microsoft.ServiceBus.Messaging;
using Newtonsoft.Json;
namespace EventHubDataGenerator
{
class Program
{
@einari
einari / README.md
Last active December 1, 2016 11:15
Template for developer workshops. It is jam packed with a lot of goodies!

!! IMPORTANT !!

This Gist, although public - is using a VM image that is private due to licencing issues. So the only interesting part of this is as a reference to how to set up a workshop environment with X number of virtual machines from your own user image.

Following software is installed on the machine

@einari
einari / PowerBIWorkshopLabs.md
Last active May 18, 2016 15:55
Labs for Power BI Workshop
@einari
einari / XAMLFlattenHierarchy
Created April 28, 2015 11:15
XAML - Flatten out a UI hierarchy
private IEnumerable<UIElement> GetAllChildrenRecursively()
{
var elements = new List<UIElement>();
this.GetAllChildrenRecursively(this, elements);
return elements;
}
private void GetAllChildrenRecursively(FrameworkElement element, IList<UIElement> elements)
{
@einari
einari / ClientRendering.html
Created October 11, 2013 06:30
HTML Control Syntax
<!--
Basically, the idea is to provide a syntax for doing client side rendering.
Based on my experience with Silverlight - I did have in mind that it looks quite a lot like it.
-->
<Grid>
<Grid.ColumnDefinitions>
@einari
einari / gist:3175931
Created July 25, 2012 12:34
Enable static content within a ASP.net project
<system.web>
<httpHandlers>
<add path="*.js" verb="*" type="System.Web.StaticFileHandler"/>
<add path="*.css" verb="*" type="System.Web.StaticFileHandler"/>
<add path="*.html" verb="*" type="System.Web.StaticFileHandler"/>
</httpHandlers>
</system.web>