Skip to content

Instantly share code, notes, and snippets.

View yubink's full-sized avatar

Yubin Kim yubink

View GitHub Profile
@yubink
yubink / inall.sh
Created September 3, 2012 18:16
Runs the specified command (provided by the first argument) in all tmux panes for every window regardless if applications are running in the terminal or not.
#!/bin/bash
# Runs the specified command (provided by the first argument) in all tmux panes
# for every window regardless if applications are running in the terminal or not.
function execute_in_all_panes {
# Notate which window/pane we were originally at
ORIG_WINDOW_INDEX=`tmux display-message -p '#I'`
ORIG_PANE_INDEX=`tmux display-message -p '#P'`
@yubink
yubink / MAP_tutorial.ipynb
Last active October 7, 2022 22:01
A brief tutorial on MAP (mean average precision)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// This Apps Script is for Google Sheets, and assigns random feedback partners from a list of names in Column A.
// You can use it to organize a feedback group.
//
// numPartners: number of feedback partners to assign. Defaults to 2.
// nameStartRow: the row that the name list starts on. Assumes names are in Column A. Defaults to row 3.
// outputStartCol: feedback partners will be outputted into every other column starting from outputStartCol. Defaults to Column F.
function assignFeedbackPartners(numPartners = 2, nameStartRow = 3, outputStartCol = 6) {
// Get the active spreadsheet and the active sheet
const sheet = SpreadsheetApp.getActiveSheet();