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 numpy as np | |
| import pandas as pd | |
| import seaborn as sns | |
| import matplotlib.pyplot as plt | |
| from sklearn.linear_model import LinearRegression | |
| from sklearn.metrics import r2_score | |
| df = pd.DataFrame() | |
| df['x'] = np.random.uniform(0, 2, size=100) | |
| df['y'] = np.random.uniform(0, 3, size=100) |
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
| Reply below to leave a message. |
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 | |
| set -eux | |
| set -o pipefail | |
| rm -rfv *.dts *.dtsi *.patch | |
| wget -q -O undo-reversion.patch https://git.launchpad.net/~ubuntu-concept/ubuntu/+source/linux/+git/oracular/patch/?id=dce657f91da932d9b2f4069b1c866c80cbd7503b | |
| wget -q --content-disposition https://git.launchpad.net/~ubuntu-concept/ubuntu/+source/linux/+git/oracular/plain/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts?h=qcom-x1e-6.12 | |
| wget -q --content-disposition https://git.launchpad.net/~ubuntu-concept/ubuntu/+source/linux/+git/oracular/plain/arch/arm64/boot/dts/qcom/x1e80100.dtsi?h=qcom-x1e-6.12 |
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
| # Define the board | |
| board = [ | |
| [5, 3, 0, 0, 7, 0, 0, 0, 0], | |
| [6, 0, 0, 1, 9, 5, 0, 0, 0], | |
| [0, 9, 8, 0, 0, 0, 0, 6, 0], | |
| [8, 0, 0, 0, 6, 0, 0, 0, 3], | |
| [4, 0, 0, 8, 0, 3, 0, 0, 1], | |
| [7, 0, 0, 0, 2, 0, 0, 0, 6], | |
| [0, 6, 0, 0, 0, 0, 2, 8, 0], | |
| [0, 0, 0, 4, 1, 9, 0, 0, 5], |
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 sys | |
| from transformers import GPT2Tokenizer | |
| def split_file(file_path, output_prefix, tokens_per_file): | |
| tokenizer = GPT2Tokenizer.from_pretrained("gpt2") | |
| with open(file_path, 'r') as file: | |
| text = file.read() | |
| tokens = tokenizer.encode(text) |
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 bash | |
| # | |
| # A simple CLI tool to quickly download books from Library Genesis | |
| cleanup() { | |
| rm --recursive --force "${stage}" | |
| unset stage | |
| } | |
| show_help() { |
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 | |
| while true; do | |
| /data/data/com.termux/files/home/countdown & | |
| sleep 0.9 | |
| done |
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 math | |
| import random | |
| #get user input as to how long they want the password | |
| passwordlen = int(input("How long would you like your password to be? : ")) | |
| #our chars | |
| chars = "abcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*" | |
| charlist = [] |