Skip to content

Instantly share code, notes, and snippets.

View HillLiu's full-sized avatar
🍻
Focusing 🐵

Hill Liu HillLiu

🍻
Focusing 🐵
View GitHub Profile
@HillLiu
HillLiu / demo-7x8x-mixed.php
Last active August 3, 2022 21:18 — forked from yftzeng/demo-7x8x-mixed.php
Dirty Mixed PHP7 & PHP8
<?php
declare(strict_types=1);
/**
* PHP8
* add : https://php.watch/versions/8.0/union-types
*/
class SimpleMath
{
-> <-
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
@HillLiu
HillLiu / gist:013d94ce76cfb7e8c46dd935164e4d72
Created January 6, 2017 10:10
React Error by onSetChildren
Warning: Exception thrown by hook while handling onSetChildren: Invariant Violation: Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (4 has parents 3 and 2).
Invariant Violation: Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (4 has parents 3 and 2).
if (!window["googleNDT_"]) {
/** @type {number} */
window["googleNDT_"] = (new Date).getTime();
}
/** @type {number} */
window["_googCsaX"] = 4;
/** @type {number} */
window._googCsaRelSearch = 2631661;
/** @type {number} */
window.googleGws = 1;