Skip to content

Instantly share code, notes, and snippets.

View bveliqi's full-sized avatar
🤙
wuuzzzzuuuuupppppp?!

Behar Veliqi bveliqi

🤙
wuuzzzzuuuuupppppp?!
View GitHub Profile
@bveliqi
bveliqi / case_class.py
Created May 5, 2018 07:32 — forked from wickman/case_class.py
case-class like thing in python
# E.g. TaskClass = CaseClass('name', 'owner', 'pid')
# task1 = TaskClass(name = "hello", owner = "brian", pid = 15)
# task2 = TaskClass(name = "world", owner = "brian", pid = 13)
# tasks = [task1, task2]
#
# filter(lambda task: task.where(owner = "brian"), tasks) => [task1, task2]
# filter(lambda task: task.where(owner = "brian", pid = 13), tasks) => [task2]
#
# matcher = TaskClass(pid = 13)
# filter(lambda task: task.match(matcher), tasks) => [task2]
@bveliqi
bveliqi / 0_reuse_code.js
Created January 17, 2014 21:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console