{
"trailingComma": "none",
"tabWidth": 4,
"semi": false,
"singleQuote": true
}
This file contains hidden or 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
module.exports = { | |
experimentalTernaries: true, | |
semi: false, | |
singleQuote: true, | |
jsxSingleQuote: true, | |
arrowParens: "avoid", | |
}; | |
// npm i prettier eslint-plugin-prettier eslint-config-prettier --save-dev |
This file contains hidden or 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
[*.cs] | |
# IDE0058: Expression value is never used | |
dotnet_diagnostic.IDE0058.severity = none | |
# IDE0053: Use expression body for lambda expressions | |
dotnet_diagnostic.IDE0053.severity = none | |
csharp_indent_labels = one_less_than_current | |
csharp_using_directive_placement = outside_namespace:error | |
csharp_prefer_simple_using_statement = true:error |
This file contains hidden or 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
########################################## | |
# Common Settings | |
########################################## | |
# This file is the top-most EditorConfig file | |
root = true | |
# All Files | |
[*] | |
charset = utf-8 |
This file contains hidden or 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
var OFF = 0, WARN = 1, ERROR = 2; | |
module.exports = exports = { | |
"env": { | |
"es6": true | |
}, | |
"ecmaFeatures": { | |
// env=es6 doesn't include modules, which we are using | |
"modules": true |
This file contains hidden or 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 = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
insert_final_newline = true | |
indent_style = space | |
indent_size = 4 | |
trim_trailing_whitespace = true |
This file contains hidden or 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
DROP PROCEDURE IF EXISTS test; | |
DELIMITER # | |
CREATE PROCEDURE test() | |
BEGIN | |
DECLARE i INT UNSIGNED DEFAULT 1; | |
WHILE i < 100000 DO | |
insert into video_downloads (user_id, video_id, download_at) values ((rand() * 10000),(rand() * 1000),FROM_UNIXTIME( | |
UNIX_TIMESTAMP('2015-04-30 14:53:27') + FLOOR(0 + (RAND() * 315360000)) | |
)); | |
SET i = i + 1; |
This file contains hidden or 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
let arr = [ | |
{ | |
name: 'user', | |
age: 1 | |
}, | |
{ | |
name: 'teacher', | |
age: 9 | |
}, | |
{ |
This file contains hidden or 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
//JS delay function | |
const delay = ms => new Promise(resolve => setTimeout(resolve, ms)) |
NewerOlder