Skip to content

Instantly share code, notes, and snippets.

View djiwandou's full-sized avatar
🎯
Focusing

djiwandou djiwandou

🎯
Focusing
View GitHub Profile
@djiwandou
djiwandou / code_review_flow.html
Created July 14, 2025 22:55
code review animations created with html, js, css to give understanding of code review flow
<svg viewBox="0 0 1200 800" xmlns="http://www.w3.org/2000/svg">
<!-- Background -->
<rect width="1200" height="800" fill="#f8fafc"/>
<!-- Logo -->
<image x="50" y="10" width="80" height="80" href="https://res.cloudinary.com/dqarz88r6/image/upload/v1751589662/sb-logo2_vg1dz8.png"/>
<!-- Title -->
<text x="600" y="40" text-anchor="middle" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#1e293b">
Code Review: Technical Practice & Learning Journey
@djiwandou
djiwandou / postmortem-template.md
Created November 14, 2023 22:55
Blameless Postmortem Template

Postmortem: Flashsale Grey Screen Problem

Flashsale grey screen in homepage, product list, product detail

Date: 2022-06-21

@djiwandou
djiwandou / postmortems.md
Created November 14, 2023 22:38 — forked from spaceninja/postmortems.md
Postmortem Doc from Cloud Four

Incident Postmortems

Postmortem documents are a ritual designed to examine serious incidents or outages. Google’s book on Site Reliability Engineering says:

A postmortem is a written record of an incident, its impact, the actions taken to mitigate or resolve it, the root cause(s), and the follow-up actions to prevent the incident from recurring.

Purpose

We practice postmortems to ensure we understand and address the root cause of severe incidents such as outages, data loss, or serious production bugs.

import 'package:flutter/material.dart';
import 'package:flutter_tdd/home/home_page.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('home page is created', (WidgetTester tester) async {
final testWidget = MaterialApp(
home: HomePage(),
);
@djiwandou
djiwandou / Dialog.cpp
Created August 22, 2020 18:29 — forked from EXL/1-ReadMe.md
Shutdowner - simple countdown timer with monitoring user activity and shutdown computer after time up
#include "Dialog.h"
#include "ui_Dialog.h"
#include "LCDNumber.h"
#include <QSettings>
Dialog::Dialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::Dialog)
public class Phone {
private final String unformattedNumber;
public Phone(String unformattedNumber) {
this.unformattedNumber = unformattedNumber;
}
public String getAreaCode() {
return unformattedNumber.substring(0,3);
}
public String getPrefix() {
return unformattedNumber.substring(3,6);
public bool SubmitCreditCardOrder(String firstName, String lastName, String zipcode, String streetAddress1, String streetAddress2, String city, String state, String country, String phoneNumber, String creditCardNumber, int expirationMonth, int expirationYear, double saleAmount)
{
// … submit order
}
public class Registration
{
public void Create(double amount, Student student, IEnumerable<Course> courses,
decimal credits)
{
// do work
}
}
class Order {
// ...
public double price() {
private double primaryBasePrice;
private double secondaryBasePrice;
//this might be needed in the future
private double tertiaryBasePrice;
public double getPrimaryBasePrice() {
return primaryBasePrice;
public class BankAccount
{
public BankAccount(int accountAge, int creditScore, AccountInterest accountInterest)
{
AccountAge = accountAge;
CreditScore = creditScore;
AccountInterest = accountInterest;
}
public int AccountAge { get; private set; }