You can add all conventional comments Labels to Github as a saved replies by following the following steps:
- Go to https://github.com/settings/replies
- Open Developer Tools
- Copy/Paste above code in JavaScript console
- Press enter
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
{ | |
"window.zoomLevel": 2, | |
"editor.formatOnType": true, | |
"explorer.confirmDragAndDrop": false, | |
"javascript.updateImportsOnFileMove.enabled": "never", | |
"atomKeymap.promptV3Features": true, | |
"editor.fontFamily": "Fira Code, Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontLigatures": true, | |
"workbench.startupEditor": "newUntitledFile", | |
"window.nativeFullScreen": false, |
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
<!-- | |
Copyright 2016 Google Inc. All rights reserved. | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
See the License for the specific language governing permissions and |
./node_modules/.bin/prettier --single-quote --write "src/**/*.{js,jsx,json,css}"
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
sumOfTwo = (a, b, v) => ( | |
b = new Set(b), | |
a.some(e => b.has(v - e)) | |
) |
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
containsDuplicates = a => a.length > new Set(a).size |
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 isCryptSolution(crypt, solution) { | |
//Map every character, as given in the solution | |
var map = {}; | |
for(var m of solution) | |
map[m[0]] = m[1]; | |
//Ensure no leading zeroes or poorly translated values | |
for(var i in crypt) { | |
var line = crypt[i]; |
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
//Turn columns into rows | |
var transpose = grid => | |
grid[0].map( | |
(_,c) => grid.map( | |
row => row[c] | |
) | |
) | |
//Turn sub-grids into rows | |
var expandSubGrids = grid => { |
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
rotateImage = a => a.map((row, rowIndex) => a.map(val => val[rowIndex]).reverse()) |
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
firstNotRepeatingCharacter = s => { | |
r = {} | |
for (e of s) | |
r[e] = -~r[e] | |
for (e in r) | |
if (r[e] == 1) | |
return e | |
return '_' | |
} |
NewerOlder