Skip to content

Instantly share code, notes, and snippets.

View alexruimy's full-sized avatar

Alex Ruimy alexruimy

View GitHub Profile
@alexruimy
alexruimy / data.md
Last active December 27, 2022 19:26
sample email data

Message Data for User1 (uid1)

[
    {
        "messageId": "mid1",
        "timestamp": 1609459200,
        "preview": "Hey, just wanted to check in on the project",
        "subject": "Project update",
        "to": "uid1",
        "from": "uid2",
@alexruimy
alexruimy / email.ts
Last active August 10, 2022 21:50
Email model notes
import { faker } from "@faker-js/faker";
// maps to firestore root collection: EmailThread
class EmailThread {
id: string;
eeid: string; // emailengine thread id
subject: ThreadSubject;
participants: Participants;
}
@alexruimy
alexruimy / inlinereply
Created November 18, 2019 21:09
Slack Inline Reply [betterTouchTool]
[
{
"BTTGestureNotes" : "Inline Reply",
"BTTTriggerType" : 0,
"BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
"BTTPredefinedActionType" : -1,
"BTTPredefinedActionName" : "No Action",
"BTTLayoutIndependentActionChar" : "F6",
"BTTAutoAdaptActionToKeyboardLayout" : true,
"BTTShortcutToSend" : "56,97",
@alexruimy
alexruimy / dae-sample.py
Created December 26, 2018 19:35
DAE Sample
import base64
import requests
from PIL import Image
API_KEY = 'xxxxxxxx'
UPLOAD_URL = 'https://api.deeparteffects.com/v1/noauth/upload'
STYLES_URL = 'https://api.deeparteffects.com/v1/noauth/styles'
RESULT_URL = 'https://api.deeparteffects.com/v1/noauth/result?submissionId=%s'
HEADERS = {'x-api-key': API_KEY}