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 { axios } from "@pipedream/platform" | |
import { format } from "date-fns" | |
export default defineComponent({ | |
props: { | |
notion: { | |
type: "app", | |
app: "notion", | |
} | |
}, |
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
// To use any npm package, just import it | |
// import axios from "axios" | |
import striptags from "striptags" | |
export default defineComponent({ | |
async run({ steps, $ }) { | |
const description = striptags(steps.trigger.event.description, ['br']).replace(/<br>/g, '\n') | |
const eventTypeMatch = description.match(/Event\sName:\s(\w+)/) | |
const zoomLink = description.match(/(https:\/\/(?:[\w-]+\.)?zoom.us\/j\/\d+\?pwd=\w+)/) |
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
export default function DarkModeImage({ light, dark, alt }) { | |
return ( | |
<picture> | |
<source srcSet={dark} media="(prefers-color-scheme: dark)" /> | |
<img src={light} alt={alt} /> | |
</picture> | |
); | |
} |
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
FROM node:14 | |
# Create app directory | |
WORKDIR /usr/src/app | |
COPY package*.json ./ | |
# Install app dependencies | |
RUN npm install |
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
// constants for your GraphQL Post and Author types | |
const fetch = require("isomorphic-fetch") | |
const MEMBER_NODE_TYPE = `OrbitMember` | |
const ORBIT_API_KEY = `<YOUR_KEY_HERE>` | |
exports.sourceNodes = async ({ | |
actions, | |
createContentDigest, | |
createNodeId, |
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
> Thank you for reaching out to Autonomous! I am sorry to hear that you are having some trouble with your SmartDesk | |
> but I will be glad to assist. It sounds like your system needs a "hard reset" can I please have you follow these | |
> steps thoroughly. | |
Reset Steps: | |
1. Unplug the desk for 20 seconds. Plug it back in. Wait a full 20 seconds. | |
2. Press the up and down buttons until the desk lowers all the way and beeps or 20 seconds pass. | |
3. Release both buttons. | |
4. Press the down buttons until the desk beeps one more time or 20 seconds pass. |
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 React, { useState, useEffect } from "react"; | |
import { | |
TouchableOpacity, | |
View, | |
KeyboardAvoidingView, | |
Modal, | |
ScrollView, | |
StyleSheet, | |
StatusBar | |
} from "react-native"; |
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 { useState, useEffect } from "react"; | |
import { Auth, API, graphqlOperation } from "aws-amplify"; | |
import parse from "date-fns/parse"; | |
import format from "date-fns/format"; | |
import formatDistance from "date-fns/formatDistance"; | |
import { getEvent } from "../graphql/queries"; | |
import { | |
onUpdateEvent, |
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 React, { memo, useState, useEffect } from "react"; | |
import { SafeAreaView, View, TouchableOpacity } from "react-native"; | |
import { Agenda } from "react-native-calendars"; | |
import styled from "@emotion/native"; | |
import { FontAwesome5 } from "@expo/vector-icons"; | |
import { Auth, API, graphqlOperation } from "aws-amplify"; | |
import eachDayOfInterval from "date-fns/eachDayOfInterval"; | |
import parse from "date-fns/parse"; | |
import startOfMonth from "date-fns/startOfMonth"; | |
import startOfDay from "date-fns/startOfDay"; |
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
package com.example.nycworkshopexample; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.widget.TextView; | |
import com.amazonaws.amplify.generated.graphql.CreateTodoMutation; | |
import com.amazonaws.amplify.generated.graphql.ListTodosQuery; | |
import com.amazonaws.amplify.generated.graphql.OnCreateTodoSubscription; |
NewerOlder