Skip to content

Instantly share code, notes, and snippets.

@pl0xyelit
pl0xyelit / doublyLinkedList.cpp
Created May 30, 2023 04:57
Doubly Linked List in C++
// rudimentary implementation of a doubly linked list using raw pointers (should be fairly safe though)
#include <iostream>
struct node {
int data;
struct node *prev;
struct node *next;
};
//node* head_node = new node();
// head_node->data = 5;
@pl0xyelit
pl0xyelit / wg.ps1
Last active November 2, 2022 20:31
wg - a PowerShell function wrapper for winget
$packageFile = Get-Content -Path "D:\PowerShell\packages.txt"
function wg {
param
(
[ValidateSet("upgrade","install", "uninstall")]
$type,
$packages = $packageFile
)
$packages | ForEach-Object { winget $type $_ }
}