Skip to content

Instantly share code, notes, and snippets.

View oswwwaldotc's full-sized avatar

Oswaldo TC oswwwaldotc

View GitHub Profile
// time and time end
console.time("This");
let total = 0;
for (let j = 0; j < 10000; j++) {
total += j
}
console.log("Result", total);
console.timeEnd("This");
// Memory
@bradtraversy
bradtraversy / vscode_shortcuts.md
Last active November 8, 2024 00:34
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@vmandic
vmandic / dotnet core .gitignore
Last active August 20, 2024 18:16
A default .NET Core project .gitignore file - or just type `dotnet new gitignore`
# From .NET Core 3.0 you can use the command: `dotnet new gitignore` to generate a customizable .gitignore file
*.swp
*.*~
project.lock.json
.DS_Store
*.pyc
# Visual Studio Code
.vscode
@Kerruba
Kerruba / text-progress-bar-in-console.py
Last active September 2, 2024 00:24
Python #Python
# -*- coding: utf-8 -*-
# Print iterations progress
def print_progress(iteration, total, prefix='', suffix='', decimals=1, bar_length=100):
"""
Call in a loop to create terminal progress bar
@params:
iteration - Required : current iteration (Int)
total - Required : total iterations (Int)
prefix - Optional : prefix string (Str)