Skip to content

Instantly share code, notes, and snippets.

View alshell7's full-sized avatar

Owais alshell7

View GitHub Profile
@nicolasdao
nicolasdao / open_source_licenses.md
Last active April 29, 2025 00:59
What you need to know to choose an open source license.
@fbchow
fbchow / gist:5815dac910b725dfa2b0af0e0ad6dd2a
Last active April 28, 2019 08:55
Copying & Moving Files
I always forget the exacty syntax for copying & moving files, especially when dealing with a remote Linux server. And I had wrote some documentation years ago but lost it (so much for persistent storage!). So here's some notes:
Change into the directory you want to download the files
cd /home/dir_to_dump_file_in
Log onto server using Safe File Transfer Protocol--just like how you would "ssh" into the Linux server
sftp [email protected]
password: ilovemarge
Obtain the files from the Linux server on to your local server
@XingLiangLondon
XingLiangLondon / Object Detection.md
Last active November 24, 2022 15:42
Object Detection

Object Detection

Why do we need object detection?

  • Labelling Scenes
  • Robot Navigation
  • Self-Driving Cars
  • Body Recognition (Microsoft Kinect)
  • Disease and Cancer Detection
  • Facial Recognition
"""Easily save tf.data.Datasets as tfrecord files, and restore tfrecords as Datasets.
The goal of this module is to create a SIMPLE api to tfrecords that can be used without
learning all of the underlying mechanics.
Users only need to deal with 2 functions:
save(dataset)
dataset = load(tfrecord, header)
To make this work, we create a .header file for each tfrecord which encodes metadata
@pythonhacker
pythonhacker / test_password_has_argon2i.go
Last active October 6, 2023 14:30
Testing password hashing using Argon2id cryptographic password hashing algorithm
// Storing cryptographic password hashes in database or memory
// and comparing with password.
package main
import (
"log"
"errors"
"strings"
"crypto/subtle"
"encoding/base64"