Skip to content

Instantly share code, notes, and snippets.

View WamWooWam's full-sized avatar
🏳️‍🌈

Thomas May WamWooWam

🏳️‍🌈
  • Wan Kerr Co. Ltd.
  • Nowhere, Ireland
  • 13:19 (UTC +01:00)
  • X @da_wamwoowam
View GitHub Profile
@WamWooWam
WamWooWam / zipper.cs
Last active February 27, 2018 20:42 — forked from DaNooba/zipper.cs
jesus fuckin christ
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.IO.Compression;
using System.Xml;
namespace DOC_ZIP
@WamWooWam
WamWooWam / o no.cs
Created February 28, 2018 22:24
oh no
public static void RunEvalProcess(DiscordMessage invoker, string code, string langcode, DiscordEmbedBuilder builder, Action<DiscordEmbedBuilder, JToken> action)
{
Stopwatch watch = Stopwatch.StartNew();
try
{
string evalExePath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Tools", "WamBotEval.exe");
if (File.Exists(evalExePath))
{
Process evalProcess = new Process();
@WamWooWam
WamWooWam / ModernDiscordCommand.cs
Created March 5, 2018 21:02
Hard to understand code
using DSharpPlus;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
foreach (var a in p.CustomAttributes)
{
Type at = a.AttributeType;
if (!at.Namespace.StartsWith("System.Runtime.InteropServices"))
{
b.Append("[");
string name = at.Name;
b.Append(name.Substring(0, name.Length - 9));
.player-container {
display: flex;
width: 100%;
justify-content: center;
}
.player {
display: flex;
flex-direction: column;
margin: 1em 0em 0.5em 0em;
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
@WamWooWam
WamWooWam / objectset-import.py
Created January 25, 2019 23:25
Object Set importer for Dash Engine
#
# Object Set importer for Dash Engine
#
# This script loads *.set.xml files from Hedgehog Engine games (Unleashed, Generations) into
# the currently loaded level, keeping position and rotation
#
# Authored by WamWooWam, licenced under the MIT Licence
#
@WamWooWam
WamWooWam / konami.ts
Last active May 30, 2019 21:04
Konami Code in TypeScript with gamepad support
// only buttons i care about
const UP = 12;
const DOWN = 13;
const LEFT = 14;
const RIGHT = 15;
const A = 0;
const B = 1;
const START = 9;
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
<Identity Name="c10c1bc2-db82-4f92-83d9-3291a20a16fa" Publisher="CN=wamwo" Version="1.0.0.0" />
<Properties>
<DisplayName>CppWinRTTest</DisplayName>
<PublisherDisplayName>Wan Kerr Co. Ltd.</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Resources>
<Resource Language="en-us"/>
// DangerBin.cpp : Plays audio at an increasing volume the nearer the pointer is to the Recycle Bin.
// Compile with anything targeting the Windows 8.1 SDK or later
#include <iostream>
#include <wrl.h>
#include <shlobj.h>
#include <exdisp.h>
#include <comutil.h>
#include <roapi.h>
#include <shlwapi.h>