Giter VIP home page Giter VIP logo

toolbox's Introduction

Code Tools

Author: Gati Aher
Created: September 25, 2022 macOS Monterey, MacBook Pro, Apple M1 Max

1. Mac Set-Up

1.1. Guides

1.2. Tools

  • xcode, homebrew, autocompletion of commands
  • git, ssh keys
  • neovim + initalization - hyperextensible Vim-based text editor
  • Amethyst - tiling window manager for macOS

1.3. Formatting

1.4. Testing

  • pre-commit - multi-language package manager for pre-commit hooks

1.5 Notes

2. Command-Line (Zsh)

2.1. Guides

2.2. Tools

  • iTerm2 - better terminal for MacOS
  • tmux - terminal multiplexer, window manager within the terminal (like screen)

2.3. Formatting

  • oh-my-zsh - framework for managing Zsh configuration
  • Powerlevel10k - popular zsh theme
  • thefuck - corrects previous command
  • ! fasd - shortcuts for terminal commands
  • tldr - simplified man pages
  • tree - visualize recursive directory structure

3. Bash

3.1. Guides

3.2. Tools

  • curl - data transfer with URLs
  • jq - like sed for JSON data

3.3. Formatting

3.4. Testing

4. Python

4.1. Guides

4.2. Tools

  • mambaforge - reimplementation of the conda package manager in C++, part of a bigger ecosystem to make scientific packaging more sustainable

    • miniconda - package dependency management for any langauge
    • ! pyenv - python version manager
    • poetry - python-specific dependency management and packaging
  • asyncio - write concurrent IO-bound network code using async/await syntax, use with Python asynchronous frameworks

  • logging - write logging messages correctly and concisely, part of Python's standard library

  • Initialize conda environment using mamba env create -n m1mac_tf_env tf-metal-arm64.yaml

    • What is the proper way to install TensorFlow on Apple M1 in 2022
    • tensorflow-deps: dependencies to run TensorFlow on arm64, downloaded from -c apple
    • tensorflow-macos: TensorFlow does not officially support the Mac M1, so I have to use the tensorflow-macos package maintained by Apple.
    • tensorflow-metal: To let TensorFlow leverage the GPU of the M1 Mac, Apple uses a specific plugin in Tensorflow to make the framework compatible with Metal, the graphics stack of MacOS.

4.3. Formatting

  • black - python uncompromising code formatter
  • flake8 - python code linter (comments, docstrings, etc.)
    • flake8-import-order - checks the ordering of your imports
    • flake8-bugbear - find more bugs and design problems
    • flake8-bandit - find common security issues in python code
    • flake8-black - run black for checking Python coding style (If you are using pre-commit configure it to call black and/or flake8 directly - you do not need flake8-black at all)
    • flake8-docstring - pydocstyle and flake8 for combined linting and reporting
    • darglint - functional docstring linter which checks whether a docstring's description matches the actual function/method implementation (expects docstrings to be formatted using the Google, Sphinx, or Numpy style guide) (can pull configuration from Flake8)
  • Google Python Style Guide - rules by Google
  • Sphinx - python documentation generator
  • ! safety - checks dependencies for known security vulnerabilities
  • ! isort - python, isort your imports, so you don’t have to
  • pyright - Microsoft, static type checker for python

4.4. Testing

  • pytest - testing framework
  • nox - automates testing in multiple Python environments

toolbox's People

Contributors

gatiaher avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.