Skip to content

Instantly share code, notes, and snippets.

View HamzaAnis's full-sized avatar
:electron:
Excellence is not a skill, it's an attitude.

Hamza Anis HamzaAnis

:electron:
Excellence is not a skill, it's an attitude.
View GitHub Profile
@HamzaAnis
HamzaAnis / GlobalMouseClick.cs
Created June 8, 2018 20:00
A hook for global mouse clicks on a screen.
namespace Demo_mousehook
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
MouseHook mh;
@HamzaAnis
HamzaAnis / GitHub-slack
Last active December 20, 2021 14:10
Subscribe to all of the updates on GitHub plugin slack
/github subscribe owner/repo issues pulls commits commits:* releases comments branches reviews
@HamzaAnis
HamzaAnis / cloudSettings
Last active December 25, 2020 07:19
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-12-25T07:19:08.091Z","extensionVersion":"v3.4.3"}
"{
"proxyDomain": "loopback.modlishka.io",
"listeningAddress": "0.0.0.0",
"proxyAddress": "",
"target": "paypal.com",
"targetResources": "c.paypal.com,www.paypal.com,www.paypalobjects.com,t.paypal.com,ad.doubleclick.net",
"targetRules": "",
"terminateTriggers": "",
"terminateRedirectUrl": "",
"trackingCookie": "ident",
class Node:
def __init__(self, val=None, p=None, l=None, r=None):
self.key = val
self.parent = p
self.left_child = l
self.right_child = r
self.balance_factor = 0
def __repr__(self):
s = str(self.key)
package main
import (
"flag"
"fmt"
"io"
"log"
"net"
"os"
"os/signal"
@HamzaAnis
HamzaAnis / Install Vscode
Created April 12, 2019 13:47
Installing vscode using snap
sudo snap install code --classic
type Queue []*Node
func (q *Queue) Push(n *Node) {
*q = append(*q, n)
}
func (q *Queue) Pop() (n *Node) {
n = (*q)[0]
*q = (*q)[1:]
return
@HamzaAnis
HamzaAnis / index.html
Created October 19, 2018 09:35
Countdown timer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Timer</title>
<link rel="stylesheet" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
@HamzaAnis
HamzaAnis / zohodelay.js
Created August 11, 2018 15:01
A trick to add a delay of 5 seconds in the zoho forms
void delay()
{
info now;
thislist = List();
thislist={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};
for each l in thislist
{
response = getUrl( "https://wait.glitch.me/5");
}
info now;