Skip to content

Instantly share code, notes, and snippets.

Working from home

juaxix juaxix

Working from home
View GitHub Profile
juaxix / kdtree_with_example.cpp
Last active Mar 9, 2022
C++ KD Tree with Vector3 and a condition flag
View kdtree_with_example.cpp
#include <iostream>
#include <memory>
#include <math.h>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;
void padTo(string &str, const size_t num, const char paddingChar = ' ')
juaxix / BackgroundRunnable.h
Last active Nov 15, 2021
Unreal Background Runnable thread
View BackgroundRunnable.h
* Class to run a background thread do parallel work with different Objects using an interface
class FBackgroundRunnable : public FRunnable
explicit FBackgroundRunnable(IMediator* InObject)
Object = InObject;
BackgroundThread = FRunnableThread::Create(this, TEXT("Background Thread"), 0, EThreadPriority::TPri_Highest, FPlatformAffinity::GetAsyncLoadingThreadMask());
/// juaxix - TicTacToe
/// @see
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;
View Keybase.json
### Keybase proof
I hereby claim:
* I am juaxix on github.
* I am juaxix ( on keybase.
* I have a public key ASCl5aLcWCrgmte5ZK51L4B9so6I3fMzBblx7CtKciofnAo
To claim this, I am signing this object:
juaxix / FakeMouseClick.cpp
Last active Aug 17, 2019
Fake a mouse click in X,Y of the screen with loop and delay
View FakeMouseClick.cpp
#include <iostream>
#include <windows.h>
#include <string>
// LeftClick function
void LeftClick()
INPUT Input = { 0 };
// left down
Input.type = INPUT_MOUSE;
juaxix / Snake.cpp
Last active Jan 8, 2019
View Snake.cpp
#include <iostream>
#include <conio.h>
#include <chrono>
#include <thread>
using namespace std;
//game state
bool gameOver = false;
const int width = 20;
const int height = 20;
juaxix / BuilderFacets.hpp
Created Jan 1, 2019
Builder Coding Exercise
View BuilderFacets.hpp
#include <string>
#include <ostream>
#include <vector>
using namespace std;
struct Field
string name;
string type;
juaxix / NetworkView.cs
Created Oct 16, 2018
Gamesparks - a network view approximation (w.i.p.)
View NetworkView.cs
using GameSparks.RT;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NetworkView : MonoBehaviour
public int viewID = 0;
public enum ViewSynchModes
juaxix / unfollow-not-follow-back.js
Created Aug 24, 2018
Unfollow not-following back accounts from your profile, using twitter web interface and chrome JS
View unfollow-not-follow-back.js
//Step using a browser
//1) Login into your account. Go to your profile following, example
//2) Go all the way to bottom to get all the parts of the accounts you follow (the new API only allow get chunks)
// --> you can do that with a scrollTo jQuery script or just keep pressed the AvPage key of your keyboard.
//3) Open developer console and copy paste this code, and change confirm_unfollow to true if you want to execute the unfollow
//Get all follows data:
var follows = $(".FollowStatus");
//Remove data from accounts who are following back:
for(var i=0;i<follows.length;i++)
juaxix / Game.cs
Created Aug 12, 2018
OutOfSpace- LudumDare 42
View Game.cs
using System;
using UnityEngine;
using System.Collections.Generic;
using System.Linq;
using DG.Tweening;
using UnityEngine.Events;
using Random = UnityEngine.Random;
public class Game : MonoBehaviour