Skip to content

Instantly share code, notes, and snippets.

/*
* Perform a basic text search of all (internally generated) chat messages in Jellyfish, like Omnisearch used to do for Flowdock.
*
* Usage:
* 1. Change `theSearchPattern` to the string you're searching for
* 2. Enter line in the Console in the Developer Tools in the browser, after logging into Jellyfish.
* 3. The first 20 results will appear in the console. To see more, press up and return to re-enter the last command.
*
* In case it wasn't clear, this is a terrible hack and not expected to be fit for anything beyond amusement.
*/
@hraftery
hraftery / FetchTasksFromClickup.gs
Created November 7, 2022 02:51
Fetch tasks from the ClickUp API, returning the fields specified as a two dimensional array.
/*
* FetchTasksFromClickup
*
* A simple function to fetch tasks using the ClickUp API and return the fields specified as a two-dimensional array.
* This can be used in a Google Apps Script to pull task data into a Google Sheet.
*
* Author: Heath Raftery
* License: This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ or send a
* letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
@hraftery
hraftery / FetchTimesheetEntriesFromClickUp.gs
Last active April 3, 2023 01:57
Build on FetchTasksFromClickup to pull the time tracking data into a timesheet view.
/*
* FetchTimesheetEntriesFromClickUp
*
* Fetch time tracking entries using the ClickUp API and return the data in calendar format as a two-dimensional array.
* This can be used in a Google Apps Script to pull time tracking data into a Google Sheet, to suit entry into Harvest.
*
* Author: Heath Raftery
* License: This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ or send a
* letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
@hraftery
hraftery / gateway-pi.md
Last active October 26, 2023 21:08
Gateway-Pi : connecting a HiLink cellular dongle to a Billion router

The Job

flowchart LR
    a[Cellular Dongle<br />Huawei E3372h-608] --> |USB| b[Raspberry Pi]
    b-->|Ethernet| c[Billion Router<br />BiPAC 7800NXL]
    c-->|Ethernet/WiFi| d[Home Broadband]

The Why

@hraftery
hraftery / common.h
Last active February 4, 2025 03:09
Project wide includes, macros and types.
/**
* \file
*
* \brief General utility functions
*
* \author Heath Raftery
* \date January, 2025
*/
#ifndef __COMMON_H__
@hraftery
hraftery / assert.h
Created February 1, 2024 23:18
System-wide assert routines to suit embedded programming
/**
* \file
*
* \brief Common assert functionality to suit embedded development.
*
* \author Heath Raftery
* \date March 2020
*/
#ifndef ASSERT_H_
@hraftery
hraftery / iterator_maker.cpp
Last active February 13, 2025 11:38
C++ iterator challenge
#include <vector>
using namespace std;
class C
{
typedef struct {
double position;
double value1;
double value2;