Skip to content

Instantly share code, notes, and snippets.

View raiyansarker's full-sized avatar
💤
Hibernating

Raiyan Sarker raiyansarker

💤
Hibernating
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>
#define MAX_SIZE 100
typedef struct Stack {
int arr[MAX_SIZE];
int top;
#include <stdio.h>
#include <stdlib.h>
#define MAX_SIZE 100
typedef struct Stack {
int arr[MAX_SIZE];
int top;
} Stack;
#include <stdio.h>
#include <stdlib.h>
typedef struct Node {
int data;
struct Node *next;
} Node;
void push(Node **head, int data);
int pop(Node **head);
#include <stdio.h>
#include <stdlib.h>
typedef struct Node {
int data;
struct Node *next;
struct Node *prev;
} Node;
void insert_end(Node **head, int data);
#include <stdio.h>
#include <stdlib.h>
typedef struct Node {
int data;
struct Node *next;
} Node;
void insert_end(Node **head, int data);
void insert_begin(Node **head, int data);
#include <stdio.h>
#include <stdlib.h>
typedef struct Node {
int data;
struct Node *next;
} Node;
Node* init();
void insert_end(Node *head, int data);
#include <stdio.h>
#include <stdlib.h> // this is for calloc
typedef struct node {
int x,y;
struct node *next;
} Node;
int main() {
/*
{
"division": [
{
"name": "Chattogram",
"bengali": "চট্টগ্রাম",
"district": [
{
"name": "Cumilla",
"bengali": "কুমিল্লা",
"subdistrict": [
@raiyansarker
raiyansarker / hls.sh
Created November 8, 2024 17:33 — forked from stenuto/hls.sh
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then
@raiyansarker
raiyansarker / compress_video
Created August 22, 2024 12:33 — forked from trvswgnr/compress_video
portable shell script to compress videos with ffmpeg
#!/bin/sh
print_usage() {
echo "usage: compress_video <input_file>"
echo "supported formats: mp4, webm, mkv, mov, avi, flv"
}
get_extension() {
f="${1##*/}"
case "$f" in