Skip to content

Instantly share code, notes, and snippets.

Avatar

Alessandro Gubitosi gubi

View GitHub Profile
@gubi
gubi / README.md
Last active Apr 30, 2021
Elenco templates Bootstrap per BestGolf
View README.md
@gubi
gubi / _parser.php
Last active Nov 1, 2018
PHP script that extract data from the `resultAgrovoc_filled_20181029.xlsx` file
View _parser.php
<?php
header("Content-type: text/plain");
require 'vendor/autoload.php';
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\IOFactory;
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
@gubi
gubi / sample.json
Created Oct 25, 2018
Bioversity sample metadata
View sample.json
{
"metadataBlocks": {
"citation": {
"fields": [{
"typeName": "title",
"multiple": false,
"value": "Manual para la evaluacion agronomica",
"typeClass": "primitive"
},
{
@gubi
gubi / fix_network_manager_ubuntu.txt
Created Nov 14, 2017 — forked from devcfgc/fix_network_manager_ubuntu.txt
fix network-manager ubuntu resolv.conf
View fix_network_manager_ubuntu.txt
http://askubuntu.com/questions/627899/nameserver-127-0-1-1-in-resolv-conf-wont-go-away
NetworkManager is the program which (via the resolvconf utility) inserts address 127.0.1.1 into resolv.conf. NM inserts that address if an only if it is configured to start an instance of the dnsmasq program to serve as a local forwarding nameserver. That dnsmasq instance listens for queries at address 127.0.1.1.
If you do not want to use a local forwarding nameserver then configure NetworkManager not to start a dnsmasq instance and not to insert that address. In /etc/NetworkManager/NetworkManager.conf comment out the line dns=dnsmasq
sudo nano /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile,ofono
@gubi
gubi / README.md
Last active Feb 9, 2017
Basic API routing with klein. For HTTP Status Codes see https://github.com/gubi/HTTP-Error-Codes
View README.md

Basic API routing

PHP klein config for a basic API routing

@gubi
gubi / bootstrap-3_responsiveness.css
Created May 16, 2016
Bootstrap 3 Media Queries
View bootstrap-3_responsiveness.css
/*==================================================
= Bootstrap 3 Media Queries =
==================================================*/
/*========== Mobile First Method ==========*/
/* Less than mobile (col-xs) */
@media only screen and (min-width: 0px){
}
View running_examples2.php
<?php
$e = new Economics();
print_r($e->Property());
print_r($e->LabourTheory());
print_r($e->InvisibleHand());
?>
View interface-philosophy.php
<?php
interface PhilosophicalContexts {
/**
* The concept of Property
* @see http://www.iep.utm.edu/prop-con/
*/
public function Property();
}
interface PhilosophicalTheories extends PhilosophicalContexts {
/**