Skip to content

Instantly share code, notes, and snippets.

View mdoar's full-sized avatar
🏠
Working from home

Matt Doar mdoar

🏠
Working from home
View GitHub Profile
@dodok1
dodok1 / gist:7925037
Last active December 22, 2019 15:19 — forked from anonymous/gist:7925024
Improved ordering and full JQL as tooltip
<script type='text/javascript'>
var refreshJqlHistoryPane = function() {
var localHistory = localStorage.getItem('jqlHistory');
if(localHistory){
var history = JSON.parse(localHistory);
var historyEntries = history.map(function(jql){
var display = jql;
if(display.length > 25){
display = display.substr(0,22) + "...";
}
@dvdsmpsn
dvdsmpsn / gist:6734127
Last active December 24, 2015 02:59
What is this madness? It's a Mac, but I have a directory called C:\m2repo
david$ atlas-run
...
... Downloading the internet here (as maven does)
...
david$ ls -la
total 24
drwxr-xr-x 9 david staff 306 27 Sep 20:32 .
drwxr-xr-x 7 david staff 238 27 Sep 19:36 ..
drwxr-xr-x 11 david staff 374 27 Sep 20:37 .idea
@myusuf3
myusuf3 / future.py
Created January 18, 2013 18:30
Braces
Python 2.7.2 (default, Jun 20 2012, 16:23:33)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from __future__ import braces
File "<stdin>", line 1
SyntaxError: not a chance
@kwharrigan
kwharrigan / mks_git_checkpoints.py
Created April 12, 2012 16:50
MKS fast-import script for git
#!/usr/bin/python
#Copyright (c) 2012 Kyle Harrigan
#
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including without limitation the rights
#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#copies of the Software, and to permit persons to whom the Software is
#furnished to do so, subject to the following conditions:
#
@hrldcpr
hrldcpr / tree.md
Last active September 1, 2024 07:04
one-line tree in python

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!