Skip to content

Instantly share code, notes, and snippets.

View AmmarHasan's full-sized avatar

Ammar Hasan AmmarHasan

View GitHub Profile
[user]
name = ammarhasan
email = hasanammar94@gmail.com
[core]
editor = nano
[alias]
stash-untracked = "!f() { \
git stash; \
git stash -u; \
git stash pop stash@{1}; \
// cashMachine, returningAmount -> 5,5,5 | 10, 5
function calculate(customerBills) {
const cashMachine = {
5: 0,
10: 0,
20: 0
};
let totalCashInHand = 0;
@AmmarHasan
AmmarHasan / Brewfile
Last active September 29, 2023 07:56
`brew bundle dump` use `brew bundle` to install on target mac
tap "adoptopenjdk/openjdk"
tap "homebrew/bundle"
tap "homebrew/cask-fonts"
tap "txn2/tap"
brew "little-cms2"
brew "webp"
brew "jpeg-xl"
brew "aom"
brew "python@3.11"
brew "docutils"
@AmmarHasan
AmmarHasan / cloudSettings
Last active February 28, 2020 11:23
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-02-28T11:23:06.617Z","extensionVersion":"v3.4.3"}
@AmmarHasan
AmmarHasan / cloudSettings
Created February 14, 2020 12:05
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-02-14T12:05:43.092Z","extensionVersion":"v3.4.3"}
@AmmarHasan
AmmarHasan / cloudSettings
Created February 13, 2020 15:16
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-02-13T15:15:59.909Z","extensionVersion":"v3.4.3"}
@AmmarHasan
AmmarHasan / Online_Courses.md
Created April 22, 2018 11:00
Links to certificates of online courses that I have completed
Verifying my Blockstack ID is secured with the address 13xB6cr8kyMTbrthttEo2TspqrwZVydLPs https://explorer.blockstack.org/address/13xB6cr8kyMTbrthttEo2TspqrwZVydLPs
@AmmarHasan
AmmarHasan / typescript.json
Created February 3, 2017 04:25
User snippet for typescript
{
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
},
"stage 1": {
@AmmarHasan
AmmarHasan / javascript.json
Created February 3, 2017 04:24
User snippet for Javascript
{
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
},
"Condition Debug": {