What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-11 16:40:03
DiscordUtils
import discord from discord.ext import commands import DiscordUtils intents = discord.intents.default() intents.members = True bot = commands.AutoShardedBot(command_prefix=">", intents=intents) tracker = DiscordUtils.InviteTracker(bot) @bot... Add solution -
Other 2022-03-10 18:10:03
protocol buffers stream golang
package main import ( "context" "io" "log" pb "github.com/pramonow/go-grpc-server-streaming-example/src/proto" "google.golang.org/grpc" ) func main() { // dial server conn, err := grpc.Dial(&quo... Add solution -
Other 2022-03-01 16:45:21
how to write manual querry in drf
from django.db import connection def my_custom_sql(self): with connection.cursor() as cursor: cursor.execute("UPDATE bar SET foo = 1 WHERE baz = %s", [self.baz]) cursor.execute("SELECT foo FROM bar WHERE baz = %s",... Add solution -
Javascript 2022-02-26 07:20:20
mobx react hooks async
mobx.configure({ enforceActions: "observed" }) class Store { @observable githubProjects = [] @observable state = "pending" // "pending" / "done" / "error" @action fetchProjects() { ... Add solution -
SQL 2022-01-31 10:46:01
reading mysql data in python
.wp-block-code { border: 0; padding: 0; } .wp-block-code > div { overflow: auto; } .shcb-language { border: 0; clip: rect(1px, 1px, 1px, 1px); -webkit-clip-path: inset(50%); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden... Add solution -
Javascript 2022-01-27 18:47:24
mute command discord.js v12
if(command === "unban"){ if(!msg.member.hasPermission("BAN_MEMBERS")) { return msg.channel.send(`**${msg.author.username}**, You do not have perms to unban someone`) } if(!msg.guild.me.hasPermission("BAN_MEM... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5