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
| #!/bin/bash | |
| # Version 0.1 Tuesday, 07 May 2013 | |
| # Comments and complaints http://www.nicknorton.net | |
| # GUI for mouse wheel speed using imwheel in Gnome | |
| # imwheel needs to be installed for this script to work | |
| # sudo apt-get install imwheel | |
| # Pretty much hard wired to only use a mouse with | |
| # left, right and wheel in the middle. | |
| # If you have a mouse with complications or special needs, | |
| # use the command xev to find what your wheel does. |
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
| ''' | |
| #A simple key gen algorithm (shhh it's a joke algorithm) | |
| #here are some example | |
| KEY = Generator().Key(value=1000) | |
| print(KEY) | |
| #This will return the key's value |
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
| ''' | |
| A simple table generator | |
| +--------------------------+-----------------+---------+ | |
| | NAME | CLASS | NERD | | |
| +--------------------------+-----------------+---------+ | |
| | Mayank Gupta | 12th science | Yes | | |
| | Pradhumn Singh Parmar | 12th science | - | | |
| | Prakhar Dwivedi | - | - | | |
| +--------------------------+-----------------+---------+ |
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
| ''' | |
| Predict The next number from the series | |
| ser = series([0,2,4]) | |
| numbers = ser.series(next=5) | |
| for number in numbers: | |
| print(number) | |
| >>> 6 | |
| >>> 8 |
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 requests, re | |
| from subprocess import run | |
| class Shows: | |
| showl_list = { | |
| "Shaurya Aur Anokhi Ki Kahani":"https://saathnibhanasaathiya2.com/shaurya-aur-anokhi-ki-kahani-grs/", | |
| "Ghum Hai Kisi Ke Pyar Mein":"https://saathnibhanasaathiya2.com/ghum-hai-kisi-ke-pyar-mein/", | |
| "Imlie":"https://saathnibhanasaathiya2.com/imlie-rthj/", | |
| "Anupama": "https://saathnibhanasaathiya2.com/anupama/", | |
| } |
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
| ''' | |
| A simple sudoku solver | |
| ''' | |
| from typing import List | |
| from typing import Tuple | |
| from typing import Union | |
| class sudoku: | |
| def __init__(self, puzzel:List[List[int]]): | |
| self.puzzel = puzzel |
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
| #!/usr/bin/env python3 | |
| from flask import Flask, Response, jsonify, url_for, abort | |
| import requests, re, unicodedata | |
| from bs4 import BeautifulSoup, element | |
| import concurrent.futures, sys | |
| from functools import lru_cache | |
| import gunicorn.app.wsgiapp | |
| MAX_CONCURRENT_WORKERS = 10 |
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 typing import ( | |
| Any, | |
| TypeVar, | |
| ClassVar, | |
| Dict, | |
| Type, | |
| Optional | |
| ) | |
| FV = TypeVar('FV', bound='Flag') |
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
| sudo apt-get remove docker docker-engine docker.io containerd runc | |
| sudo apt-get update | |
| sudo apt-get -y install apt-transport-https ca-certificates curl gnupg lsb-release | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
| echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
| sudo apt-get update | |
| sudo apt-get -y install docker-ce docker-ce-cli containerd.io | |
| sudo curl -L "https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
| sudo chmod +x /usr/local/bin/docker-compose | |
| sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose |
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() { | |
| var document = window.document; | |
| var version = "0.1.0"; | |
| var arr = []; | |
| var isFunction = function isFunction( obj ) { | |
| return typeof obj === "function" && typeof obj.nodeType !== "number" && | |
| typeof obj.item !== "function"; | |
| }; | |
| var isWindow = function isWindow( obj ) { |