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
#!/usr/bin/env bash | |
cd "${KALEIDOSCOPE_DIR}" | |
cat > .clang-format <<EOF | |
--- | |
BasedOnStyle: Google | |
--- | |
Language: Cpp |
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
+(/opt/homebrew/bin/pyenv:23): enable -f /opt/homebrew/bin/../libexec/pyenv-realpath.dylib realpath | |
+(/opt/homebrew/bin/pyenv:30): '[' -z '' ']' | |
++(/opt/homebrew/bin/pyenv:32): type -P greadlink readlink | |
++(/opt/homebrew/bin/pyenv:32): head -1 | |
+(/opt/homebrew/bin/pyenv:32): READLINK=/usr/bin/readlink | |
+(/opt/homebrew/bin/pyenv:33): '[' -n /usr/bin/readlink ']' | |
+(/opt/homebrew/bin/pyenv:58): '[' -z /Users/merlin/.pyenv ']' | |
+(/opt/homebrew/bin/pyenv:61): PYENV_ROOT=/Users/merlin/.pyenv | |
+(/opt/homebrew/bin/pyenv:63): export PYENV_ROOT | |
+(/opt/homebrew/bin/pyenv:65): '[' -z '' ']' |
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
/kaleidoscope-persist | |
/kaleidoscope-persist/temp | |
/kaleidoscope-persist/temp/arduino-cores | |
/kaleidoscope-persist/temp/arduino-cores/core | |
/kaleidoscope-persist/temp/arduino-cores/core/core_keyboardio_virtual_model01_7e313dee64e41aaa1b1f56b756616956.a | |
/kaleidoscope-persist/temp/build | |
/kaleidoscope-persist/temp/build/3456739503-1061.ino | |
/kaleidoscope-persist/temp/build/3456739503-1061.ino/libraries | |
/kaleidoscope-persist/temp/build/3456739503-1061.ino/libraries/kaleidoscope | |
/kaleidoscope-persist/temp/build/3456739503-1061.ino/libraries/kaleidoscope/kaleidoscope |
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
#!/bin/bash | |
# Synchronize the copy of a library used for building Kaleidoscope | |
# (i.e. KeyboardioHID) that will be used inside the Docker container with the | |
# one that is being used for normal builds. We do this by getting the git | |
# revision of the repo on the host, adding that repo as a remote for the docker | |
# version, and checking out the same revision there. | |
sync_docker_lib () { | |
LIB="$1" |
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
{ | |
"timestamp": "2021-06-17T10:46:31.115Z", | |
"uuid": "76e64156-8c5a-4f72-9ae7-65ab8e87057f", | |
"chrysalis": {"version": "0.8.4"}, | |
"os": { | |
"platform": "win32", | |
"distro": "Microsoft Windows 10 Home", | |
"release": "10.0.19042", | |
"codename": "", | |
"kernel": "10.0.19042", |
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
namespace kaleidoscope { | |
namespace plugin { | |
class AppSwitcher : public kaleidoscope::Plugin { | |
public: | |
static constexpr KeyAddr invalid_addr{KeyAddr::invalid_state}; | |
AppSwitcher() {} | |
EventHandlerResult onKeyswitchEvent(Key &key, | |
KeyAddr key_addr, |
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
namespace kaleidoscope { | |
namespace plugin { | |
class AppSwitcher : public kaleidoscope::Plugin { | |
public: | |
static constexpr KeyAddr invalid_addr{KeyAddr::invalid_state}; | |
AppSwitcher() {} | |
EventHandlerResult onKeyswitchEvent(Key &key, | |
KeyAddr key_addr, |
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
# -*- coding: utf-8 -*- | |
import click | |
import os | |
import pandas as pd | |
def file_split(file): | |
s = file.split('.') | |
name = '.'.join(s[:-1]) # get directory name |
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
/* | |
* script to export data in all sheets in the current spreadsheet as individual csv files | |
* files will be named according to the name of the sheet | |
* author: Michael Derazon | |
*/ | |
function onOpen() { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var csvMenuEntries = [{name: "export as csv files", functionName: "saveAsCSV"}]; | |
ss.addMenu("csv", csvMenuEntries); |