- Fix error parsing
- Add missing
yield
in thelogin
function
{ | |
"parser": "@typescript-eslint/parser", | |
"plugins": [ | |
"@typescript-eslint", | |
"prettier" | |
], | |
"extends": [ | |
"eslint:recommended", | |
"plugin:@typescript-eslint/eslint-recommended", | |
"plugin:@typescript-eslint/recommended", |
// If you want to convert a PascalCase variable to camelCase, you can do the following: | |
// Where `n` is the tab stop you want to reference | |
${n/^(.)(.*)$/${1:/downcase}${2}/} | |
// Example: ${1:This is my original} => ${1/^(.)(.*)$/${1:/downcase}${2}/} | |
// If you want to convert a camelCase variable to PascalCase, you can do the following: | |
// Where `n` is the tab stop you want to reference | |
${n/^(.)(.*)$/${1:/upcase}${2}/} |
@startuml | |
!define table(x) class x << (T,#FFAAAA) >> | |
!define view(x) class x << (V,#33CCFF) >> | |
!define pk(x) +<u>x</u> | |
!define fk(x,y) ~x <i>references y</i> | |
!define pkfk(x,y) -<u>x</u> <i>references y</i> | |
hide methods | |
hide stereotypes | |
skinparam shadowing false |
import axios from "axios"; | |
import { settings } from "../settings"; | |
import { authAPI } from "."; | |
const request = axios.create({ | |
baseURL: settings.apiV1, | |
}); | |
request.interceptors.request.use( | |
(config) => { |
<?php | |
/** | |
* Returns UNIX timestamp from a NTP server (RFC 5905) | |
* | |
* @param string $host Server host (default is pool.ntp.org) | |
* @param integer $timeout Timeout in seconds (default is 10 seconds) | |
* @return integer Number of seconds since January 1st 1970 | |
*/ | |
function getTimeFromNTP($host = 'pool.ntp.org', $timeout = 10) |
[alias] | |
# Source: http://stackoverflow.com/questions/7066325/how-to-list-show-git-aliases#answer-7067489 | |
# Found on stackoverflow list all available aliases == | |
alias = config --get-regexp '^alias.*' | |
s = status | |
ss = status --short | |
ssb = status --short --branch | |
co = commit |
<?php | |
/** | |
* Array2XML: A class to convert array in PHP to XML | |
* It also takes into account attributes names unlike SimpleXML in PHP | |
* It returns the XML in form of DOMDocument class for further manipulation. | |
* It throws exception if the tag name or attribute name has illegal chars. | |
* | |
* Author : Lalit Patel | |
* Website: http://www.lalit.org/lab/convert-php-array-to-xml-with-attributes | |
* License: Apache License 2.0 |
param( | |
[Parameter(Position=0)] | |
$Item, | |
[Switch] $WhatIf, | |
[String] $AppConfig = "$env:HOMEDRIVE$env:HOMEPATH\AppConfig", | |
[String] $BaseDir = ".", | |
[Parameter(ParameterSetName="register")] | |
[Switch] | |
$Register, |
function New-Symlink { | |
<# | |
.SYNOPSIS | |
Creates a symbolic link. | |
#> | |
param ( | |
[Parameter(Position=0, Mandatory=$true)] | |
[string] $Link, | |
[Parameter(Position=1, Mandatory=$true)] | |
[string] $Target |