Skip to content

Instantly share code, notes, and snippets.

View ciembor's full-sized avatar

Maciej Ciemborowicz ciembor

View GitHub Profile
@ciembor
ciembor / bn.c
Created December 19, 2011 14:45
Brightness normalization
/*
* author: Maciej Ciemborowicz
* Jagiellonian University
* ZGK 2011/2012
*
* gcc gd_wewy.o bn.c -o bn -lgd -ansi -Wall -pedantic
*/
#include <stdio.h>
#include <math.h>
@ciembor
ciembor / gist:1494530
Last active July 26, 2026 19:54
RGB to HSL and HSL to RGB conversion functions
/*
* Copyright 2011 Maciej Ciemborowicz
* https://maciej-ciemborowicz.eu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@ciembor
ciembor / prir01.c
Created November 6, 2011 20:07
Perkolacja
/*
*
* autor: Maciej Ciemborowicz
* Uniwersytet Jagielloński
* PRIR 2011/2012
*
* kompilacja: gcc prir01.c -std=c99 -pedantic -Wall -D_XOPEN_SOURCE=600
* uruchamianie: ./a.out rozmiar_tablicy delta_Pb ilosc_eksperymentow liczba_procesow
*
* Zarys działania programu
@ciembor
ciembor / saturation.c
Created October 23, 2011 13:54
Change saturation (university homework - libgd)
// author: Maciej Ciemborowicz
// Jagiellonian University
// ZGK 2011/2012
#include <stdio.h>
#include <math.h>
#include <gd.h>
#include "gd_wewy.h"
#define MIN(a,b) ((a)<(b)?(a):(b))
@ciembor
ciembor / bar_chart.c
Created October 23, 2011 00:50
Draw bar chart (university homework - libgd)
// author: Maciej Ciemborowicz
// Jagiellonian University
// ZGK 2011/2012
#include <gd.h>
#include <gdfontg.h>
#include <string.h>
#include "gd_wewy.h"
int main(int argc, char * argv[])
@ciembor
ciembor / are_images_bright.c
Created October 21, 2011 21:31
Check if images are bright or dark (university homework - libgd)
// author: Maciej Ciemborowicz
// Jagiellonian University
// ZGK 2011/2012
#include <stdio.h>
#include <math.h>
#include <gd.h>
#include "gd_wewy.h"
#define DARK 0
@ciembor
ciembor / .bashrc
Created August 16, 2011 20:41
My PC .bashrc with custom prompt and colorful ls
PS1='[\[\e[0;97m\]\u@\h\[\e[m\] \[\e[0;96m\]\W\[\e[m\]]\[\e[;97m\]\$\[\e[m\] \[\e[0;97m\]'
alias ls="ls --color=always"
@ciembor
ciembor / PKGBUILD
Created August 15, 2011 20:55
geany-multiterm plugin PKGBUILD
# Contributor: Maciej Ciemborowicz <pub at ciemborowicz dot pl>
pkgname=geany-multiterm-git
pkgver=20110815
pkgrel=2
pkgdesc="MultiTerm plugin for Geany editor (terminal with tabs)."
arch=('i686' 'x86_64')
url="https://github.com/codebrainz/geany-multiterm"
license=('unknown')
depends=('geany' 'gtk2>=2.0' 'vte')
[general]
# location=sidebar
location=message_window
bg_color=#000000
fg_color=#ffffff
allow_bold=true
audible_bell=true
# one of: system, on, off
cursor_blink_mode=off
# one of: ascii_backspace, ascii_delete, delete_sequences, tty
ACLOCAL_AMFLAGS = -I m4
VALAFLAGS = --vapidir $(top_srcdir)/src/vapi \
--pkg gtk+-2.0 \
--pkg geany \
--pkg vte \
-H multiterm.h --use-header
geanypluginsdir = $(libdir)/geany
geanyplugins_LTLIBRARIES = multiterm.la