Skip to content

Instantly share code, notes, and snippets.

@aravindanve
aravindanve / unsaveAllInstagramPosts.js
Last active March 7, 2021 19:30
Unsaved all saved instagram posts
/*
* 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';
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"
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";
@aravindanve
aravindanve / PayoneHostedTokenizationInput.tsx
Last active April 17, 2024 13:47
Custom input for payone hosted tokenization for antd form and step form
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";