Skip to content

Instantly share code, notes, and snippets.

View thomascwo's full-sized avatar

Thomas Cheung thomascwo

View GitHub Profile
@youssef3wi
youssef3wi / GeneCombinations.adoc
Created February 10, 2024 11:48
You have to list all the gene combinations of two parents, from their blood type and the blood type of one of their children.

Goal

You have to list all the gene combinations of two parents, from their blood type and the blood type of one of their children.

Description

Each person has two blood genes, each of them can be A, B or O.

You do not directly know which person has which genes, but you know their phenotypes (the apparent expression of the genes). The phenotype can be: A, B, AB or O.

@kamoshi
kamoshi / debugger.js
Created February 12, 2023 00:39
JS debugger loop hack
function H(n) {
function e(t) {
if ("string" == typeof t) return function(t){}.constructor("while (true) {}").apply("counter");
(t % 20 == 0)
? function() { return !0 }.constructor("debugger").call("action")
: function() { return !1 }.constructor("debugger").apply("stateObject"),
e(++t)
}