Skip to content

Instantly share code, notes, and snippets.

View avirajkhare00's full-sized avatar
🎯
Focusing

Aviraj Khare avirajkhare00

🎯
Focusing
View GitHub Profile
@avirajkhare00
avirajkhare00 / gist:c0fe4fb5f4a62869e59818d4f0f8fddf
Created March 14, 2025 14:12
Swing Trading Masterclass by Nitin Ranjan | Ankur Patel

Swing Trading Masterclass by Nitin Ranjan | Ankur Patel |

Summary:

Comprehensive Video Analysis

Executive Overview

This in-depth analysis covers 8 major topics from the video: Unlock Your Trading Style: A Journey of Self-Discovery and Market Alignment, Decoding Market Moves: Mastering Volume Analysis with Nitinbhai, Market Timing and Breadth Indicators, Stock Selection Criteria: Liquidity, Float, Stage Analysis, Fundamentals, and Relative Strength, Trading's Tightrope Walk: Mastering Risk, Avoiding Ruin, and Finding Your Comfort Zone, Trading Setups and Entry Strategies: Flags, Bases, and Breakouts, Trade Management and Exit Strategies: Minimizing Overmanagement, The Importance of Journaling: Objective and Subjective Insights.

Each section below provides detailed explanations and insights on these topics, addressing key questions and exploring various dimensions of the content.

import unicodedata
class NameCorrection:
@staticmethod
def normalize_name(name):
"""Normalizes a name by:
- Converting to lowercase
- Removing diacritics
- Splitting into words
- Sorting words
@avirajkhare00
avirajkhare00 / break.py
Created December 7, 2024 13:12 — forked from obfusk/break.py
python "breakpoint" (more or less equivalent to ruby's binding.pry); for a proper debugger, use https://docs.python.org/3/library/pdb.html
import code; code.interact(local=dict(globals(), **locals()))
-----BEGIN PGP PUBLIC KEY BLOCK-----
xsFNBGdLxRYBEAC9OOzda7tIVkmtyEcKALItHT6u/WQ8wVeP0uoqCVEHsZ/x
Q96iQ6rl+1r4s4Q7a6SR3SmNa40/vebEBsQDcO8otrw2/ZcdHTXY0gVscn3S
u/IafkjHuWILJDjdYWXuP+SCZN1iJKZdkzlGR7FPG5qaGqLnPPCk0yfFvxzn
mbG3NMDocXdJj8NBx8WFifxU2l7/v94vW7Tc+d0Jmugqnn6Ry8hCqJBYluNs
jJ45OBBu44vU8fjcpJbxN679e6yA0n3z3x12rW2+KobrXoZqKVyPyJ0ZaA4o
Y8dN3UUPvBnOMetpNYqVvacnw2dMonbHBLpniu0JAIBdSw+0auMr2HBKChCm
LtuofSnfCHIvJsfpokESaL8a4AZM5LoKkHzS9RagQFNWbMPXGQN7E1LJU9HR
yvGP0RoNf0O1WQ/0CdnRiJT32N4DrOMGZdld6HC2dP92f5u+/pkhTqiT8Ge8
<body>
<div class="container-fluid">
<div class="gradient-sides">
<div class="row">
<div class="col-md-4">
</div>
<div class="col-md-3">
<div class="form-area">
<div class="brand-name">
SKUDO
import itertools
import requests
import json
# generate permutations
def generateDomainList(length, characters, tld):
if length > 64:
print("Error: Can't generate domains larger than 64 Characters")
exit(2)
domains = [''.join(x) for x in itertools.product(characters, repeat=length)]
@avirajkhare00
avirajkhare00 / counter.cairo
Created August 31, 2024 15:06
Starknet contract assignment
#[starknet::contract]
pub mod SimpleCounter {
#[storage]
struct Storage {
// Counter variable
counter: u128,
}
#[constructor]
fn constructor(ref self: ContractState, init_value: u128) {

Upscale 1080p to 4k using ffmpeg

Just use the command below:

ffmpeg -i INPUT_FILE \
  -vf scale=3840x2160:flags=lanczos \
  -c:v libx264 \
  -crf 13 \
 -c:a aac -b:a 512k \
@avirajkhare00
avirajkhare00 / siege
Created October 23, 2023 22:06 — forked from MikeNGarrett/siege
Siege with JSON POST data
# Changed to use content-type flag instead of header: -H 'Content-Type: application/json'
siege -c50 -t60S --content-type "application/json" 'http://domain.com/path/to/json.php POST {"ids": ["1","2","3"]}'
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
contract CrowdFunding {
struct Cause {
string name;
string description;
string ipfsHash;
uint256 target;