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
#!/bin/bash | |
# settings | |
# Login information of freenom.com | |
freenom_email="main@address" | |
freenom_passwd="pswd" | |
# Open DNS management page in your browser. | |
# URL vs settings: | |
# https://my.freenom.com/clientarea.php?managedns={freenom_domain_name}&domainid={freenom_domain_id} | |
freenom_domain_name="domain.name" |
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
// | |
// c++ 11 | |
// | |
// http://bfilipek.hubpages.com/hub/What-you-should-know-about-C11 | |
// http://bfilipek.hubpages.com/hub/What-you-should-know-about-C11-Part-II | |
// http://bfilipek.hubpages.com/hub/What-you-should-know-about-C11-Part-III | |
// | |
#include <string> | |
#include <iostream> | |
#include <vector> |
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
//https://news.ycombinator.com/item?id=7319417 | |
#include <iostream> | |
#include <list> | |
#include <functional> | |
using namespace std; | |
// fmap :: (a -> b) -> f a -> f b |
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
/* | |
(c) 2013 +++ Filip Stoklas, aka FipS, http://www.4FipS.com +++ | |
THIS CODE IS FREE - LICENSED UNDER THE MIT LICENSE | |
ARTICLE URL: http://forums.4fips.com/viewtopic.php?f=3&t=1194 | |
*/ | |
#include <iostream> | |
#include <vector> | |
#include <memory> | |
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
#ifndef TREEPATH_H | |
#define TREEPATH_H | |
#include <QtCore/QLinkedList> | |
#include <iostream> | |
/* | |
* inspired by: | |
* |
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
// | |
//http://bytes.com/topic/c/answers/216333-binary-constant-macros | |
// | |
/* Binary constant generator macro | |
By Tom Torfs - donated to the public domain | |
*/ | |
/* All macro's evaluate to compile-time constants */ |
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
#include <memory> | |
#include <iostream> | |
#include <utility> | |
#include <algorithm> | |
#include <iterator> | |
struct sequence_tag {}; | |
struct pointer_tag {}; | |
template< class X > |
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
// | |
//http://c2.com/cgi/wiki?CeePlusPlusMonadsExample | |
// | |
//see also: http://c2.com/cgi/wiki?OnMonads | |
// | |
#include <iostream> | |
template<typename A_> | |
struct monad |