What do you want to save?
Add Code snippet
New code examples
-
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 10:57:02
bash change text in specific column
# Basic syntax: awk '{ gsub("search_text", "replacement_text", $column) }1' input_file # Where: # - search_text is the text you want to replace # - replacement_text is the text that will replace the search_text # - column is the column... Add solution -
Html 2021-08-26 10:56:02
javascript upload file without input
<style> input { display: block; visibility: hidden; width: 0; height: 0; } </style> <input type="file" name="somename" size="chars"> <button>Choose File</button> <script>... Add solution -
Shell/Bash 2021-08-26 10:53:02
bash concatenate two columns
# Basic syntax using awk: awk 'BEGIN {FS="input_delimiter"; OFS="output_delimiter"}; {print $column# "sep" $column#}' input_file # Where: # - The input_delimiter is the delimiter separating columns in # the input_file # - ... Add solution -
Python 2021-08-26 10:52:03
streamlit - Warning: NumberInput value below has type int so is displayed as int despite format string %.1f.
import streamlit as st st.number_input(label="float displayed as integer", format="%i", value=2.4) # The solution for the waring here is to use format="%i" instead of format="%0f" # Moreover, here below some optio... Add solution
Best helpers
Ranking is empty