Skip to content

Instantly share code, notes, and snippets.

Jarrod Dixon dixon

Block or report user

Report or block dixon

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

Keybase proof

I hereby claim:

  • I am dixon on github.
  • I am jarrod_dixon (https://keybase.io/jarrod_dixon) on keybase.
  • I have a public key ASCeMjx_gYCCYo0NODk4IOl_3j65pDlUlTeC0DDjfnowDgo

To claim this, I am signing this object:

@dixon
dixon / gist:4b31dc4245943d32766075fe95c418e4
Created Nov 16, 2017
jQuery.extend vs Object.assign when dealing with null and undefined
View gist:4b31dc4245943d32766075fe95c418e4
var o = { test: 'asdfasdf' }
> undefined
$.extend({}, o, { test: null })
> {test: null}
$.extend({}, o, { test: undefined })
> {test: "asdfasdf"}
Object.assign({}, o, { test: null })
@dixon
dixon / SaltySailorChat.user.js
Last active Jan 25, 2018
UserScript for Chat Stack Exchange, that adds dark theme and sidebar-hiding
View SaltySailorChat.user.js
// ==UserScript==
// @name Salty Sailor Chat
// @version 0.1
// @description chat goodness, e.g. sidebar hiding, dark theme
// @author Jarrod Dixon
// @include /https?://chat\..*stackexchange.com/rooms/\d+/.*/
// ==/UserScript==
(function() {
'use strict';
@dixon
dixon / gist:8dc9c0131546b09ace683a78c937d037
Created Jun 14, 2016
Dark Theme for chat.stackexchange.com
View gist:8dc9c0131546b09ace683a78c937d037
#input-area {
background: #252525 !important;
}
#input {
color: #aaa !important;
background-color: #252525 !important;
}
#sidebar {
@dixon
dixon / gist:86b705813ba67c37d204
Created Apr 1, 2015
elasticsearch local developer options to prevent network broadcasting/replication
View gist:86b705813ba67c37d204
# elasticsearch dev options
cluster.name: jarrod_elasticsearch # shouldn't just be elasticsearch - make it unique to your computer
node.local: true
discovery.zen.ping.multicast.enabled: false
index.number_of_shards: 1
index.number_of_replicas: 0
View MiniProfiler.StepHere Extension
/// <summary>
/// Does a Step with the location of caller as the label.
/// </summary>
public static IDisposable StepHere(
this MiniProfiler profiler,
[CallerMemberName] string memberName = "",
[CallerFilePath] string sourceFilePath = "",
[CallerLineNumber] int sourceLineNumber = 0)
{
if (profiler == null) return null;
You can’t perform that action at this time.