- Python
- Pylance
- Go
- Code Runner
- Code Time
- Dracula Official
- Material Icon Theme
- Advanced New File
This file contains 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
{ | |
"workbench.iconTheme": "material-icon-theme", | |
"editor.mouseWheelZoom": true, | |
"files.autoSave": "afterDelay", | |
"editor.fontSize": 20, | |
"workbench.editorAssociations": [ | |
{ | |
"viewType": "jupyter.notebook.ipynb", | |
"filenamePattern": "*.ipynb" | |
} |
This file contains 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
" Specify a directory for plugins | |
:set clipboard+=unnamed | |
call plug#begin('~/.vim/plugged') | |
Plug 'dracula/vim', { 'as': 'dracula' } | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'scrooloose/nerdtree' | |
"Plug 'tsony-tsonev/nerdtree-git-plugin' | |
Plug 'Xuyuanp/nerdtree-git-plugin' | |
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' |
This file contains 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
{ | |
// Place your snippets for python here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", |
This file contains 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 turtle, random | |
from math import * | |
t = turtle.Turtle() | |
turtle.bgcolor("black") | |
t.speed(3000000) | |
t.pensize(5) |
This file contains 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
""" | |
Cross platform script for installing and updating V toolchain. | |
Requirements: | |
pip install requests tqdm userpath | |
""" | |
import os # to do a lot of things | |
import platform # to determine host os |
This file contains 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
This gist shows two examples of how to make all goroutines finish in a Go program. There are two implementations mentioned here: | |
1. Using channels | |
2. Using goroutines |
This file contains 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
""" | |
Demo: | |
Github username: Shravan-1908 | |
Repo name: hydra | |
Release ID: (latest) | |
Download stats for `Shravan-1908/hydra`, release `v2.2.0` | |
--------------------------------------------------------- | |
hydra-darwin-amd64: 2 |
This file contains 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 subprocess | |
import os | |
from multiprocessing import Process | |
from typing import List | |
def build(appname:str, platform: str) -> None: | |
try: | |
goos = platform.split("/")[0] | |
goarch = platform.split("/")[1] |
This file contains 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 subprocess | |
import os | |
from pathlib import Path | |
from typing import List | |
from datetime import datetime | |
import sys | |
import shlex | |
def run(command: str) -> None: |
OlderNewer