Skip to content

Instantly share code, notes, and snippets.

{
"aggs": {
"tags": {
"terms": {
"field": "tags",
"size": 1000
}
}
},
"query": {
Verifying that +giorrrgio is my blockchain ID. https://onename.com/giorrrgio
@giorrrgio
giorrrgio / SRPViolation.php
Created May 27, 2016 09:58
Single responsibility principle violation in PHP
<?php
class Logger
{
public function __construct(\PDO $pdo)
{
$this->pdo = $pdo;
}
public function log($message)
@giorrrgio
giorrrgio / github_completed_checks_pr.js
Last active November 10, 2016 13:10
Greasemonkey notify completed checks on a pr
// ==UserScript==
// @name PR Checks ready
// @namespace AdEspresso
// @version 1
// @grant none
// @include /^https://github.com/adespresso/adespresso/pull/\d+/
// @require https://code.jquery.com/jquery-latest.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @require https://raw.githubusercontent.com/ttsvetko/HTML5-Desktop-Notifications/master/dist/Notification.min.js
// ==/UserScript==