What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-31 08:25:57
how to import websocket from kiteconnect
from kiteconnect import WebSocket # Initialise. kws = WebSocket("your_api_key", "your_public_token", "logged_in_user_id") # Callback for tick reception. def on_tick(tick, ws): print tick # Callback for successful connecti... Add solution -
Javascript 2022-01-31 01:26:15
sttripe for payment in react native andorid
import React from 'react';import AddSubscriptionView from '../components/AddSubscriptionView';const STRIPE_ERROR = 'Payment service error. Try again later.';const SERVER_ERROR = 'Server error. Try again later.';const STRIPE_PUBLISHABLE_KEY = 'Your Key';/*... Add solution -
Other 2022-01-22 09:35:01
terraform filter_policy sample
resource "aws_sns_topic_subscription" "sns-topic" { topic_arn = "arn:aws:sns:${var.region}:${var.account_number}:${var.sns_topic_name}" protocol = "sqs" endpoint = "${aws_sqs_queue.sqs-queue.arn}" ... Add solution -
Html 2021-11-21 16:46:17
unity console debug bold
<i> and </i> for italics <b> and </b> for bold <sup> and </sup> for superscript <sub> and </sub> for subscript <span style="font-variant:small-caps;"> and </span> for smallcaps Add solution -
Other 2021-11-20 19:08:22
could not connect to websocket endpoint ws://localhost:4000/graphql. please check if the endpoint url is correct.
The it turns out that Firefox has issues with websockets (see this bug report that has been re-appeared even after the supposed fix). In Firefox it works directly after starting a novel browser but after some hot reloading it stops working. The following... Add solution -
Other 2021-11-19 09:24:27
how to use sentry with graphql
didEncounterErrors(ctx) { // If we couldn't parse the operation, don't // do anything here if (!ctx.operation) { return; } for (const err of ctx.errors) { // Only report internal server errors, // all errors extending ApolloError sho... Add solution -
Javascript 2021-11-18 01:58:12
square webhook validate signature
// The crypto module provides cryptographic functionality const crypto = require('crypto'); // const body = JSON.stringify(req.body); // const signature = req.header('x-square-signature'); function isValidSignature(body, url, signature) { // Concatena... Add solution -
Python 2021-11-17 00:02:14
Create a dataset from pandas dataframe
# azureml-core of version 1.0.72 or higher is required # azureml-dataprep[pandas] of version 1.1.34 or higher is required from azureml.core import Workspace, Dataset local_path = 'data/prepared.csv' dataframe.to_csv(local_path) # upload the local file t... Add solution -
Other 2021-11-16 10:16:18
ublock reddit promoted posts
// ==UserScript== // @name Washington Post Paywall Bypass // @namespace https://greasyfork.org/users/673609 // @version 0.9.9.2 // @description Bypass Washington Post paywall. // @match https://www.washingtonpost.com/* // @grant ... Add solution