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 -
Other 2022-01-26 20:50:45
flutter utc time to days ago
String convertToAgo(DateTime input){ Duration diff = DateTime.now().difference(input); if(diff.inDays >= 1){ return '${diff.inDays} day(s) ago'; } else if(diff.inHours >= 1){ return '${diff.inHours} hour(s) ago'; } else if(diff.in... Add solution -
Other 2021-11-21 06:52:16
send message to azure service bus queue with postman
using System; using System.Globalization; using System.Security.Cryptography; using System.Text; using System.Web; class MainClass { static readonly string queueOrTopicUrl = "TODO"; // Format: "https://<service bus namespac... Add solution -
Python 2021-11-17 04:29:13
convert timezone python
from datetime import datetime from pytz import timezone, all_timezones # must read else Bug: # https://blog.ganssle.io/articles/2018/03/pytz-fastest-footgun.html # aware dt-obj dt_obj = datetime.strptime('2021-05-19T01:55:10+0000', '%Y-%m-%dT%H:%M:%S%z')... Add solution -
C# 2021-11-07 16:36:12
asp net core identity bearer token authentication example
[HttpPost] public async Task<IActionResult> AccessToken([FromForm]string code, [FromForm]string grant_type, [FromForm]string redirect_uri, [FromForm]string client_id, [FromForm]string client_secret) { // Check if code is correct and if client cr... Add solution