What do you want to save?
Add Code snippet
New code examples
-
Python 2021-08-26 11:02:04
difference between args and kwargs in python
>>> def argsKwargs(*args, **kwargs): ... print(args) ... print(kwargs) ... >>> argsKwargs('1', 1, 'slgotting.com', upvote='yes', is_true=True, test=1, sufficient_example=True) ('1', 1, 'slgotting.com') {'upvote': 'yes', 'is_true... Add solution -
C++ 2021-08-26 11:02:03
c++ power of a number
#include <iostream> #include <cmath> using namespace std; int main () { double base, exponent, result; base = 3.4; exponent = 4.4; result = pow(base, exponent); cout << base << "^" << exponent << &qu... Add solution -
Python 2021-08-26 11:01:03
discord.py ban
@commands.command() # uses command decorators, in this case inside a cog @commands.has_permissions(ban_members=True) # only people that have permissions to ban users can use this command async def ban(self, ctx, user: discord.Member, *, reason): # The per... Add solution -
-
Shell/Bash 2021-08-26 11:01:03
wget files matching pattern
# Getting http://some/site/*my_pattern* SITE="http://some/site/" PATTERN="my_pattern" wget -nv -O- $SITE | grep $PATTERN | awk -v pat=$PATTERN -F '"' '{ for (i=1; i<=NF; ++i) { if ($i ~ pat) print $i } }' | while ... Add solution -
Other 2021-08-26 11:01:02
flutter type check
bool check(dynamic object) => object is T; Add solution
Best helpers
Ranking is empty