Skip to content

Instantly share code, notes, and snippets.

View fpelliccioni's full-sized avatar

Fernando Pelliccioni fpelliccioni

View GitHub Profile
@fpelliccioni
fpelliccioni / gist:61bba78fadcec7ffab3638f833b33deb
Created September 10, 2021 23:20
KTH 2nd Airdrop addresses
0x000BC88BAaadad1C23803678FaDd0fDf868b95C1
0x000CF8B7B0164B9951d0c92BDE01A5882De7D01F
0x001418326B33f5191D45847c6449e82248cCd0b5
0x0022A7e4D9BA235e0143B759Bc48d90eA4f573b4
0x0022f8c6C26F6c9a2985A9EB5ACdEA4a92d88b6b
0x003417801aCE268F9920562d025EC348380356F8
0x003ADd4f62cfA981060CfB700E4Bc7050bc6D5D9
0x0041127185BA63e8aA4bAd55282AC6bC14f006C7
0x004f0eD5015EC3fD889902E049C4599D7e4DA1bb
0x005c19f6524f30Fc48cD6bCB30d59fD0928C2caC
Fernando Pelliccioni, Bitcoin Cash Developer:
b5544c7713n
#!/usr/bin/env bash
# Tested on Ubuntu 16.04 (Xenial)
# surely it can be run on Debian, Fedora and others with some changes
export LC_ALL=C
set -e
# User to setup for building. Vagrant is the default

Keybase proof

I hereby claim:

  • I am fpelliccioni on github.
  • I am fpelliccioni (https://keybase.io/fpelliccioni) on keybase.
  • I have a public key ASBGg5FDTaNnq5vbGAD3foK1uxK7ONl3KKCn7iyODn41Lgo

To claim this, I am signing this object:

@fpelliccioni
fpelliccioni / palindrome.cpp
Created July 9, 2018 01:58
C++17 + Concepts: Palindrome check for Forward Iterators
//Complexity:
// Time: floor(n / 2) equality comparisons
// Space: floor(n / 2) recursive calls
template <ForwardIterator I>
requires(Readable<I>)
std::pair<bool, I> palindrome_recursive(I f, DistanceType<I> n) {
//precondition: readable_weak_range(f, n)
if (zero(n)) return {true, f};
// http://www.slideshare.net/AndreiAlexandrescu2/accu-keynote-by-andrei-alexandrescu
// conservative implementation
Range find_1(Range, E)(Range r, E e) {
for (; !r.empty; r.popFront) {
if (r.front == e) break;
}
return r;
}
#include <iterator>
// Concepts
#define Iterator typename
#define ForwardIterator typename
#define OutputIterator typename
#define BidirectionalIterator typename
#define RamdomAccessIterator typename
#define Integer typename
#===============================================================================
# Filename: boost.sh
# Author: Pete Goodliffe
# Copyright: (c) Copyright 2009 Pete Goodliffe
# Licence: Please feel free to use this, with attribution
# Modified version
#===============================================================================
#
# Builds a Boost framework for the iPhone.
# Creates a set of universal libraries that can be used on an iPhone and in the
@fpelliccioni
fpelliccioni / gist:4312663
Created December 16, 2012 20:40
C++ Safe Dereferencing Nullable References Proposal
#include <memory>
#include <cstddef> //std::nullptr_t;
template <typename T>
class safe_ref
{
public:
typedef T type;
typedef T& reference;