Skip to content

Instantly share code, notes, and snippets.

View ForgottenProgramme's full-sized avatar

Mahe Iram Khan ForgottenProgramme

View GitHub Profile

The Bearable Pain in The Foot

We had only been friends for a few weeks when A.H. proposed we take a stroll in the Tiergarten.
It was a bright but very cold morning, there was a promise of snow. The garden was mostly yellow and dry this time of the year. But it was still a desirable change from Central Berlin streets which were very pretty, but weren't especially green.
We agreed the garden would be lush during the summer months and promised to visit again in summer.

I had twisted my ankle the week before and was still limping slightly. A.H. was thoughtful enough to walk slower than normal to match pace with me.
The topic of conversation moved from the weather and the surroundings to books. A.H. shared that she's been reading a book called 'Why We Sleep' and has been finding it rather interesting. I told her about 'The Remains of The Day' which I had recently finished reading.
Now that I think back, I realize we did not abruptly switch from commenting on the weather to discussing

@ForgottenProgramme
ForgottenProgramme / todo.py
Created June 26, 2021 08:09
Todo Manager CLI tool (Python) Mahe Iram Khan
#!/usr/bin/env python
import sys
from datetime import datetime
HELP_MESSAGE = """/
Usage :-
$ ./todo add "todo item" # Add a new todo
$ ./todo ls # Show remaining todos
$ ./todo del NUMBER # Delete a todo
$ ./todo done NUMBER # Complete a todo
$ ./todo help # Show usage
#!/usr/bin/env python
import sys
from datetime import datetime
HELP_MESSAGE = """/
Usage :-
$ ./todo add "todo item" # Add a new todo
$ ./todo ls # Show remaining todos
$ ./todo del NUMBER # Delete a todo
$ ./todo done NUMBER # Complete a todo
$ ./todo help # Show usage
// Mahe Iram Khan
// 18 COB 058
// GI 2028
// Cousins of a node in a given binary tree
// Cousins are defined as children of a sibling node
#include <bits/stdc++.h>
using namespace std;
// Node struct
// Mahe Iram Khan
// 18 COB 058
// GI 2028
// Cousins of a node in a given binary tree
// Cousins are defined as children of a sibling node
#include <bits/stdc++.h>
using namespace std;
// Node struct
@ForgottenProgramme
ForgottenProgramme / bezier.py
Created March 24, 2021 08:32
Code for plotting Bezier curve [ Mahe Iram Khan ]
import tkinter as tk
from tkinter import *
import math
import numpy as np
import time
lines = []
a = []
const1 = 1000
/*
Sample JS implementation of Todo CLI that you can attempt to port:
https://gist.github.com/jasim/99c7b54431c64c0502cfe6f677512a87
*/
/* Returns date with the format: 2021-02-04 */
let getToday: unit => string = %raw(`
function() {
let date = new Date();
return new Date(date.getTime() - (date.getTimezoneOffset() * 60000))
function Square(props) {
return (
<button className="square" onClick={props.onClick}>
{props.value}
</button>
);
}
class Board extends React.Component {
renderSquare(i) {
/*
Sample JS implementation of Todo CLI that you can attempt to port:
https://gist.github.com/jasim/99c7b54431c64c0502cfe6f677512a87
*/
/* Returns date with the format: 2021-02-04 */
let getToday: unit => string = %raw(`
function() {
let date = new Date();
return new Date(date.getTime() - (date.getTimezoneOffset() * 60000))
#!/usr/bin/env python
import sys
from datetime import datetime
HELP_MESSAGE = '''Usage :-
$ ./todo add "todo item" # Add a new todo
$ ./todo ls # Show remaining todos
$ ./todo del NUMBER # Delete a todo
$ ./todo done NUMBER # Complete a todo
$ ./todo help # Show usage
$ ./todo report # Statistics'''