The main aim of OOP is to bind together the data and the functions that operate on them so that no other part of the code can access this data except that function.
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 | |
| import requests | |
| import json | |
| from typing import List, Dict, Union, Optional | |
| import subprocess | |
| import argparse | |
| from rich.console import Console | |
| from rich.table import Table | |
| from rich.panel import Panel |
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/sh | |
| # rename-pictures.sh | |
| # Author: Justine Tunney <[email protected]> | |
| # License: Apache 2.0 | |
| # | |
| # This shell script can be used to ensure all the images in a folder | |
| # have good descriptive filenames that are written in English. It's | |
| # based on the Mistral 7b and LLaVA v1.5 models. | |
| # | |
| # For example, the following command: |
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 basic script for uninstalling app packages in Windows 10/11, including those pre-installed with Windows | |
| # | |
| # Note: If you get an error about the script not being allowed to run, the below command will change the execution polciy temporarily for one session only: | |
| # Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process | |
| # | |
| # To execute the script, open a Powershell window to the directory with the script and run the following command using your scripts file name (and don't forget the .\ ) | |
| # .\WhateverScriptName.ps1 | |
| # ------------------------------------------------------------------------------------------- | |
| # Script by ThioJoe - https://github.com/ThioJoe | |
The gists for "Time Travel with BigQuery" blogpost in puccetti.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This tutorial is dated Oct 2021, if it's much further on than that this information might be out of date.
This is a guide on setting up a static HTTPS website on your raspberry pi using docker and nginx. The aim is to have this running on the raspberry pi and to be able to access it from a host computer on the same local network. You should already be able to ssh into your pi from your host computer and have raspberry pi OS set up.
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 timeit | |
| start = timeit.default_timer() | |
| import pandas as pd | |
| df = pd.read_csv('users.csv') | |
| df.sort_values('n', ascending=False) | |
| stop = timeit.default_timer() | |
| print('Time: ', stop - start) |
NewerOlder
