Skip to content

Instantly share code, notes, and snippets.

@dziemborowicz
dziemborowicz / Remove-MsgAttachment.ps1
Last active December 30, 2021 18:38
PowerShell cmdlet for removing attachments from *.msg files
function Remove-MsgAttachment
{
[CmdletBinding()]
Param
(
[Parameter(ParameterSetName="Path", Position=0, Mandatory=$True)]
[String]$Path,
[Parameter(ParameterSetName="LiteralPath", Mandatory=$True)]
@dziemborowicz
dziemborowicz / grand_final.c
Created July 13, 2013 20:21
Solution in C to Round 3 of the 2013 Codehire Cup.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "codehire.h"
int main()
{
/* Read input */
char *input = readInput();
char *line1 = strtok(input, "\n");