Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block zaus

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
zaus / gist:71a7a89bc3bec0d8ea2faaa287c20c82
Last active Sep 22, 2016 — forked from marksteve/gist:877210
Monokai Notepad2 Color Scheme /mod
View gist:71a7a89bc3bec0d8ea2faaa287c20c82
[Default Text]
FileNameExtensions=txt; text; wtx; log; asc; doc
Default Style=font:DejaVu Sans Mono; size:10; fore:#F8F8F2; back:#000000
Margins and Line Numbers=size:-2; fore:#BCBCBC; back:#3B3A32
Matching Braces=size:+1; bold; fore:#000000; back:#FD971F
Matching Braces Error=size:+1; bold; fore:#F8F8F0; back:#F92672
Control Characters (Font)=size:-1
Indentation Guide (Color)=fore:#A0A0A0
Selected Text (Colors)=fore:#F8F8F2; back:#49483E; eolfilled
Whitespace (Colors, Size 0-5)=fore:#AA2B00
View SimpleServer.cs
using System.IO;
// modified from RestSharp unit tests
namespace UnitTesting
using System;
using System.Net;
using System.Security;
using System.Threading;
zaus / parse-hash-bang-arguments-in-javascript.js
Last active Dec 15, 2015 — forked from miohtama/parse-hash-bang-arguments-in-javascript.js
Parse "hashbang" `#!` arguments like url query-string. [original source](
View parse-hash-bang-arguments-in-javascript.js
* Parse hash bang parameters from a URL as key value object.
* For repeated parameters the last parameter is effective.
* If = syntax is not used the value is set to null.
* #!x&y=3 -> { x:null, y:3 }
* @param url URL to parse or null if window.location is used
* @return Object of key -> value mappings.
* @source
function hashbang(url, i, hash) {
zaus / OtherRAFShims.js
Last active Dec 14, 2015 — forked from mrdoob/RequestAnimationFrame.js
Exploring simpler `requestAnimationFrame` shims
View OtherRAFShims.js
// simplest, "original": 234 char
!window.requestAnimationFrame && (window.requestAnimationFrame = window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || window.oRequestAnimationFrame || function (callback) { window.setTimeout(callback, 1000 / 60) });
// compressible simplest: 157 char
(function(w,anif) {
if(!w['r' + anif]) w['r' + anif] = w['webkitR' + anif] || w['mozR' + anif] || w['msR' + anif] || w['oR' + anif] || function (callback) { w.setTimeout(callback, 1000 / 60) };
})(window, 'equestAnimationFrame');
View jquery.tinierpubsub.js
/* jQuery Tinier Pub/Sub - v0.9 - 2013-02-11
* original by 10/27/2011
* Original Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */
(function($) {
// "topic" holder
var o = $({}); // use $('<b>') with Zepto, as it doesn't like {} ?
// attach each alias method
zaus /
Created Oct 24, 2012 — forked from jlong/uri.js
URI Parsing with Javascript - regex version

See original gist for discussion and links.

Performance Comparison:

Testing in Chrome 22.0.1229.94 32-bit on Windows Server 2008 R2 / 7 64-bit

Test Ops/sec


zaus / _vendorize.scss
Last active Oct 11, 2015 — forked from heroheman/gist:3907611
SASS: Vendorize Mixin with editable vendors
View _vendorize.scss
// edit for whichever you care about
$vendors: 'webkit', 'moz', 'ms'; // 'webkit', 'moz', 'ms', 'o', 'khtml';
/// @summary Repeat for multiple vendor prefixes, like prefix-free processor
/// @param $property the property to repeat
/// @param $noplain set 'true' to disable prefixless option
/// @param $vendors override the global vendor list
/// @param $prefix optional additional prefix; supposed to allow keyframe specification with `@`
/// @see for references
@mixin vendorize($property, $value, $noplain: false, $vendors: $vendors, $prefix:'') {
zaus / SublevelFilterTest_Order.cs
Created Oct 19, 2012 — forked from zaus/SublevelFilterTest.cs
C# Linq Sublevel Filtering - Only return 1st-level with matching 2nd-level items, but resultset only contains matching 2nd-level items; more "practical" example with Order/LineItem relationship
View SublevelFilterTest_Order.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Playground.Tests {
public class OrderSubsetTests {
#region -------------- classes ----------------
You can’t perform that action at this time.