Skip to content

Instantly share code, notes, and snippets.

View HarshitJoshi9152's full-sized avatar
💭
Reborn

Karambit HarshitJoshi9152

💭
Reborn
  • India
View GitHub Profile
@nitori
nitori / make_fancy_code.py
Last active January 14, 2023 20:40
Convert python identifiers to some preselected Unicode characters
import ast
import os
import random
import string
import sys
import unicodedata as ud
class IdentifierTransformer(ast.NodeTransformer):
def __init__(self, char_sets: dict[str, dict[str, list]]):
@1devM2
1devM2 / Resources.md
Last active July 12, 2023 04:11
Resources regarding multiple topics, mainly regarding C/C++
  • TODO:
    • Organize better
    • Fix organization
    • Organization based off of level

Installation

Windows

@muff-in
muff-in / resources.md
Last active May 19, 2024 21:45
A curated list of Assembly Language / Reversing / Malware Analysis / Game Hacking-resources
@anuraghazra
anuraghazra / minimal-templating-engine.ts
Last active October 28, 2023 09:07
Minimal Templating Engine In Javascript
// magic!
function dom<Props extends Record<string, unknown>>(
str: TemplateStringsArray,
...args: string[] | ((props: Props) => string)[]
) {
const interleaved = args.flatMap((arg, index) => {
return [arg, str[index + 1]];
});
return (props?: Props) =>
@yogthos
yogthos / clojure-beginner.md
Last active May 6, 2024 08:11
Clojure beginner resources

Introductory resources

@phil-blain
phil-blain / .gitattributes
Last active March 29, 2024 22:38
Git pickaxe : show only relevant hunks (filter displayed hunks using the given search string)
*.md diff=markdown
@xem
xem / readme.md
Last active May 11, 2024 23:57
Maths & trigonometry cheat sheet for 2D & 3D games

Conventions

  • A = [xA, yA] is a point on the 2D plane. Same for B, C, ...
  • lengths are in any unit (ex: pixels)
  • code snippets are in JavaScript

Degrees to radians

angleRad = angleDeg * Math.PI / 180;

@primaryobjects
primaryobjects / irc.py
Created March 18, 2016 03:10
A simple IRC client written in Python.
#
# [2016-03-14] Challenge #258 [Easy] IRC: Making a Connection
# https://www.reddit.com/r/dailyprogrammer/comments/4ad23z/20160314_challenge_258_easy_irc_making_a/
#
import socket
input = """chat.freenode.net:6667
dude1267
dude1267
@jpnelson
jpnelson / split.css
Last active June 14, 2022 16:51
Responsive, resizable panel layout with flexbox
.container {
height: 500px;
border: 2px solid grey;
position:relative;
}
.split {
display: flex;
height: 100%;
border: 1px solid black;
@cleverdevil
cleverdevil / markdown-to-email
Created January 4, 2014 01:06
markdown-to-email A simple script to send beautifully formatted emails that you write in Markdown. The email will have an HTML payload and a plain-text alternative, so you'll make everyone happy, including yourself.
#!/usr/bin/env python
'''
Send an multipart email with HTML and plain text alternatives. The message
should be constructed as a plain-text file of the following format:
From: Your Name <your@email.com>
To: Recipient One <recipient@to.com>
Subject: Your subject line
---