Skip to content

Instantly share code, notes, and snippets.

View gskema's full-sized avatar

Gytis Šk. gskema

  • Kaunas, Lithuania
View GitHub Profile
// Talking console
//
// Support: http://caniuse.com/#search=SpeechSynthesisUtterance
//
// Copy paste the code into dev console or
// use http://mrcoles.com/bookmarklet/ to create a bookmarklet.
/* ✂️ ......................................................................................... */
if(console.log.name !== 'talkLog') {
console.l = console.log;
@titpetric
titpetric / graphql-mini.php
Created April 11, 2017 08:47
Transform GraphQL fields into JSON to use them for filtering native PHP arrays
<?php
/** A poor mans GraphQL fields parser
*
* Try to convert graphQL fields to JSON and then just use json_decode to produce an array.
*/
class Fields
{
/** Parse GraphQL fields into an array */
public static function parse($query)
@strawburrypokki
strawburrypokki / php-noinspection
Created February 22, 2018 14:22
PHPStorm PHP @noinspection
/* @noinspection PhpAbstractStaticMethodInspection */
/* @noinspection PhpHierarchyChecksInspection */
/* @noinspection PhpUnreachableStatementInspection */
/* @noinspection PhpUnusedLocalVariableInspection */
/* @noinspection PhpWrongCatchClausesOrderInspection */
/* @noinspection PhpDeprecationInspection */
/* @noinspection PhpDocMissingReturnTagInspection */
/* @noinspection PhpDocMissingThrowsInspection */
/* @noinspection PhpDocSignatureInspection */
/* @noinspection PhpMissingDocCommentInspection */