Skip to content

Instantly share code, notes, and snippets.

rajiv spazmodius

Block or report user

Report or block spazmodius

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

spazmodius

Keybase proof

I hereby claim:

  • I am spazmodius on github.
  • I am spazmodius (https://keybase.io/spazmodius) on keybase.
  • I have a public key ASB7oxa_kVIyy8PO_c-rcyLxehlIgKzHvMxSz78A2sZFnAo

To claim this, I am signing this object:

View LINQ Sorted Merge
public static class EnumerableExtensions
{
public static IEnumerable<T> SortedMerge<T>(this IEnumerable<T> left, IEnumerable<T> right, IComparer<T> comparer)
{
return SortedMerge(left, right, (a, b) => comparer.Compare(a, b) < 0);
}
public static IEnumerable<T> SortedMerge<T>(this IEnumerable<T> left, IEnumerable<T> right, Func<T, T, bool> lessThan)
{
using (var leftEnum = left.GetEnumerator())
View app.js
"use strict";
function g() {
return new Promise(function(resolve, reject) {
send(request, onResponse);
function onResponse(error, incomingMessage, body) {
var time = new Date();
if (error && !error.time)
error.time = time;
View Raj's Slack IRC layout.css
/* URLs on the domain versionone.slack.com */
/* Clearer menu */
#menu,
.menu_example {
border: 1px solid #fff !important;
}
/* Different header */
#header {
@spazmodius
spazmodius / Oppa Slack Style
Created Jan 22, 2015
Simple style customizations for Slack web client
View Oppa Slack Style
/* URLs on the domain versionone.slack.com */
/* add separator between messages */
.message.divider, .message.first {
border-top: 1px solid #e3e4e6;
}
/* show moar! */
.message.divider, .message.first {
margin-top: 0 !important;
@spazmodius
spazmodius / StripTrailingWhitespace.vb
Created Dec 17, 2011
Visual Studio macros to strip trailing whitespace and save
View StripTrailingWhitespace.vb
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports EnvDTE90a
Imports EnvDTE100
Imports System.Diagnostics
Imports System.Collections.Generic
Public Module StripTrailingWhitespace
@spazmodius
spazmodius / ParseISO8601.js
Created Dec 14, 2011
javascript to parse ISO-8601 date format
View ParseISO8601.js
function ParseISO8601(iso)
{
// 0 = whole string
// 1 = year
// 2 = month
// 3 = day
// 4 = whole time part
// 5 = hour
// 6 = minute
// 7 = second
You can’t perform that action at this time.