Skip to content

Instantly share code, notes, and snippets.

View aeristhy's full-sized avatar

John Patrick aeristhy

View GitHub Profile
@aeristhy
aeristhy / multidimensional arrays.cpp
Created December 6, 2021 02:51
Using multidimensional arrays that creates a program that will display the multiplication table up to 49 only. (Array Exercises #4)
#include <iostream>
using namespace std;
int main()
{
constexpr int rows{ 8 };
constexpr int cols{ 8 };
int product[rows][cols]{};
for (int row{ 1 }; row < rows; ++row) {
@aeristhy
aeristhy / repeating nums.cpp
Created December 6, 2021 02:40
Program that accepts 10 numbers and will then display and count the repeating numbers. (Array Exercises #3)
#include <unordered_map>
#include <vector>
#include <iostream>
using namespace std;
unordered_map<int, unsigned int> c(const vector<int> & x) {
unordered_map<int, unsigned int> z;
for (auto y : x) {
z[y]++;
@aeristhy
aeristhy / sort.cpp
Created December 6, 2021 00:59
Program that will accept 10 integers from user and sort all the numbers and group them accordingly (odd/even). Put all even numbers first, and then odd numbers (Array Exercises #2)
#include <bits/stdc++.h>
using namespace std;
void printArray(int array[], int n) {
for (int i = 0; i < n; i++)
cout << array[i] << " ";
}
bool numSort(int a, int b) {
if (a % 2 == 0 && b % 2 == 0)
@aeristhy
aeristhy / zigzag.cpp
Created December 6, 2021 00:52
Program that will accept 12 integers from user and sort in a zigzag form. (Array Exercises #1)
#include <iostream>
using namespace std;
void zigzag(int array[], int n) {
bool x = true;
for (int i = 0; i <= n - 2; i++) {
if (x) {
if (array[i] > array[i+1])
swap(array[i], array[i+1]);
} else {
@aeristhy
aeristhy / tinker script.ahk
Created November 22, 2021 09:28
Tinker Script
#NoEnv
#UseHook
#InstallKeybdHook
#InstallMouseHook
#SingleInstance, force
#Persistent
~d::
SendInput, 444
Sleep, 50
@aeristhy
aeristhy / NeutralSwapper.ahk
Last active November 14, 2021 02:26
Dota2 Neutral Item Swapper Script
;This does not work on heroes with more than 6 skills(heroes like Invoker etc.) but if you want, you can replace the x & y postion.
#SingleInstance, Force
CoordMode, Mouse
SetDefaultMouseSpeed, 2
var = 1

Keybase proof

I hereby claim:

  • I am aeristhy on github.
  • I am aeris0018 (https://keybase.io/aeris0018) on keybase.
  • I have a public key ASDRQeIONdLXSlRbx0E8DaHF4HHUeUK4KXJiRbA0LO3hGAo

To claim this, I am signing this object: