Skip to content

Instantly share code, notes, and snippets.

Lorenzo Brutti lbrutti

Block or report user

Report or block lbrutti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lbrutti / apply-templates.php
Created Oct 24, 2018
a simple php script to apply an XSLT to an XML file
View apply-templates.php
if (count($argv) == 0) {
$xsltPath = $argv[1];
$xmlPath = $argv[2];
// $outputPath = $argv[3];
$xslt = file_get_contents($xsltPath);
$xml = file_get_contents($xmlPath);
lbrutti / gcal2moment-holiday.js
Created Jun 7, 2018
Converts json received from goggle cal API in format to be used in moment-holiday plugin locale files
View gcal2moment-holiday.js
//depends on lodash
var momentHolidays = {};, function(o) {
momentHolidays[o.summary] = {
'date': ("-")[1] + '/' +"-")[2])
You can’t perform that action at this time.