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
{ | |
"title": "Additional keymappings for RAPOO Keyboard", | |
"rules": [ | |
{ | |
"description": "Swap left command with left option", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "left_command", |
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
{ | |
"title": "Windows-style keyboard mapping", | |
"rules": [ | |
{ | |
"description": "Application and tab switching", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "tab", |
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
#!/bin/sh | |
protected_branches="master main" | |
policy="\n\n[Policy] Never commit code directly to the "$protected_branch" branch! (Prevented with pre-commit hook.)\n\n" | |
current_branch=$(git rev-parse --abbrev-ref HEAD) | |
do_exit() { | |
echo -e $policy |
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
npx install-peerdeps --dev eslint-config-airbnb-base | |
npm install --dev eslint-config-prettier eslint-plugin-prettier prettier babel-eslint | |
cat > .eslintrc << EOF | |
{ | |
"extends": [ | |
"airbnb-base", | |
"plugin:prettier/recommended" | |
], | |
"env": { | |
"node": true, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"trailingComma": "es5", | |
"tabWidth": 2, | |
"semi": false, | |
"singleQuote": false | |
} |
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
{ | |
"extends": [ | |
"eslint:recommended" | |
], | |
"parserOptions": { | |
"ecmaVersion": 2018 | |
}, | |
"env": { | |
"es6": true, | |
"node": 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
// Generic double ended queue | |
function DoubleEndedQueue() { | |
this.first | |
this.last | |
this.length = 0 | |
} | |
DoubleEndedQueue.prototype.push = function (value) { | |
const newNode = new Node(value) |
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
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.1/p5.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.1/addons/p5.dom.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.1/addons/p5.sound.min.js"></script> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
</head> | |
<body> | |
<div id="canvas-container"/> | |
<script src="sketch.js"></script> |
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
function longestCommonSubsequence(a, b) { | |
function checkSubstring(a, b, startIdx, length) { | |
if (longestCommonSubsequence !== '' || startIdx == a.length) { | |
return | |
} | |
if (startIdx + length > a.length) { | |
checkSubstring(a, b, 0, length - 1) | |
return | |
} |
NewerOlder