Skip to content

Instantly share code, notes, and snippets.

@lucasg
lucasg / apisetlookup.c
Last active June 14, 2024 20:08
Api set library lookup resolver
#include <windows.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <sal.h>
#include <assert.h>
#ifdef _X86_
#error "This snippet only build in 64-bit due to heavy use of uintptr arithmetics."
#endif
@malte-laukoetter
malte-laukoetter / RobinChatBot
Last active April 2, 2016 15:35
A chat bot for the reddit 1. April chat (it just sends the time that is left until the room ends and can send you your color and the current votes)
document.querySelector( '#robinChatMessageList' ).addEventListener( 'DOMSubtreeModified', function ( event ) {
var messages = event.target.querySelectorAll( '.robin-message' );
var lastMessage = messages[ messages.length - 1 ];
if ( lastMessage ) {
var author = lastMessage.querySelector( '.robin--username' );
var message = lastMessage.querySelector( '.robin-message--message' );
if ( message && message.innerHTML ) {
message_text = message.innerHTML.toLowerCase();