<template name="dsc" value="describe('$text$', () => { $end$ });" description="describe for tests suites" toReformat="false" toShortenFQNames="true">
<variable name="text" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="end" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JS_STATEMENT" value="true" />
</context>
</template>
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": { | |
"es6": true, | |
"browser": true | |
}, | |
"rules": { | |
"comma-dangle": [2, "never"], | |
"indent": [1, "tab"], | |
"no-cond-assign": 1, | |
"no-console": 1, |
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 encodeAsUrl_(params){ | |
return Object.keys(params).map(key => key + '=' + params[key]).join('&') | |
} | |
function handleResponce_(xhr, cb, errcb){ | |
return function () { | |
if (4 === xhr.readyState) { | |
if(xhr.status >= 200 && xhr.status < 400){ | |
cb(xhr); |
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
// you need to $ npm i -D babel-preset-es2015 babel-preset-react babel-preset-stage-0 babelify karma karma-browserify karma-chai karma-mocha karma-mocha-reporter karma-phantomjs-launcher phantomjs-polyfill array.from | |
module.exports = function conf(config) { | |
config.set({ | |
frameworks: ['browserify', 'mocha', 'chai'], | |
plugins: [ | |
'karma-browserify', | |
'karma-mocha', | |
'karma-chai', | |
'karma-phantomjs-launcher', |
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
alias untgz="tar -xvzf" | |
alias hg="history | grep " | |
alias git-clear="git branch -d $(git branch --merged)" | |
alias lsl="ls -l" |
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
.box { | |
margin: 10px; | |
height: 50px; | |
width: 50px; | |
display: inline-block; | |
} | |
.rocket { | |
background: url(http://www.rockybytes.com/i/924/mp3-rocket.jpg); | |
} |
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
Settings for VSCode |
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
export function notEmpty<TValue>( | |
value: TValue | null | undefined | |
): value is TValue { | |
return value !== null && value !== undefined; | |
} | |
export type Maybe<T> = null | undefined | T; | |
export function filterMaybeArrayMaybe<T>(array: Maybe<Maybe<T>[]>) { |
Create a registration form with the following fields:
- User name (must be longer than 3 characters, only latin letters allowed, starts with capital letter)
- Email (must be a valid email)
- Phone number (must be a valid phone number; hyphens and parentheses for city code allowed)
- Password (must be longer than 6 characters, must include digits, upper and lower case letters,
may include special characters (
!@#$%^&*()}{><>}
) but must not include spaces or non-latin unicode characters) - Password repeat (must be the same as Password)
Go to Preferences
→ Profile [default profile]
→ Command
- Check "Run command as a login shell"
- Select "Preserve working directory: always"
See this my answer on Ask Ubuntu. Ans also you need to set to false "Extend height" to minimize Dock when "Activities" activated