Skip to content

Instantly share code, notes, and snippets.

View easa's full-sized avatar

Issa Nodehi easa

View GitHub Profile
@easa
easa / nordnet-resource-type.ts
Created March 17, 2022 10:01
The types of resources from https://www.nordnet.se/externalapi/docs/api | typescript | nordnet
export interface Absence {
/** Start date of absence (date) */
absenceFrom: string;
/** Absence percentage (int32) */
absencePercentage: number;
/** End date absence (date) */
absenceTo: string;
/** Type of absence */
absenceType: "SICK" | "MILITARY" | "PARENTAL_LEAVE" | "STUDIES" | "OTHER";
/** The absence id (int32) */
@easa
easa / tlsetup.sh
Created January 2, 2022 17:26 — forked from ljvmiranda921/tlsetup.sh
Set-up script to install a minimal TexLive 2015 Distribution
#!/usr/bin/env bash
#
# Minimal Travis Set-up Script
#
# This script sets-up a minimal TexLive 2015 distribution with the
# additional packages being installed when needed. This is intended
# for Travis continuous integration and is expected to work with the
# Ubuntu Trusty (14.04) Distribution
#
# Copyright (C) 2018 Lester James V. Miranda <[email protected]>
@easa
easa / vwap.js
Created August 25, 2021 16:55 — forked from brianmcallister/vwap.js
VWAP (Volume Weighted Average Price) function.
/**
* Calculate VWAP (volume weighted average price) for a list of bids.
*
* @param {number} total - Total shares bought.
* @param {Array<number, number>} positions - Tuples of position data. The first
* index is the amount of shares, the
* second index is the price of the
* shares.
*
* @example
@easa
easa / copy-registry-publish-bash.yml
Last active June 17, 2020 16:16
npm publish to gpr
# on a situation that both publish on npm and gpr are required. the package.json file should stay clean!
# but other ways to set the registry won't work so there we should change the package.json on bash!
# there we go:
jobs:
publish-gpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
@easa
easa / socket-chat.md
Last active December 24, 2019 09:26
A CLI chat app created via nodejs "net" library!

A CLI chat app created via nodejs net library!

https://github.com/easa/socket-chat

We accept all your oppinions so comment what you think about this project :)
To make a change simply fork this project.
Make sure to test it localy before making a pull-request!
Thanks for your contribution!