Skip to content

Instantly share code, notes, and snippets.

View juaxix's full-sized avatar
xixgames

juaxix juaxix

xixgames
View GitHub Profile
@juaxix
juaxix / Snake.cpp
Last active January 8, 2019 08:56
ASCII_Snake.cpp
#include <iostream>
#include <conio.h>
#include <chrono>
#include <thread>
using namespace std;
//game state
bool gameOver = false;
//MAP BLOCKS
const int width = 20;
const int height = 20;
@juaxix
juaxix / BuilderFacets.hpp
Created January 1, 2019 21:08
Builder Coding Exercise
#include <string>
#include <ostream>
#include <vector>
using namespace std;
struct Field
{
string name;
string type;
@juaxix
juaxix / FakeMouseClick.cpp
Last active August 17, 2019 16:22
Fake a mouse click in X,Y of the screen with loop and delay
#include <iostream>
#include <windows.h>
#include <string>
// LeftClick function
void LeftClick()
{
INPUT Input = { 0 };
// left down
Input.type = INPUT_MOUSE;
@juaxix
juaxix / Keybase.json
Created September 11, 2019 20:53
Keybasetest
### Keybase proof
I hereby claim:
* I am juaxix on github.
* I am juaxix (https://keybase.io/juaxix) on keybase.
* I have a public key ASCl5aLcWCrgmte5ZK51L4B9so6I3fMzBblx7CtKciofnAo
To claim this, I am signing this object:
@juaxix
juaxix / TicTacToe.java
Created June 27, 2020 20:45
JAVA TicTacToe
/// juaxix - TicTacToe
/// @see https://imgur.com/a/gBmaYD4
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.InputStream;
@juaxix
juaxix / BackgroundRunnable.h
Last active November 15, 2021 09:58
Unreal Background Runnable thread
/**
* Class to run a background thread do parallel work with different Objects using an interface
*/
class FBackgroundRunnable : public FRunnable
{
public:
explicit FBackgroundRunnable(IMediator* InObject)
{
Object = InObject;
BackgroundThread = FRunnableThread::Create(this, TEXT("Background Thread"), 0, EThreadPriority::TPri_Highest, FPlatformAffinity::GetAsyncLoadingThreadMask());