Skip to content

Instantly share code, notes, and snippets.

@Hristiyanii
Hristiyanii / SecondstoClock
Created October 15, 2017 08:22
Lua function to convert seconds to a clock string
function SecondsToClock(seconds)
local seconds = tonumber(seconds)
if seconds <= 0 then
return "00:00:00";
else
hours = string.format("%02.f", math.floor(seconds/3600));
mins = string.format("%02.f", math.floor(seconds/60 - (hours*60)));
secs = string.format("%02.f", math.floor(seconds - hours*3600 - mins *60));
return hours..":"..mins..":"..secs
********************************************************
1. https://www.youtube.com/playlist?list=PLKnIA16_Rmva-wY_HBh1gTH32ocu2SoTr ---> Regression algorithm by campusX
2. https://youtube.com/playlist?list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab&si=hKH6Ml1NYOAsnHOJ ---> 3Blue1Brown
***************************************************************************************************************************
***************************************************************************************************************************
Coursera – Machine Learning Engineering for Production (MLOps) Specialization 2024-3
Deploying Machine Learning Models in Productions
https://dl3.downloadly.ir/Files/Elearning/Coursera_Deploying_Machine_Learning_Models_in_Production_2024-3_Downloadly.ir.rar
Introduction to Machine Learning in Productions
@Da9el00
Da9el00 / Data.java
Created November 19, 2023 20:02
Java sender receiver using multithreading
public class Data {
private String packet;
// True: receiver waits
// False: sender waits
private boolean transfer = true;
public synchronized String receive() {
while (transfer) {
try {
@tembleking
tembleking / main.go
Created October 4, 2018 21:06
Prometheus Golang Example
package main
import (
"fmt"
"log"
"math/rand"
"net/http"
"time"
"github.com/prometheus/client_golang/prometheus"
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 8, 2024 21:23
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@christoph-frick
christoph-frick / Awesome-Fennel.md
Last active May 8, 2024 21:15
Use fennel to write the awesome-wm config

How to write an awesome-wm config with Fennel

Awesome-WM is a X11 window manager, that is configured via Lua. Fennel is a Lisp for Lua. This shows a general setup of how to write your awesome-wm config using fennel directly without the compilation step (which would also work, but is not needed).

General setup

Fetch a recent Fennel version (the

@qoomon
qoomon / conventional_commit_messages.md
Last active May 8, 2024 21:14
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@akshit1070
akshit1070 / file1.txt
Created May 8, 2024 21:11 — forked from devtest/file1.txt
My Gist
File 1 conents
import time
import random
import numba as nb
import numpy as np
import pandas as pd
from copy import deepcopy
# For type hinting
from typing import Tuple

Warpscon's List of Skins

Heres some social media links.

All of the skins that I have made/put together over the years.

* None of the artwork used is mine