- Open Command Palette
⇧⌘PorF1 - Select
Preferences: Open Keyboard Shortcuts (JSON) keybindings.jsonwill opened- Add below
{
"key": "ctrl+alt+c",
"command": "workbench.action.terminal.sendSequence",
| // Primitive hash function that for a string returns a positive 32 bit int | |
| // Do not use in production, use murmur3 or fnv1 | |
| // You can improve this by changing 5 to 31 | |
| Object.defineProperty(String.prototype, 'hashCode', { | |
| value: function() { | |
| var hash = 0, i, chr; | |
| for (i = 0; i < this.length; i++) { | |
| chr = this.charCodeAt(i); | |
| hash = ((hash << 5) - hash) + chr; | |
| hash |= 0; // Convert to 32bit integer |
(draft; work in progress)
See also:
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare [email protected]:usi-systems/easytrace.git
| #include <iostream> | |
| #include <bitset> | |
| #include <vector> | |
| #include <cassert> | |
| namespace std { } | |
| using namespace std; | |
| typedef size_t (*pHashFunc)(const char*); |