I am a Computer Science Student, currently in 3rd year student at RIET, Jaipur 🏫
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""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 |

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def evaluate(self, node=None) -> float: | |
""" | |
Calculate this tree expression recursively | |
Args: | |
node(BinaryTreeNode): starts at the root node | |
""" | |
# initialize | |
if node is None: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) | |
# } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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], |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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() |