Skip to content

Instantly share code, notes, and snippets.

View floatflower's full-sized avatar
🏠
Working from home

FloatFlower.Huang floatflower

🏠
Working from home
View GitHub Profile
const countries = {
AF: 'Afghanistan',
AX: 'Aland Islands',
AL: 'Albania',
DZ: 'Algeria',
AS: 'American Samoa',
AD: 'Andorra',
AO: 'Angola',
AI: 'Anguilla',
AQ: 'Antarctica',
<?php
namespace App\EventSubscriber;
use App\CacheAdapterProvider\CacheAdapterProvider;
use App\Enum\CacheType;
use App\Event\User\AfterUserCreated;
use App\Event\User\AfterUserDeleted;
use App\Event\User\AfterUserUpdated;
use Symfony\Component\Cache\CacheItem;
pragma solidity ^0.4.24;
/**
* @title -FoMo-3D v0.7.1
* ┌┬┐┌─┐┌─┐┌┬┐ ╦╦ ╦╔═╗╔╦╗ ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐
* │ ├┤ ├─┤│││ ║║ ║╚═╗ ║ ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐
* ┴ └─┘┴ ┴┴ ┴ ╚╝╚═╝╚═╝ ╩ ┴ ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘
* _____ _____
* (, / /) /) /) (, / /) /)
* ┌─┐ / _ (/_ // // / _ // _ __ _(/
* ├─┤ ___/___(/_/(__(_/_(/_(/_ ___/__/_)_(/_(_(_/ (_(_(_
@floatflower
floatflower / fonts.css
Created December 7, 2017 05:54
Useful HTML head
@import url('https://fonts.googleapis.com/css?family=Crimson+Text|Noto+Sans|Noto+Serif|Source+Code+Pro');
/*
font-family: 'Source Code Pro', monospace;
font-family: 'Noto Sans', sans-serif;
font-family: 'Noto Serif', serif;
font-family: 'Crimson Text', serif;
*/
@floatflower
floatflower / Barlib.pro
Created November 21, 2017 08:18
SubdirProject source code tree.
#-------------------------------------------------
#
# Project created by QtCreator 2017-11-21T15:35:06
#
#-------------------------------------------------
QT -= gui
TARGET = BarLib
TEMPLATE = lib
@floatflower
floatflower / FunctionDipatcher.php
Created November 9, 2017 02:15
FunctionDispatcher.php
<?php
class Dispatcher
{
public function function1($a, $b)
{
return $a + $b;
}
public function function2($a, $b)
{
@floatflower
floatflower / FunctionDipatcher.h
Created November 9, 2017 02:14
FunctionDispatcher in C++
#ifndef FUNCTIONDISPATCHER_H
#define FUNCTIONDISPATCHER_H
#include <QObject>
#include <QHash>
#include <functional>
class FunctionDispatcher : public QObject
{
Q_OBJECT