What do you want to save?
Add Code snippet
New code examples
-
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 -
PHP 2022-01-26 18:40:53
laravel transform object to array
$person = new stdClass(); $person->firstName = "Taylor"; $person->age = 32; //Convert Single-Dimention Object to array $personArray = (array) $person; //Convert Multi-Dimentional Object to Array $personArray = objectToArray($person); fun... Add solution -
C 2022-01-26 12:21:39
divide a linked list into three parts based on their position mod 3.
int split_list(struct node *ll) { struct node *l1, *l2, *l3; if(!(ll && ll->next && ll->next->next)){ printf("Need atleast 3 elements\n"); return -1; } l1 = ll; l2 = ll->next; l... Add solution -
Other 2022-01-24 05:20:37
PntIDNumbers
#include <iostream> #include <fstream> #include <cstdlib> #include <string> #include <sstream> #define MAX 200 using namespace std; // Function receive address of the first element of an array // Reads file contents and store... Add solution