GithubHelp home page GithubHelp logo

dev_env_basics's Introduction

Work Environment

VS Code

A code editor. It's free, open source, and runs everywhere (even your Ipad).

Install

Source code

  • Really good IntelliSense
  • Debugging
  • Integrated version control (Git)
  • Highly customizable

Overview

Useful Commands

  • ctrl+shift+p -> Most useful, opens the command palette
  • ctrl+k, ctrl+s -> Keyboard shortcuts, away with the mouse!
  • ctrl+b -> Toggle Explorer
  • ctrl+` -> Toggle Terminal

Github Copilot

ChatGPT in your editor

Use cases

Coding

Isolate workspaces on a per-project basis

Template Project Structure:

  • project_name
    • .venv
    • .vscode
    • .gitignore
    • project_name
      • __init__.py
      • main.py
    • requirements.txt

Steps

  1. ctrl+shift+p -> Python: Create Environment

  2. ctrl+shift+` to open new terminal in .venv

  3. pip install -r requirements.txt

  4. Create repo online and initialize it locally

    echo "# project_name" >> README.md
    git init
    git add README.md
    git commit -m "first commit"
    git remote add origin [email protected]:username/project_name.git
    git push -u origin master

For management of different python environments use pyenv

Python Development

Extensions:

Remote development:

Capabilities:

CoPilot Example:

Code Generation:Function that gets the ground state of a given Hamiltonian H

  • Code generation Function that gets the ground state of a given Hamiltonian $H=\begin{bmatrix} 0 & 1 & 1 & 0\ 1 & 0 & 0 & -1\ 1 & 0 & 0 & -1\ 0 & -1 & -1 & 0 \end{bmatrix}$

    Use Scipy sparse matrix instead and return smallest eigenvalue based on real part

  • Code explanation Factorial Docstring Binomial: The latex for this function is

  • Relative Imports

  • Debugging

  • Version Control

  • Pair Coding ctrl+shift+p -> Live Share: Start Collaboration Session

Writing

Prompts

The derivative of the function $f(x)$ is the limit: The fundamental theorem of calculus connects derivatives and integrals

% 3 by 3 Matrix with alphabetic entries

% Hamiltonian from cong et al:

The parameters for our model significantly influence the performance and jsutifies the usefulness of the framework

Scroll bar Git track changes

Extension:

  • Latex Workshop

Note taking

Markdown is powerful

Extensions:

  • Code Spell Checker
  • Markdown+Math
  • markdownlint

Visualise vector addition:

Visualise projection:

dev_env_basics's People

Contributors

matt-lourens avatar

Stargazers

 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.