When a key combination is displayed, the modifiers are written in the order presented here. For example, Control + Option + Shift + Command + Q would be written as ⌃⌥⇧⌘Q.
| Sym | Key | Alt |
|---|---|---|
| ⌃ | Control | |
| ⌥ | Option |
| from sklearn.pipeline import Pipeline | |
| from sklearn.svm import LinearSVC | |
| from sklearn.model_selection import GridSearchCV | |
| from sklearn.preprocessing import StandardScaler | |
| SVCpipe = Pipeline([('scale', StandardScaler()), | |
| ('SVC',LinearSVC())]) | |
| # Gridsearch to determine the value of C | |
| param_grid = {'SVC__C':np.arange(0.01,100,10)} |
| { | |
| "compilerOptions": { | |
| // project options | |
| "lib": [ | |
| "ESNext", | |
| "dom" | |
| ], // specifies which default set of type definitions to use ("DOM", "ES6", etc) | |
| "outDir": "lib", // .js (as well as .d.ts, .js.map, etc.) files will be emitted into this directory., | |
| "removeComments": true, // Strips all comments from TypeScript files when converting into JavaScript- you rarely read compiled code so this saves space | |
| "target": "ES6", // Target environment. Most modern browsers support ES6, but you may want to set it to newer or older. (defaults to ES3) |
| "---- vim-plug setup ---- | |
| let vimplug_exists=expand('~/.config/nvim/autoload/plug.vim') | |
| if has('win32')&&!has('win64') | |
| let curl_exists=expand('C:\Windows\Sysnative\curl.exe') | |
| else | |
| let curl_exists=expand('curl') | |
| endif | |
| if !filereadable(vimplug_exists) | |
| if !executable(curl_exists) |
How to fix a USB drive showing up as two drives (fragmented into multiple partitions) on Windows:
diskpart to enter the disk partition tool.list disk to see all disks listed.select disk [NUMBER]. Be careful to select the correct drive.clean. An error will occur if you have the drive folder open, close the window and repeat the command if this happens.create partition primary.format fs=ntfs quick to format the drive (you can also choose to set fs=fat32).active.| [*.cs] | |
| csharp_style_var_for_built_in_types=true:silent | |
| csharp_style_var_when_type_is_apparent=true:silent | |
| csharp_style_var_elsewhere=true:silent | |
| ## | |
| ## StyleCop.Analyzers | |
| ## | |
| # Using directive should appear within a namespace declaration |
| """""""""""""""""""""" | |
| " Leader | |
| """""""""""""""""""""" | |
| " let mapleader=, | |
| " can't set leaders in Obsidian vim, so the key just has to be used consistently. | |
| " However, it needs to be unmapped, to not trigger default behavior: https://github.com/esm7/obsidian-vimrc-support#some-help-with-binding-space-chords-doom-and-spacemacs-fans | |
| unmap , | |
| " map ; to : in normal mode, so that I don’t rely on the shift key | |
| " nmap ; : |
| #-------------------------------------------------------------------------- | |
| # Configuration | |
| #-------------------------------------------------------------------------- | |
| # Use Vi mode | |
| setw -g mode-keys vi | |
| # Increase scrollback buffer size | |
| set -g history-limit 10000 |
| def program(): | |
| from itertools import zip_longest | |
| import zlib | |
| import subprocess | |
| class Display: | |
| def __repr__(self) -> str: | |
| subprocess.run([ | |
| "feh", | |
| "-xYFqZ", |