Search and install Gist (kenhowardpdx.vscode-gist) extension from Marketplace.
- From your Github profile, go to Settings and Develpoper Setttings
import tiktoken | |
import langdetect | |
T = tiktoken.get_encoding("o200k_base") | |
length_dict = {} | |
for i in range(T.n_vocab): | |
try: | |
length_dict[i] = len(T.decode([i])) | |
except: |
# OBJECTIVE: Install Arch Linux with encrypted root and swap filesystems with an ENCRYPTED BOOT and boot from UEFI. We will | |
also decrypt and mount our entire encrypted system using a single LUKS passphrase entry. | |
# Note: This method supports both dedicated Arch installs and those who wish to install Arch on a multi-OS-UEFI booting system. | |
# External USB HDD/SSD Installers Notes: Encrypted Arch installs can be booted and run from an external USB HDD or SSD, but | |
# only when the installation is correctly set up. There are several necessary changes to my standard procedure you'll want | |
# to make during the install process. Read my External USB HDD/SSD Installation section below before proceeding. |
import java.io.BufferedReader; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import com.google.gson.Gson; | |
public class GsonTest { | |
public static void main(String[] args) throws FileNotFoundException { |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
require(data.table) | |
require(dplyr) | |
#Get a list with all csv files from the directory that is set as 'working directory' | |
filelist = list.files(pattern="*.csv$") | |
#read all csv files with data.table::fread() and put in df_input_list | |
df_input_list <- lapply(filelist, fread) | |
#reading in csv files can also be done using the base R function read.csv(), without needing to load package "data.table": |
<style> | |
body { margin: 0; } | |
.vimeo-container { | |
padding: 0; | |
width: 100%; | |
height: 100vh; | |
overflow: hidden; | |
position: relative; | |
} | |
iframe { |