Coder Social home page Coder Social logo

snippets's Introduction

Snippets

code style: prettier

Custom classes and functions to speed things up.

Why? start with why

When I find myself needing to do a task repeatedly (typically in the scale of tens of times), I write custom functions to streamline the process.

But sometimes even custom functions aren't enough, and they are rewritten into custom classes.

Contents

BMI Calculator

Python 3.6+ Code style: black

A custom Python class which computes and displays health advice based on the user's BMI.

Metric and imperial units supported.

Coordinate System Conversions

Python 3.6+ Code style: black

Python functions that convert NumPy arrays of Cartesian coordinates to and from NumPy arrays of spherical coordinates.

DNA Complement

Python 3.6+ Code style: black

A Python function that generates the complementary DNA sequence in upper case.

Stress-Strain Curves

Python 3.6+ Code style: black

A custom Python class that takes in .csv files of strains and stresses to plot the engineering and true stress-strain curves on the same axes.

Temperature Converter (WIP)

Python 3.6+ Code style: black

A custom Python class that converts from one temperature scale to another.

Available temperature scales are Celsius, Kelvin, Fahrenheit, Rankine, Delisle, Newton, Reaumur and Romer.

Another project by...

๐Ÿ‘ค Wei Min Cher @flamanta

Open Source Enthusiast | Engineer | Researcher | Writer

I am currently a EPD Electrical Engineering Sophomore at Singapore University of Technology and Design. Do drop me a message for any opportunities!

Please โญ๏ธ this repository if this project helped you!

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.