Skip to content

Instantly share code, notes, and snippets.

View secretGeek's full-sized avatar
😮‍💨
just-so-tired

Leon Bambrick secretGeek

😮‍💨
just-so-tired
View GitHub Profile
@AnthonyBriggs
AnthonyBriggs / project_names.py
Last active June 15, 2023 00:42
Project codename generator
#!/usr/bin/env python3
"""
Project naming scheme (roughly; funny trumps the rules):
<weird/funny animal> + <word which should be rude but isn't>
Useful if management / fellow developers are taking themselves too seriously."""
import random
thing = """PROJECT OPERATION PLAN PROGRAM DIRECTIVE ASSIGNMENT OBJECTIVE INCIDENT SCENARIO""".split()
@secretGeek
secretGeek / get-meetings.ps1
Last active September 13, 2022 22:19
Get today's schedule from Outlook, using COM, and format as text for my TODO.txt file
# Get a list of meetings occurring today.
function get-meetings() {
$olFolderCalendar = 9
$ol = New-Object -ComObject Outlook.Application
$ns = $ol.GetNamespace('MAPI')
$Start = (Get-Date).ToShortDateString()
$End = (Get-Date).ToShortDateString()
$Filter = "[MessageClass]='IPM.Appointment' AND [Start] > '$Start' AND [End] < '$End'"
$appointments = $ns.GetDefaultFolder($olFolderCalendar).Items
$appointments.IncludeRecurrences = $true
@dciccale
dciccale / README.md
Last active October 22, 2021 21:52
Tiny Cross-browser DOM ready function in 111 bytes of JavaScript

DOM Ready

Tiny Cross-browser DOM ready function in 111 bytes of JavaScript.