Skip to content

Instantly share code, notes, and snippets.

View imvickykumar999's full-sized avatar
Working on Deployments.

Vicky Kumar imvickykumar999

Working on Deployments.
View GitHub Profile
@nwesterhausen
nwesterhausen / mca.py
Last active August 25, 2024 00:39
Python class to read minecraft region files.
"""Code to read .mca region files
I modified the javascript library mca-js to create this file.
mca-js: https://github.com/thejonwithnoh/mca-js
This is largely just a python interpretation of that script.
-----------
MIT License
Copyright (c) 2019 Nicholas Westerhausen
@atmos
atmos / 1.gif
Last active December 5, 2024 16:37
round and round
1.gif
@prasanthmj
prasanthmj / get-cell-value.js
Created April 27, 2019 05:28
How to get cell value in Google Sheets using apps script. See article here: http://blog.gsmart.in/google-sheet-script-get-cell-value/
function onOpen()
{
var ui = SpreadsheetApp.getUi();
ui.createMenu('GetValues')
.addItem('get current', 'getCurrentCellValue')
.addItem('get by row col', 'getByRowAndColumn')
.addItem('get by address a1', 'getByCellAddressA1Notation')
.addToUi();
def evaluate(self, node=None) -> float:
"""
Calculate this tree expression recursively
Args:
node(BinaryTreeNode): starts at the root node
"""
# initialize
if node is None:
@ScribbleGhost
ScribbleGhost / Parse_a_local_HTML_file_with_Python_3_and_Beautiful_Soup_4.py
Last active February 18, 2025 21:15
Parse a local HTML file with Python 3 and Beautiful Soup 4
from bs4 import BeautifulSoup
soup = BeautifulSoup(open("C:\\path\\to\\your\\html\\file.html", encoding="utf8"), "html.parser")
print(soup.find_all("div", class_="someclass"))
@imvickykumar999
imvickykumar999 / threeDvector.py
Last active May 24, 2022 09:26
from vixtor import threeDvector as vix
# This is `python package` for calculating and visualizing 3D geometry questions from class 12 maths NCERT.
# {
# try... https://imvickykumar999.github.io/vixtor/
# from vixtor import threeDvector as vix
# angle = vix.angbwlineandplane(printing=True)
# print(angle)
# }
# https://github.com/imvickykumar999/vixtor/blob/master/Subplot.ipynb
import numpy as np, math
import matplotlib.pyplot as plt
def subplot(
l1=False, a1=[1,0,1], b1=[4,9,4],
ul1=30, colorl1='blue', two_pointsl1=False,
l2=False, a2=[-1,9,2], b2=[2,4,7],
@imvickykumar999
imvickykumar999 / subplot.ipynb
Last active November 21, 2020 12:44
subplot.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Import necessary modules
import mcpi.minecraft as minecraft
import mcpi.block as block
# Connect to Minecraft
mc = minecraft.Minecraft.create()
# Get the players position
pos = mc.player.getTilePos()