Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Emrul Zawad ehzawad

🎯
Focusing
Block or report user

Report or block ehzawad

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View hhl.py
from collections import deque
class BFSResult:
def __init__(self):
self.level = {}
self.parent = {}
class Graph:
def __init__(self):
self.adj = {}
View forking.c
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
int main()
{
fork();
fork();
fork();
fork();
View merge_sort.py
def merge(leftSubList, rightSubList):
iLeftIterator = 0
jRightIterator = 0
mergedList = []
while iLeftIterator < len(leftSubList) and jRightIterator < len(rightSubList):
if leftSubList[iLeftIterator] <= rightSubList[jRightIterator]:
mergedList.append(leftSubList[iLeftIterator])
iLeftIterator = iLeftIterator + 1
View vimrc
set nocompatible
" long live vim
set encoding=utf-8
set secure
" When writing buffer encoding to utf-8
set fileencoding=utf-8
set ff=unix
" Script Encoding When writing to buffer
scriptencoding utf-8
View .ycm_extra_conf.py
import os
import os.path
import logging
import ycm_core
BASE_FLAGS = [
# '-Wall',
# '-Wextra',
# '-Werror',
'-Wno-long-long',
View vimrc
set nocompatible
" long live vim
set encoding=utf-8
set secure
" When writing buffer encoding to utf-8
set fileencoding=utf-8
set ff=unix
" Script Encoding When writing to buffer
scriptencoding utf-8
View temp.md

pedant peddle palpable culpable pejorative pellucid penitent penumbra penury peregrinate

View hola.md

misanthropic affable countenance loquacious meretricious equivocate augury bellicose nettle surly 😡

View .bash_profile
# Install npm packages globally without sudo on macOS
NPM_PACKAGES="${HOME}/.npm-packages"
PATH="$NPM_PACKAGES/bin:$PATH"
# Unset manpath so we can inherit from /etc/manpath via the `manpath` command
unset MANPATH # delete if you already modified MANPATH elsewhere in your config
export MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
View Maybe.js
var Maybe = function(x) {
this.__value = x;
}
Maybe.of = function(x) {
return new Maybe(x)
}
Maybe.prototype.isNothing = function() {
return (this.__value === null || this.__value === undefined)
You can’t perform that action at this time.