Skip to content

Instantly share code, notes, and snippets.

View saurabh47's full-sized avatar
🎯
Focusing

Saurabh Gangamwar saurabh47

🎯
Focusing
View GitHub Profile
@saurabh47
saurabh47 / wemos_d1_mini_blynk.ino
Created May 28, 2023 13:57
Controlling Wemos D1 min ESP8266 using Blynk App
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#define BLYNK_AUTH_TOKEN "YourBlynkToken"
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";
@saurabh47
saurabh47 / multithreading.py
Created April 24, 2023 13:15
Python Multi Threading Example with Queue with Pooling workers
import queue
import threading
import time
def worker(threadId, q):
while True:
item = q.get()
if item is None:
q.task_done()
continue
@saurabh47
saurabh47 / Contract Killer 3.md
Last active August 13, 2022 07:44
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@saurabh47
saurabh47 / getRouteData.ts
Created June 2, 2020 15:20
Angular2+ get Route data
ngOnInit(): void {
this.router.events.pipe(
filter((event) => event instanceof NavigationEnd),
map(() => this.activatedRoute),
map((route) => {
while (route.firstChild) route = route.firstChild;
return route;
}),
filter((route) => route.outlet === 'primary'),
mergeMap((route) => route.data))
@saurabh47
saurabh47 / ec2-myql8-setup.md
Last active May 24, 2020 17:09
MYSQL 8 server setup on EC2 Linux

MYSQL 8 Database Setup On AWS EC2 LINUX

  1. Download RPM file
wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
  1. Install MYSQL server
sudo yum install mysql-community-server
  1. Start the MYSQL service
@saurabh47
saurabh47 / cheatsheet.lua
Last active March 11, 2018 03:35
Lua cheat sheet
-- Prints to the screen (Can end with semicolon)
print("Hello World")
--[[
Multiline comment
]]
-- Variable names can't start with a number, but can contain letters, numbers
-- and underscores