Skip to content

Instantly share code, notes, and snippets.

View achristodoulou's full-sized avatar

Andreas Christodoulou achristodoulou

View GitHub Profile
@achristodoulou
achristodoulou / .netrc
Created November 23, 2015 09:29 — forked from dropwhile/.netrc
example netrc
# .netrc
## generate token with https://help.github.com/articles/creating-an-oauth-token-for-command-line-use
machine github.com login <token>
@achristodoulou
achristodoulou / combos.php
Last active October 5, 2015 09:41 — forked from fabiocicerchia/combos.php
PHP - Generate all the possible combinations among a set of nested arrays.
<?php
/**
* Generate all the possible combinations among a set of nested arrays.
*
* @param array $data The entrypoint array container.
* @param array $all The final container (used internally).
* @param array $group The sub container (used internally).
* @param mixed $val The value to append (used internally).
* @param int $i The key index (used internally).
*/