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
editor.addKeyMap({ | |
"Tab": function (cm) { | |
if (cm.somethingSelected()) { | |
var sel = editor.getSelection("\n"); | |
// Indent only if there are multiple lines selected, or if the selection spans a full line | |
if (sel.length > 0 && (sel.indexOf("\n") > -1 || sel.length === cm.getLine(cm.getCursor().line).length)) { | |
cm.indentSelection("add"); | |
return; | |
} | |
} |
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
/** | |
* Zenburn color palette from the Emacs Zenburn Theme | |
* https://github.com/bbatsov/zenburn-emacs/blob/master/zenburn-theme.el | |
* | |
* Thanks to https://github.com/wisenomad/zenburn-lighttable-theme | |
*/ | |
/* | |
Default color. | |
In .clj files this matches var names, ex. the 'v' in (def v 3) . |
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
import numpy as np | |
import math | |
import matplotlib.pyplot as plt | |
# sample: sampled data | |
# result: fft output | |
def plot(sample, result, sample_rate): | |
plt.figure(1) | |
a = plt.subplot(211) |
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 addCustomOverlaySupport(roomSession, rootElement) { | |
let currLayout = null | |
const overlays = {} | |
rootElement.style.position = 'relative' | |
function adjustOverlayPosition(overlayEl, memberId) { | |
if (!currLayout) return | |
const layer = currLayout.layers.find(lyr => lyr.member_id === memberId) |