Skip to content

Instantly share code, notes, and snippets.

View alberto-dev's full-sized avatar

Alberto Dev alberto-dev

  • Venezia
View GitHub Profile
https://www.convertcsv.com/csv-to-sql.htm
https://regex101.com/
https://etherpad.wikimedia.org/
http://sqlfiddle.com/
https://jsfiddle.net/
import itertools
from pprint import pprint
d1 = { 'a': 1, 'b': 6, 'c': 42 }
d2 = { 'a': 4, 'g': 3, 'c': 41 }
d3 = { 'a': 1, 'b': 6, 'f': 3, 'k': 99 }
items = list( itertools.chain.from_iterable( d.items() for d in ( d1, d2, d3 ) ) )
#pprint( items )
@alberto-dev
alberto-dev / Test.java
Last active May 19, 2020 18:39 — forked from amaembo/Test.java
Reified generics in Java
import java.util.*;
// https://twitter.com/tagir_valeev/status/1262763570904719361
@SuppressWarnings("ALL")
class Test {
static class ReifiedList<T> extends AbstractList<T> {
private final List<T> delegate = new ArrayList<>();
private final Class<?> type;
@alberto-dev
alberto-dev / README.md
Created January 30, 2020 19:13 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007
# quick+dirty demo to test connection to Exchange server using Single Sign On using sspi
# tested on: python 3.7 on win10 x64 joined to a domain
# see: https://github.com/ecederstrand/exchangelib/issues/96
# dependency: https://github.com/ecederstrand/exchangelib
# https://github.com/requests/requests-kerberos
# pip install exchangelib requests-kerberos
# this example does NOT work, ends with exception:
# exchangelib.errors.UnauthorizedError: Wrong username or password for https://...