Skip to content

Instantly share code, notes, and snippets.

from enum import Enum
from typing import Any, Dict, Optional
from crewai import Crew
from crewai.process import Process
from crewai.utilities import I18N
class ProcessExtended(str, Enum):
"""
// ==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 January 23, 2020 12:06 — forked from AWMooreCO/AdvancedWindowSnap.ahk
Advanced Window Snap is a script for AutoHotKey that expands upon Windows built-in window-snapping hotkeys.
/**
* 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
*/
/**
// ==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 June 17, 2017 23:33 — forked from farfromunique/shrug.ahk
autohotkey script to replace 🤷 with ¯\_(ツ)_/¯ (and a few other common unicode art emoji)
;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: ◔_◔
// ==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==
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],
'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');
module.exports = {
"extends": "airbnb",
"plugins": [
"react"
],
"rules": {
"semi": [
2,
"never"
],
@jondcoleman
jondcoleman / APIRateLimitedCalls.html
Last active December 31, 2015 21:30
Rate Limited API call with function call after all calls finished - by Geoff Storbeck
<!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>