Skip to content

Instantly share code, notes, and snippets.

@eleven41
eleven41 / DeskController.cs
Last active December 27, 2015 00:39
ASP.NET MVC controller for handling multipass authentication with Desk.com
using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Web;
using System.Web.Mvc;
using System.Web.Script.Serialization;
@eleven41
eleven41 / remove_by_index.hpp
Last active December 18, 2015 07:19
remove_by_index STL function to remove items from a STL collection by index
template <class _FwdIt, class _FwdIt2>
_FwdIt remove_by_index(_FwdIt first,
_FwdIt last,
_FwdIt2 sortedIndexFirst,
_FwdIt2 sortedIndexLast)
{
_FwdIt copyFrom = first;
_FwdIt copyTo = first;
_FwdIt2 currentIndex = sortedIndexFirst;
@eleven41
eleven41 / set-github-labels.cmd
Created May 24, 2012 15:49
Set some standard Github issues labels
@echo off
echo This script creates issue labels for a GitHub repository
echo.
echo Please specify the GitHub Profile containing the Repository, e.g.:
echo https://github.com/MyProfile/MyCoolProject
echo ~~~~~~~~~
set /p username=" Enter Profile : "
echo.
echo Please specify the GitHub password for that profile:
set /p password=" Enter Password : "