Skip to content

Instantly share code, notes, and snippets.

Marcin Malich malcom

Block or report user

Report or block malcom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@malcom
malcom / avr.cpp
Created Apr 30, 2017
Binary to BCD conversion algorithms (benchmark on AVR)
View avr.cpp
//
// Simple binary to BCD conversion algorithms
// http://blog.malcom.pl/2017/konwersja-liczb-binarnych-do-kodu-bcd-avr.html
//
// Copyright (C) 2017 Marcin 'Malcom' Malich <me@malcom.pl>
// Released under the MIT License.
//
// This file contains simple benhmark for AVR microcontrollers
//
@malcom
malcom / multiplex-inter-loop.cpp
Last active Mar 20, 2017
Sample multiplexing 7-segment LED displays on AVR
View multiplex-inter-loop.cpp
//
// Sample multiplexing 7-segment LED displays on AVR
// http://blog.malcom.pl/2017/o-multipleksowaniu-wyswietlaczy-led.html
//
// Copyright (C) 2017 Marcin 'Malcom' Malich <me@malcom.pl>
//
#include <inttypes.h>
#include <stdio.h> // size_t
@malcom
malcom / QTestSuite.h
Last active Dec 26, 2015
QTestSuite - Simple tool for organising your test cases and test suites into hierarchy.
View QTestSuite.h
// QTestSuite
// Simple tool for organising your test cases and test suites into hierarchy.
// Marcin 'Malcom' Malich <me@malcom.pl>
// http://blog.malcom.pl/2013/10/20/qtestsuite/
// MIT License
#ifndef QTEST_SUITE_H
#define QTEST_SUITE_H
#include <QTest>
@malcom
malcom / example.cpp
Last active Dec 18, 2015
TestBenchmark
View example.cpp
// Test::Benchmark example
// http://gist.github.com/malcom/5759223
#include "testbenchm.hpp"
#include <iostream>
#include <iomanip>
#include <memory>
#include <random>
#include <algorithm> // std::generate_n
@malcom
malcom / limiter.h
Last active Dec 16, 2015
ops limiter
View limiter.h
//
// working concept of ops limiter
//
// http://blog.malcom.pl/2013/04/20/limitowanie-ops/
//
// MIT license
//
#ifndef LOPS_LIMITER_H
#define LOPS_LIMITER_H
@malcom
malcom / wp-mc.php
Created Sep 17, 2009
WP Math Captcha
View wp-mc.php
<?php
/*
Plugin Name: WP Math Captcha
Plugin URI: http://projects.malcom.pl/plugins/wordpress/wp-mc.xhtml
Description: Simple math captcha for wordpress comments.
Version: 0.3
Author: Marcin 'Malcom' Malich
Author URI: http://malcom.pl
*/
View treelist.h
/*
* TreeLinkedList - simple tree structure with lists, simlar to B-tree
* http://projects.malcom.pl/code/treelist.xhtml
*
* Copyright (C) 2009 Marcin 'Malcom' Malich <me@malcom.pl>
*
* Released under the MIT License.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
View matrix.h
/*
* Matrix - simple two-dimensional dynamic array based of std::vector
* http://projects.malcom.pl/code/matrix.xhtml
*
* Copyright (C) 2009, 2010 Marcin 'Malcom' Malich <me@malcom.pl>
*
* Released under the MIT License.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
View vector_ptr.h
/*
* VectorPtr - Thin Template idiom for the vector of pointers
* http://projects.malcom.pl/code/vector_ptr.xhtml
*
* Copyright (C) 2009 Marcin 'Malcom' Malich <me@malcom.pl>
*
* Released under the MIT License.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
You can’t perform that action at this time.