{{ message }}

Instantly share code, notes, and snippets.

📚
Focusing on studies

📚
Focusing on studies
Created Sep 10, 2017
View keybase.md

### Keybase proof

I hereby claim:

• I am muhammadmuzzammil1998 on github.
• I am muzzammil1998 (https://keybase.io/muzzammil1998) on keybase.
• I have a public key whose fingerprint is B637 3440 C6DE D7A9 9E7A F604 7942 F835 2768 82F5

To claim this, I am signing this object:

Created Sep 15, 2017
Carl Friedrich Gauss's anecdote of how he summed up 1 to 100 in an interesting manner using a for loop.
View CarlFriedrichGauss.c
 /* * I was reading about Carl Friedrich Gauss's anecdote of how he summed up 1 to 100 * in an interesting manner. So, I wanted to make it with a loop (I know, I am a * lazy guy) and came up with this pretty quickly... so quickly that I thought I did * it wrong but the output was same as the great mathematician. But I think that * there is some another and easy way to do this, right? */ #include
Last active Jan 7, 2021
A simple script used to allocate students to random groups without biasness or discrimination.
View groups.js
 const fs = require("fs"), names = fs.readFileSync("./names.txt").toString().split("\r\n"), noOfGroups = 10, noOfStudents = Math.ceil(names.length / noOfGroups) let groups = [] for (i = 0; i < noOfGroups; i++) { groups.push([]) }