Skip to content

Instantly share code, notes, and snippets.

View imvickykumar999's full-sized avatar
Allow Room for Error.

Vicky Kumar imvickykumar999

Allow Room for Error.
View GitHub Profile
# 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 / 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)
# }
@ScribbleGhost
ScribbleGhost / Parse_a_local_HTML_file_with_Python_3_and_Beautiful_Soup_4.py
Last active April 5, 2024 11:43
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"))
def evaluate(self, node=None) -> float:
"""
Calculate this tree expression recursively
Args:
node(BinaryTreeNode): starts at the root node
"""
# initialize
if node is None:
@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();
@atmos
atmos / 1.gif
Last active November 2, 2023 14:21
round and round
1.gif
@nwesterhausen
nwesterhausen / mca.py
Last active October 26, 2023 14:34
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
@Ademking
Ademking / readme.md
Last active November 5, 2023 15:48
💚 Android : How to record events and play them using ADB SHELL

1) Know the event name of touchpad :

Run :

adb shell getevent -pl

Search for : "ABS_MT_TRACKING_ID" - example :

@aparrish
aparrish / understanding-word-vectors.ipynb
Last active May 22, 2024 14:36
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hackeris
hackeris / webs01.py
Last active March 14, 2023 13:09
SQL Injection and XSS demo on flask(Python).
# -*- coding: utf-8 -*-
import os
import sqlite3
from flask import Flask
from flask import redirect
from flask import request
from flask import session
from jinja2 import Template