Skip to content

Instantly share code, notes, and snippets.

@moritzWa
moritzWa / beautiful_google-colab.css
Created February 18, 2021 11:29
Make colab.research.google.com beautiful
div.inputarea.horizontal.layout.code {
border-radius: 10px !important;
}
.main-content[elevation="2"] {
border-radius: 10px !important;
}
.code.focused .cell-gutter {
@moritzWa
moritzWa / hashTable.js
Created March 17, 2020 08:54
JavaScript Hashtable Implementation
function hashStringToInt(s, tableSize) {
let hash = 17
for (let i = 0; i < s.length; i++) {
hash = (13 * hash * s.charCodeAt(i)) % tableSize
}
return hash
}