This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
customObservable({ | |
next: val => console.log(val), | |
error: err => console.error(err), | |
complete: () => console.log('Completed') | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python3.7 | |
""" | |
Clone/fetch projects from Gitlab using the private token | |
""" | |
import argparse | |
from os import path | |
import json | |
import subprocess | |
import shlex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove duplicates from PATH | |
# order in reverse as well | |
export PATH=$(echo -n $PATH | awk -v RS=: '{print}' | sort -r | awk '!($0 in a) {a[$0]; printf("%s%s", length(a) > 1 ? ":" : "", $0)}') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v2.3.0 | |
hooks: | |
- id: trailing-whitespace | |
- id: check-merge-conflict | |
- id: end-of-file-fixer | |
- id: mixed-line-ending | |
- id: check-docstring-first | |
- id: check-json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"types": [ | |
"feat", | |
"fix", | |
"docs", | |
"style", | |
"refactor", | |
"perf", | |
"test", | |
"build", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
render() { | |
return ( | |
<div> | |
<div className="board-row"> | |
{this.renderSquare(0)} | |
{this.renderSquare(1)} | |
{this.renderSquare(2)} | |
</div> | |
<div className="board-row"> | |
{this.renderSquare(3)} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from gql import Client | |
from gql import gql | |
from gql.transport.requests import RequestsHTTPTransport | |
from typing import Any | |
from typing import Dict | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- => Header ---------------------- {{{ | |
-- Fie: init.lua | |
-- Author: Ammar Najjar <[email protected]> | |
-- Description: My neovim lua configurations file | |
-- }}} | |
-- => General ---------------------- {{{ | |
--- Change leader key to , | |
vim.g.mapleader = ',' | |
local editor_root=vim.fn.expand("~/.config/nvim/") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface SeatingGroup { | |
id: string; | |
name: string; | |
freeSeats: number; | |
} | |
interface Customer { | |
id: number; | |
name: string; | |
tag: string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RED='\033[0;31m' | |
YELLOW='\033[0;33m' | |
LIGHT_GREEN='\033[0;32m' | |
LIGHT_GRAY='\033[0;37m' | |
NORMAL='\033[0m' | |
function prompt_right() { | |
echo -e "${LIGHT_GRAY}\\\t${NORMAL}" | |
} |