Here's a cheat sheet for the Polars Python package, covering many of its key functions and features:
pip install polars
# Install Polars with all optional dependencies:
pip install 'polars[all]'
This cheat sheet provides a comprehensive overview of the Bootstrap v5 CSS framework, including its layout system, typography, colors, components, utilities, JavaScript plugins, customization options, accessibility considerations, responsive utilities, and RTL support.
It also demonstrates with some code usage examples how to use various features in your HTML and CSS code.
.container
, .container-fluid
, .container-{breakpoint}
.row
, .col
, .col-{breakpoint}-{size}
sm
, md
, lg
, xl
, xxl
license: bsd-3-clause |
#!/usr/bin/env node | |
/** | |
* This script finds the most recent installed version of any given Node package. | |
* Simple usage: | |
* node findRec.js vue [/path/to/projects] | |
*/ | |
const fs = require('fs'); | |
const os = require('os'); | |
const path = require('path'); |
# coding=utf-8 | |
# Copyright 2023 The HuggingFace Inc. team. All rights reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
[ | |
{ | |
"model": "gpt-4", | |
"api_key": "PASTE_YOUR_API_KEY_HERE" | |
}, | |
{ | |
"model": "gpt-4-1106-preview", | |
"api_key": "PASTE_YOUR_API_KEY_HERE" | |
}, | |
{ |
# %% | |
# this is run from /notebooks on paperspace | |
from huggingface_hub import login | |
from dotenv import load_dotenv | |
load_dotenv("/notebooks/.env") | |
import os | |
os.environ["TOKENIZERS_PARALLELISM"]="false" | |
login(token=os.getenv("HUGGINGFACE_TOKEN")) |
1. Install oh-my-zsh | |
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" | |
2. Clone necessary plugins. | |
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions | |
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
3. Add plugins to ~/.zshrc as | |
plugins = ( [plugins...] zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting) |
import { join } from 'path'; | |
import { readdir, stat } from 'fs/promises'; | |
function humanFileSize(bytes, si = false, dp = 1) { | |
const thresh = si ? 1000 : 1024; | |
if (Math.abs(bytes) < thresh) { | |
return bytes + ' B'; | |
} |
# NixOS is a Linux distribution built on top of the Nix package manager, known for its declarative and reproducible approach to system configuration. | |
# read more: https://nixos.org/ | |
# Replit uses NixOS under the hood in order with Nix which is a tool for managing packages and system configurations. | |
#https://docs.replit.com/programming-ide/nix-on-replit | |
# Update nix packages | |
nix-channel --update | |
# list all nix channels |