What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-02 09:41:02
ajax post rest api example
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery.post demo</title> <script src="https://code.jquery.com/jquery-1.10.2.js"></script> </head&g... Add solution -
Shell/Bash 2021-08-30 11:10:01
bash make directories using specific text from filenames
# Basic syntax: for file in /input/directory/search_pattern; do substring=${file:start#:length} mkdir "/output/directory/prepended_text_${substring}_appended_text" done # Where: # - The search_pattern should return the set of files you want t... Add solution -
Shell/Bash 2021-08-29 23:23:01
bash remove characters from end of every line
# Basic syntax using sed: sed 's/..$//' input_file # Where: # - 's///' means 's/search_for/replace_with/' # - '.' means any character # - $ means end of the line # Putting it together, this sed statement means: replace any two # characters at the end of ... Add solution -
Other 2021-08-29 22:55:01
google place api online example
// This example displays an address form, using the autocomplete feature // of the Google Places API to help users fill in the information. function fillInAddress() { // Get the place details from the autocomplete object. var place = autocomplete.get... Add solution -
Shell/Bash 2021-08-29 20:42:02
bash use cat in sed command
# Basic syntax: sed 's/<search_text>/'"`cat replacement.txt`"'/' your_file # Where: # - The replacement.txt file contains a single line that will be used # to replace the search_text, where found in your_file. # Note, this isn't very use... Add solution -
Python 2021-08-27 16:32:01
python import filenames that match search
# Basic syntax: glob.glob('/directory/to/search/search_pattern') # Where the search_pattern follows the Unix path expansion rules # Example usage: # Say you have a directory containing the following files and you only # want to get the filenames ending ... Add solution -
VBA 2021-08-27 07:27:02
office vba like operator
'VBA's Like operator can be used to determine if 'one string is contained in another: MsgBox "Excel Hero" Like "*Hero" 'Displays: True 'Notice that 'Find' supports wild card characters. 'Full documentation: ' https://docs.micro... 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 -
Shell/Bash 2021-08-26 10:47:03
linux find text in files recursively -include
# look for airflow Variable usage recursively in it's homepath # include only python and sql files in the search grep --include=\*.{py,sql} -rnw /home/airflow -e 'Variable' # shows how to use exclude... it'll skip data or log files grep --exclude=\*.{dat... Add solution