Skip to content

Instantly share code, notes, and snippets.

View dittodhole's full-sized avatar

Andreas Niedermair dittodhole

View GitHub Profile
@skarllot
skarllot / net35-cf.md
Last active February 26, 2025 20:28
Build .NET Compact Framework 3.5

Install

Force MSBuild support

  • Copy files and directories from 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\*' to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5';
  • Copy files from 'C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\Debugger\BCL\*' to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\CompactFramework' directory;
  • Create 'RedistList' directory inside created 'CompactFramework' directory;
  • Create 'FrameworkList.xml' inside 'RedistList' directory and type the following:

Advanced

editorconfig name possible values
dotnet_sort_system_directives_first true , false

Indentation Options

editorconfig name possible values
csharp_indent_block_contents true , false
csharp_indent_braces true , false
@davidfowl
davidfowl / Example1.cs
Last active September 2, 2024 12:36
How .NET Standard relates to .NET Platforms
namespace Analogy
{
/// <summary>
/// This example shows that a library that needs access to target .NET Standard 1.3
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library.
/// </summary>INetCoreApp10
class Example1
{
public void Net45Application(INetFramework45 platform)
@rauchg
rauchg / README.md
Last active April 13, 2025 04:29
require-from-twitter
@bhameyie
bhameyie / haproxy.cfg
Last active December 17, 2024 12:48
Sample haproxy config
##based on Mesosphere Marathon's servicerouter.py haproxy config
global
daemon
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
maxconn 4096
tune.ssl.default-dh-param 2048
defaults
@hypriot
hypriot / prepare-docker-for-raspberry-pi.md
Last active November 22, 2016 23:22
Prepare your Raspberry Pi for Docker

Download our SD card image

wget http://assets.hypriot.com/hypriot-rpi-20150301-140537.img.zip

If prefer to download it using your browser, click here to download the Hypriot SD card image.

Unzip the image file

unzip hypriot-rpi-20150301-140537.img.zip
@Fornoth
Fornoth / Notes.md
Last active December 9, 2024 16:02
Makes a device show up in spotify connect devices list, but nothing else yet

#Python Script Setup

To get the python script running, run either pip install flask or pip install -r requirements.txt if you used git clone to clone the gist

#libspotify_embedded_shared.so notes

##Using the library (still in progress) There's a compile.sh that compiles a program that calls SpInit(), but doesn't get any farther because it needs more than just the API version number (which is 4)

##Spotify appkey

@hardillb
hardillb / wemo-events.js
Created January 14, 2015 12:16
Wemo Event listener - Get events when sockets and lights turn on and off - Run "npm install node-ssdp express body-parser xml2js request" to install the pre-reqs. It only listens for 10mins at the moment, I'll do subscription updates when I bundle it all into a node module
var Client = require('node-ssdp').Client;
var http = require('http');
var url = require('url');
var request = require('request');
var express = require('express');
var bodyparser = require('body-parser');
var os = require('os');
var xml2js = require('xml2js');
var util = require('util');
@PatrickJS
PatrickJS / factory-shared.es5.js
Last active May 17, 2024 03:37
Different examples of OOP "class" with "inheritance" done using JavaScript including languages that transpile into js. Take notice to the amount of boilerplate that's needed in ES5 compared to ES6. These examples all have the same interface with pros/cons for each pattern. If they seem similar that's whole point especially the difference between…
var EventEmitter = require('events').EventEmitter;
var _ = require('lodash');
// Factory shared
var makePerson = function() {
var person = {};
EventEmitter.call(person);
person.wallet = 0;
_.extend(person, personMethods)
return person;
@thomaslevesque
thomaslevesque / FullOuterJoinTests
Last active July 20, 2017 20:24
AssertThrowsWhenArgumentNull: helper to test correct validation of null arguments
using System;
using NUnit.Framework;
namespace MyLibrary.Tests.XEnumerableTests
{
[TestFixture]
class FullOuterJoinTests
{
[Test]
public void FullOuterJoin_Throws_If_Argument_Null()