Skip to content

Instantly share code, notes, and snippets.

View cds's full-sized avatar
♾️
@csangale my another account

CDS cds

♾️
@csangale my another account
  • MH, India
View GitHub Profile
@cds
cds / find-count.js
Created January 21, 2023 05:36
solution for find count
var arr = [1, 2, 3, 3, 3, 4, 3, 5, 4, 6, 5];
//solution with 2 for loop
var counts = {};
for (var i = 0; i < arr.length; i++) {
for (var j = i; j < arr.length; j++) {
if (arr[i] === arr[j]) {
if (counts[arr[i]]) {
counts[arr[i]]++;
} else {
counts[arr[i]] = 1;
@cds
cds / functions.js
Created August 13, 2022 18:30
Anonymous Functions And Immediately Invocation Functions
//1 function without name anonymous
(function () {
});
//2 function that with Immediately invocation
(function () {
console.log("Immediately invocation function")
})();
#! /bin/bash
VBR="1500k"
FPS="24"
QUAL="superfast"
YOUTUBE_URL="rtmp://x.rtmp.youtube.com/live2"
KEY="-=-=-this-isis-keyy-=-=-"
VIDEO_SOURCE="/root/yt/cover.gif"