Tiny Cross-browser DOM ready function in 111 bytes of JavaScript.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |