You can use static
in generic to refer to the current class. This is useful in trait implementations:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--color-canvas-default: #00000000; | |
} | |
.markdown-body { | |
background-color: var(--color-canvas-default); | |
} | |
@media (prefers-color-scheme: dark) { | |
.markdown-body { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from '@angular/core'; | |
import { RouterModule, Routes } from '@angular/router'; | |
import { DeactivatableGuard } from './deactivatable.guard'; | |
import { AddPhoneNumberPage } from './add-phone-number.page'; | |
const routes: Routes = [ | |
{ | |
path: '', | |
component: AddPhoneNumberPage, |
https://cloud.google.com/php/grpc
Install via PECL:
sudo pecl install grpc
sudo pecl install protobuf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<ruleset name="Default"> | |
<description>Coding standard configuration.</description> | |
<rule ref="PSR12" /> | |
<rule ref="PEAR.Functions.ValidDefaultValue" /> | |
<rule ref="PEAR.Commenting.InlineComment" /> | |
<rule ref="Squiz.Operators.ValidLogicalOperators" /> | |
<rule ref="Squiz.PHP.CommentedOutCode"> | |
<properties> | |
<property name="maxPercentage" value="50" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@function dasherize($string) { | |
$progress: str-slice($string, 2); | |
$result: str-slice($string, 1, 1); | |
@while str-length($progress) > 0 { | |
$char: str-slice($progress, 1, 1); | |
$mayus: to-upper-case($char); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"browser": true, | |
"es6": true, | |
"node": true | |
}, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:react/recommended" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# -*- ENCODING: UTF-8 -*- | |
# | |
# Copyright © 2017 Nelson Martell (http://nelson6e65.github.io) | |
# | |
# Licensed under The MIT License (MIT) | |
# | |
# For full copyright and license information, please see the LICENSE | |
# Redistributions of files must retain the above copyright notice. | |
# |
NewerOlder