View avr.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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 | |
// |
View multiplex-inter-loop.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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 |
View QTestSuite.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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> |
View gist:5759227
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xor |
View example.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
View limiter.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// working concept of ops limiter | |
// | |
// http://blog.malcom.pl/2013/04/20/limitowanie-ops/ | |
// | |
// MIT license | |
// | |
#ifndef LOPS_LIMITER_H | |
#define LOPS_LIMITER_H |
View wp-mc.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 |
NewerOlder