Skip to content

Instantly share code, notes, and snippets.

View mamins1376's full-sized avatar
🤨

min mamins1376

🤨
View GitHub Profile
@mamins1376
mamins1376 / userChrome.css
Last active July 1, 2021 13:55
userChrome.css for Firefox
@-moz-document url(chrome://browser/content/browser.xhtml) {
:root {
--tab-min-height: 32px !important;
--tab-border-radius: 0 !important;
--tabs-navbar-shadow-size: 0 !important;
}
#main-window,
browser[type="content-primary"],
browser[type="content"],
@mamins1376
mamins1376 / rewallpaper.sh
Last active December 6, 2017 14:36
Rewallpaper makes a wallpaper from mpd's currently playing music and set's that as desktop's background!
#!/bin/bash
# configurations
RW_MUSIC=~/music
RW_CACHE=~/.cache/rewallpaper
RW_DEFAULT=~/.wallpaper.jpg
RW_WIDTH=1366
RW_HEIGHT=768
RW_MARGIN=60
@mamins1376
mamins1376 / phonebook.c
Created May 30, 2017 10:02
A Really Simple Phonebook in pure C
/*
* Phonebook
* Mohammad Amin Sameti (951019034)
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct {
@mamins1376
mamins1376 / sudoku.c
Last active January 21, 2024 01:16
a really simple sudoku solver in pure c.
#include <stdio.h>
int main();
int input_grid();
int validate_grid();
int solve_cell(int row, int column);
int is_valid(int row, int column, int value);
void print_grid();
int original[9][9], grid[9][9];