Skip to content

Instantly share code, notes, and snippets.

View CloseInactiveZendeskTabs.user.js
// ==UserScript==
// @name Close Inactive ZD tabs with CTRL+SHIFT+Z
// @match https://*.zendesk.com/*
// ==/UserScript==
(function() {
'use strict'
document.body.addEventListener('keyup', e => {
if (e.shiftKey && e.ctrlKey && e.key === 'Z') {
@jondcoleman
jondcoleman / AdvancedWindowSnap.ahk
Last active Jan 23, 2020 — forked from AWMooreCO/AdvancedWindowSnap.ahk
Advanced Window Snap is a script for AutoHotKey that expands upon Windows built-in window-snapping hotkeys.
View AdvancedWindowSnap.ahk
/**
* Advanced Window Snap
* Snaps the Active Window to one of nine different window positions.
*
* @author Jonathan Coleman
* @originalAuthor Andrew Moore <andrew+github@awmoore.com>
* @version 1.0
*/
/**
View updateSiteTitle.user.js
// ==UserScript==
// @name BetterSiteTitles
// @description Update with url base as title
// @include *://*.bosslm.com/*
// ==/UserScript==
(function() {
const siteBaseUrl = window.location.host.split('.')[0]
const newSiteName = siteBaseUrl.substr(0, 1).toUpperCase() + siteBaseUrl.substr(1)
document.title = newSiteName
@jondcoleman
jondcoleman / shrug.ahk
Last active Jun 17, 2017 — forked from farfromunique/shrug.ahk
autohotkey script to replace 🤷 with ¯\_(ツ)_/¯ (and a few other common unicode art emoji)
View shrug.ahk
;using unicode character strings instead of literal characters, for use in programs like Skype for Business.
; :shrug: ¯\_(ツ)_/¯
:B0:`:shrug::
if (A_EndChar == ":") {
SendInput, {BS 7}{U+00AF}\_({U+30C4})_/{U+00AF}
}
return
; :whatever: ◔_◔
View widerTrelloLists.user.js
// ==UserScript==
// @name Wider Trello Lists
// @namespace http://tampermonkey.net/
// @version 0.4
// @description try to take over the world!
// @author You
// @match https://trello.com/b/*
// @grant none
// ==/UserScript==
View Board Template
const boardTemplate = [
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,4,4,4,4,4,4,4,4,4,4,4,4,4,4],
[0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,2,1,1,1,1,1,1,1,1,1,2,0,0,0,4,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,2,1,1,1,1,1,1,1,2,0,0,0,0,0,0,2,1,1,1,1,1,1,1,1,1,2,0,0,0,4,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,2,1,1,1,1,1,1,1,2,0,0,0,0,0,0,2,1,1,1,1,1,1,1,1,1,3,4,4,4,4,0,2,2,2,2,2,2,2,2,2],
[0,0,0,0,0,0,0,0,0,0,2,1,1,1,1,1,1,1,2,0,0,0,0,0,0,2,1,1,1,1,1,1,1,1,1,2,0,0,0,0,0,2,1,1,1,1,1,1,1,2],
[0,0,0,0,0,0,0,0,0,0,2,1,1,1,1,1,1,1,2,0,0,0,0,0,0,2,1,1,1,1,1,1,1,1,1,2,0,0,0,0,0,2,1,1,1,1,1,1,1,2],
[0,0,0,0,0,0,0,0,0,0,2,1,1,1,1,1,1,1,2,0,0,0,0,0,0,2,1,1,1,1,1,1,1,1,1,2,0,0,0,0,0,2,1,1,1,1,1,1,1,2],
[0,0,0,0,0,0,0,0,0,0,2,1,1,1,1,1,1,1,2,0,0,0,0,0,0,2,1,1,1,1,1,1,1,1,1,2,0,0,0,0,0,2,1,1,1,1,1,1,1,2],
[0,0,0,0,0,0,0,0,0,0,2,1,1,1,1,1,1,1,2,0,0,0,0,0,0,2,1,1,1,1,1,1,1,1,1,2,0,0,0,0,0,2,1,1,1,1,1,1,1,2],
View test app for leftynaut
'use strict'
// require and instantiate express
var express = require('express');
var app = express();
// require and instantiate mongoose
var mongoose = require('mongoose');
var config = require('./config');
View jcoleman eslint
module.exports = {
"extends": "airbnb",
"plugins": [
"react"
],
"rules": {
"semi": [
2,
"never"
],
@jondcoleman
jondcoleman / APIRateLimitedCalls.html
Last active Dec 31, 2015
Rate Limited API call with function call after all calls finished - by Geoff Storbeck
View APIRateLimitedCalls.html
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
You can’t perform that action at this time.