Skip to content

Instantly share code, notes, and snippets.

@meylingtaing
meylingtaing / colorizer.html
Last active September 21, 2022 16:34
my ascii art colorizer
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="colors.css">
<link rel="stylesheet"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#define MAX 28123
int get_divisors(int, int **);
int main(void) {
int *divisors;
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
int get_divisors(int, int **);
int main(void) {
int *divisors;
int num_divisors = get_divisors(100, &divisors);
int i;
@meylingtaing
meylingtaing / Makefile
Last active June 11, 2025 18:48
A generic linked list library for C
llist_driver: llist.o main.c
gcc -Wall -Wextra llist.o main.c -o llist_driver
llist.o: llist.h llist.c
gcc -Wall -Wextra -fPIC llist.h -c llist.c
clean:
rm -rf *.o *.gch llist_driver
import java.util.Arrays;
public class Sort
{
/*
Selection is an in-place sort
Time: N^2
The time it takes to sort is independent of how well sorted the array
already is
*/