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 Script from "next/script"; | |
import { useCallback, useEffect, useRef, useState } from "react"; | |
import { PayoneHostedTokenization } from "src/types/payoneHostedTokenization"; | |
import styles from "./styles.module.css"; | |
import { Button, Flex, Space, Spin, Typography, theme as antdTheme } from "antd"; | |
import { CheckCircleFilled, CloseCircleFilled } from "@ant-design/icons"; | |
import { apiClient } from "src/clients/apiClient"; | |
import { useLocalize } from "src/plugins/locale/react/useLocalize"; | |
const DIV_PAYONE_HOSTED_TOKENIZATION_ID = "payone-hosted-tokenization"; |
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 { StatusBar } from "expo-status-bar"; | |
import { StyleSheet, Text, View, useWindowDimensions } from "react-native"; | |
import { | |
RenderHTML, | |
Document, | |
Node, | |
NodeWithChildren, | |
isDomElement, | |
} from "react-native-render-html"; | |
import { parseDocument } from "htmlparser2"; |
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 main | |
// This script reads a modified fit file (source.fit) and computes the correct | |
// crc16 value and writes the output to a new file (output.fit) | |
import ( | |
"encoding/binary" | |
"encoding/hex" | |
"fmt" | |
"io" |
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
/* | |
* unsaveAllInstagramPosts.js | |
* usage: visit https://instagram.com and run in the browser console (you must be logged in) | |
* version: 2021-03-07 | |
* issues: does not unsave sponsored posts | |
*/ | |
unsaveAllInstagramPosts = async () => { | |
const baseUrl = 'https://www.instagram.com'; |