Skip to content

Instantly share code, notes, and snippets.

View devhindo's full-sized avatar
🌠
creating my own way

devhindo

🌠
creating my own way
View GitHub Profile
@devhindo
devhindo / smtp_outlook.go
Created July 5, 2024 05:34
send outlook mails using Go
package main
import (
"errors"
"fmt"
"log"
"net/smtp"
)
func SendMail(to string) error {
@tykurtz
tykurtz / grokking_to_leetcode.md
Last active April 23, 2025 01:57
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

@veganaize
veganaize / webserver.js
Last active March 23, 2025 15:28
Most basic Node.js web server
var fs = require('fs');
require('http').createServer(function(request, response) {
var path = 'public_html'+ request.url.slice(0,
(request.url.indexOf('?')+1 || request.url.length+1) - 1);
fs.stat(path, function(bad_path, path_stat) {
if (bad_path) respond(404);
else if (path_stat.isDirectory() && path.slice(-1) !== '/') {
response.setHeader('Location', path.slice(11)+'/');
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active April 24, 2025 08:37
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@aliostad
aliostad / stockfish-interface.txt
Created August 17, 2019 10:41
stockfish - Description of the universal chess interface (UCI)
COPIED FROM https://build.opensuse.org/package/view_file/games/stockfish/stockfish-interface.txt?expand=1
Description of the universal chess interface (UCI) April 2006
=================================================================
* The specification is independent of the operating system. For Windows,
the engine is a normal exe file, either a console or "real" windows application.
* all communication is done via standard input and output with text commands,
@bradtraversy
bradtraversy / mysql_cheat_sheet.md
Last active April 23, 2025 12:49
MySQL Cheat Sheet

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@bittner
bittner / keyboard-keys.md
Created February 28, 2019 22:50
Keyboard keys markup in MarkDown

Ctrl + Alt + Space

@bmaupin
bmaupin / free-database-hosting.md
Last active April 24, 2025 13:39
Free database hosting
@bmaupin
bmaupin / free-backend-hosting.md
Last active April 22, 2025 18:50
Free backend hosting