Skip to content

Instantly share code, notes, and snippets.

View adnahmed's full-sized avatar
💫
λ

Adnan Ahmed adnahmed

💫
λ
View GitHub Profile

Free Baidu Account with 5 GB Storage Space

https://oneleaf.icu/account.html

Enjoy the benefits of a Baidu account without any cost, and access up to 5 GB of free downloads. Don't miss out on this offer!

@adnahmed
adnahmed / ultimate-ut-cheat-sheet.md
Created June 7, 2023 14:14 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@adnahmed
adnahmed / esm-package.md
Created April 19, 2023 05:08 — forked from sindresorhus/esm-package.md
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@adnahmed
adnahmed / Documentation.md
Created April 18, 2023 05:12 — forked from KartikTalwar/Documentation.md
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
@adnahmed
adnahmed / pytorch-to-coreml.md
Created May 28, 2022 09:14
Convert Pytorch Model to CoreML

Converting models trained using CVNets to CoreML

For conversion, we assume that you are using MAC OS machine. We follow CoreML tutorial, i.e., first convert the PyTorch model to JIT, and then convert to CoreML model.

Classification networks

We can convert the classification models using the following command

@adnahmed
adnahmed / keybase.md
Created April 18, 2022 15:57
Keybase Proof

Keybase proof

I hereby claim:

  • I am adnahmed on github.
  • I am adnaahm (https://keybase.io/adnaahm) on keybase.
  • I have a public key ASBcN7IhoOLJiwFW2vhmN8ScDr0AuN-SSo1OB9iwbMT6TQo

To claim this, I am signing this object:

#!/bin/bash
# Name: Internet Time
# Version: 1
# Author: Adnan Ahmed Khan
# Contact: mailtoadnan.ahmed@gmail.com
# Description: Swatch Internet Time (Swatch Clock)
# calculate the time of the future
GetInternetTime(){