What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-02-11 16:55:02
discord.py bot github
#Discord.py bot github import discord from discord.ext import commands import datetime from urllib import parse, request import re bot = commands.Bot(command_prefix='>', description="This is a Helper Bot") @bot.command() async def ping(ct... Add solution -
Javascript 2022-02-10 02:30:01
parse local json file
// pure javascript let object; let httpRequest = new XMLHttpRequest(); // asynchronous request httpRequest.open("GET", "local/path/file.json", true); httpRequest.send(); httpRequest.addEventListener("readystatechange", functi... Add solution -
Other 2022-02-09 14:10:04
reload ionic page
<!-- Custom Refresher Properties --> <ion-content> <ion-refresher slot="fixed" pullFactor="0.5" pullMin="100" pullMax="200"> <ion-refresher-content></ion-refresher-content> <... Add solution -
Other 2022-02-08 01:15:14
import 'package:sqfLite/sqfLite.dart';
// Get a location using getDatabasesPath var databasesPath = await getDatabasesPath(); String path = join(databasesPath, 'demo.db'); // Delete the database await deleteDatabase(path); // open the database Database database = await openDatabase(path, ver... Add solution -
Other 2022-02-07 22:50:29
klavyio manage k maill ists
var settings = { "async": true, "crossDomain": true, "url": "https://manage.kmail-lists.com/ajax/subscriptions/subscribe", "method": "POST", "headers": { "content-... Add solution -
Javascript 2022-02-06 08:45:07
promise definition in javascript
var promise = new Promise(function(resolve, reject) { // do some long running async thing… if (/* everything turned out fine */) { resolve("Stuff worked!"); } else { reject(Error("It broke")); }... Add solution -
Dart 2022-02-02 22:25:47
dart svg drawer
import 'package:flutter/material.dart'; import 'package:flutter_svg/flutter_svg.dart'; import './myState.dart'; import './models/mode.dart'; final String rawSvg = '''<svg viewBox="...">...</svg>'''; class CurvePainter extends Custom... Add solution