Skip to content

Instantly share code, notes, and snippets.

Alfredo Torre sentenza

Block or report user

Report or block sentenza

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
sentenza /
Last active Oct 10, 2018
Documentation and resources about Solid (SOcial LInked Data). The aim of this gist is not only to enclose all the essential concepts behind Solid, but also to try to point out its drawbacks and the possible lines of development.

Solid (derived from "SOcial LInked Data") is a proposed set of conventions and tools for building decentralized social applications based on Linked Data principles (LDP).

Solid is a set of [modular and extensible specifications][solid-specs], which build on, and extend the founding technology of the world wide web (HTTP, REST, HTML). They are 100% backwards compatible with the existing web. Each spec, taken in isolation, provides extra features to an existing system. However, when used in combination, they enable exciting new possibilities for web sites and applications.

The key principles at the base of this set of conventions - it's worth to repeat that concept to avoid any ambiguity - are basically 3:

1. True data ownership

Users should have the freedom to choose:

sentenza / employee-controller.scala
Last active Sep 29, 2018 — forked from love2dishtech/employee-controller.scala
Akka HTTP Employee RESTful APIs.
View employee-controller.scala
package com.codersbistro.controllers
import akka.event.Logging
import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport
import akka.http.scaladsl.model.{StatusCodes}
import akka.http.scaladsl.server.Route
import akka.http.scaladsl.server.Directives._
import com.codersbistro.controllers.EmployeeController.QueryEmployee
import com.codersbistro.repository.EmployeeRepository
sentenza /
Created Sep 5, 2018
A short introduction of Akka HTTP
sentenza /
Last active Aug 8, 2018 — forked from btroncone/
A Comprehensive Introduction to @ngrx/store - Companion to Series
sentenza /
Created Aug 8, 2018 — forked from staltz/
The introduction to Reactive Programming you've been missing
sentenza /
Created Jul 12, 2018
Writing Progressive Web Apps - Useful online resources
sentenza / quaternions.scala
Created May 26, 2018 — forked from propensive/quaternions.scala
Quaternions in Scala
View quaternions.scala
object Algebra {
// Build up increasingly complex algebras
trait Magma[T] {
def add(x : T, y : T) : T
trait Monoid[T] extends Magma[T] {
def zero : T
sentenza / test_extract_thumbnail.php
Created Oct 26, 2017
Extract a thumbnail using PHP and FFmpeg
View test_extract_thumbnail.php
class Extract {
const FFMPEG_PATH = '/usr/bin/ffmpeg';
public function exec($psSource, $psDest) {
$aOutput = [];
$aError = null;
$sCommand = sprintf("%s -i %s -vframes 1 %s 2>&1", self::FFMPEG_PATH, $psSource, $psDest);
echo 'Executing: ' . $sCommand;
sentenza / formatBytes.php
Created Oct 26, 2017
Bytes formatting (KB, MB, GB)
View formatBytes.php
* Format an amount of bytes using a SI metric conversion
* Note: 1024 to express the format in KiB, MiB
* @author Alfredo Torre <>
* @see
* @param string/int $pBytes
* @param int $piPrecision
You can’t perform that action at this time.