Skip to content

Instantly share code, notes, and snippets.

View denolfe's full-sized avatar

Elliot DeNolf denolfe

View GitHub Profile
@denolfe
denolfe / AutoFormat.ahk
Last active December 17, 2015 09:59
Reformats AHK code
/*
Original Author: nebbish
Thread: http://www.autohotkey.com/board/topic/55766-script-auto-formatter-very-basic-beginner-script/
TODO:
- support single line indent after else statement
- support comments on lines with "{"
Copy a piece of code to the Clipboard. The hotkey will reformat the code and paste it into any editor you have selected (sends Ctrl-v to the editor).
This script basically just determines proper line indentation by counting the number of open and closed braces encountered ("{"). However, it does a few other things, such as properly ignoring comments; there's also a little support for one-line indentation for if and loop statements, without the braces.
@denolfe
denolfe / ExpandTFS.js
Created November 26, 2014 21:39
Expand TFS Editing Area - Create as chrome bookmark
javascript: (function(){var d=document,e=d.getElementById('witc_142').setAttribute("style","height:1500px");})();
@denolfe
denolfe / jqueryConsole.js
Created May 1, 2015 21:35
Snippet to include jQuery in Chrome Dev Tools
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// ... give time for script to load, then type.
jQuery.noConflict();
@denolfe
denolfe / Remove-alt-tab-animation-from-elementary-os-freya.md
Last active September 19, 2017 13:21
Remove Alt-Tab animation from Elementary OS Freya

Remove Alt-Tab animation from Elementary OS Freya

Install custom build of Gala

sudo apt-get install bzr 

bzr branch lp:~gala-dev/gala/no-depth-alt-tab

sudo apt-get build-dep gala 
@denolfe
denolfe / trello-improved-styling.css
Created July 14, 2015 18:31
Better Trello Styling
html, body, input, select, textarea, button {
font-family: open sans, calibri, lucida sans console;
}
#header {
background: #676767;
}
.board-canvas {
background: #3f3f3f url(http://www.twitch.tv/images/xarth/bg_noise.png) top center;
@denolfe
denolfe / solarized-dark-pantheon-terminal.sh
Last active March 16, 2017 01:14
Set pantheon-terminal's color scheme to be a better Solarized Dark
# Solarized Theme Pantheon Terminal
if [ "$(awk -F'[" ]' '/^ID=/{print $2,$3}' /etc/os-release)" = "elementary OS" ]
then
gsettings set org.pantheon.terminal.settings font 'Droid Sans Mono for Powerline 10'
gsettings set org.pantheon.terminal.settings background '#00002B2B3636'
gsettings set org.pantheon.terminal.settings foreground '#838394949696'
gsettings set org.pantheon.terminal.settings cursor-color '#838394949696'
#gsettings set org.pantheon.terminal.settings palette '#070736364242:#DCDC32322F2F:#858599990000:#B5B589890000:#26268B8BD2D2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#58586E6E7575:#65657B7B8383:#838394949696:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3'
gsettings set org.pantheon.terminal.settings palette '#070736364242:#DCDC32322F2F:#858599990000:#B5B589890000:#26268B8BD2D2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#858599990000:#65657B7B8383:#26268B8BD2D2:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3'
gsettings set org.pantheon.termin
@denolfe
denolfe / README.md
Created January 11, 2016 22:34 — forked from ngryman/README.md
intellij javascript live templates

intellij javascript live templates

Just a dump of handy live templates I use with IntelliJ. They should also work with WebStorm.

How to

  • Go to settings.
  • Search for live templates.
  • Under the javascript section you should be able to manage your templates.
@denolfe
denolfe / RickshawGraph.md
Last active February 16, 2016 23:05 — forked from jwalton/RickshawGraph.md
Rickshaw Graph is a drop in replacement for Dashing's graph

Graphing Widget

The graphing widget shows graphs using the Rickshaw graphing library. The names of data fields should be (vaguely) familiar if you've used Rickshaw before.

It's recommended that you replace the /assets/javascripts/rickshaw.min.js from your dashboard with the latest from here.

Supported HTML data fields

# RUN EACH LINE INDEPENDENTLY. THIS IS NOT AN AUTOMATIC BASH SCRIPT.
# Install dependencies
apt-get install -y git-core gcc make autoconf yodl libncursesw5-dev texinfo checkinstall
# Clone zsh repo and change to it
git clone https://github.com/zsh-users/zsh.git zsh; cd zsh
# BashOnUbuntuOnWindows installs zsh 5.0.2
# You can use another version as well