Skip to content

Instantly share code, notes, and snippets.

View hasandevpwd's full-sized avatar

Hasan Mahmud hasandevpwd

  • Shell Technologies
View GitHub Profile
// playground requires you to assign document definition to a variable called dd
writeRotatedText = function(text) {
var ctx, canvas = document.createElement('canvas');
// I am using predefined dimensions so either make this part of the arguments or change at will
canvas.width = 36;
canvas.height = 270;
ctx = canvas.getContext('2d');
ctx.font = '36pt Arial';
ctx.save();
@hasandevpwd
hasandevpwd / git_and_github_instructions.md
Created February 6, 2023 04:43 — forked from mindplace/git_and_github_instructions.md
Pushing your first project to github

1. Make sure git is tracking your project locally

Do you need a refresher on git? Go through Codecademy's git course.

  1. Using your terminal/command line, get inside the folder where your project files are kept: cd /path/to/my/codebase. → You cannot do this simply by opening the folder normally, you must do this with the command line/terminal.
    → Do you need a refresher on using your command line/terminal? I've compiled my favorite resources here.

  2. Check if git is already initialized: git status

@hasandevpwd
hasandevpwd / clean_code.md
Created November 23, 2022 03:47 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

https://learn.microsoft.com/en-gb/ef/ef6/querying/related-data?redirectedfrom=MSDN
https://www.entityframeworktutorial.net/efcore/querying-in-ef-core.aspx