<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| # Interface to bind in this example | |
| # ID: wlan0, IP: 192.168.10.183, Gateway: 192.168.10.1 | |
| docker network create -d bridge --subnet=172.18.0.0/16 --gateway=172.18.0.1 -o com.docker.network.bridge.enable_ip_masquerade=false -o com.docker.network.bridge.name=docker_binded docker_binded | |
| echo '1 docker_binded' >> /etc/iproute2/rt_tables | |
| ip rule add from 172.18.0.0/16 tab docker_binded | |
| ip route add 172.18.0.0/16 dev wlan0 tab docker_binded |
| const planCards = document.querySelectorAll('#service-list .uk-card'); | |
| const cardDetails = []; | |
| function convertPersianNumbersToEnglish(text) { | |
| return text.replace(/[۰-۹]/g, (char) => String.fromCharCode(char.charCodeAt(0) - '۰'.charCodeAt(0) + '0'.charCodeAt(0))); | |
| } | |
| planCards.forEach(card => { | |
| const title = convertPersianNumbersToEnglish(card.querySelector('.uk-card-title').textContent.trim()); | |
| const description = convertPersianNumbersToEnglish(card.querySelector('.uk-card-body p').textContent.trim()); |
| -- Simple mpv script to translate subtitle using crow (online) or sdcv (offline) dictionaries. | |
| -- INSTALLATION: | |
| -- To install it, first install crow (https://crow-translate.github.io) and/or sdcv (http://dushistov.github.io/sdcv/) on your marchine with your favorite dicts and then, | |
| -- copy this file to '~/.config/mpv/scripts/' (Linux) or '%AppData%\mpv\scripts\' (Windows). | |
| -- sdcv help: | |
| -- you can download offline dicts from http://download.huzheng.org/Quick/ (or anywhere else) and copy extracted dic folder to '~/.stardict/dic/' | |
| -- CONFIGURATION: | |
| local config = { |
| function wootips_hide_price_add_cart_not_logged_in() { | |
| if ( !is_user_logged_in() ) { | |
| remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); | |
| remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); | |
| remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 ); | |
| remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 ); | |
| add_action( 'woocommerce_single_product_summary', 'wootips_print_login_to_see', 31 ); | |
| add_action( 'woocommerce_after_shop_loop_item', 'wootips_print_login_to_see', 11 ); | |
| } |
| Operation | Pandas Time | Modin Time | Speedup | |
|---|---|---|---|---|
| pd.read_csv('esea_master_dmg_demos.part1.csv') | 8.38 | 3.22 | 2.6 | |
| pd.concat([df for _ in range(5)]) | 3.56 | 0.041 | 86.83 | |
| df.groupby(by='wp_type') | 0.00029 | 0.059 | 0.0049 | |
| df.fillna(value=0) | 1.8 | 0.21 | 8.57 | |
| df.dropna() | 1.24 | 1.71 | 0.73 | |
| df.count() | 1.09 | 0.046 | 23.70 | |
| df.drop_duplicates() | 7.68 | 13.38 | 0.57 | |
| df.describe() | 1.30 | 4.69 | 0.28 | |
| df['seconds'].max() | 0.015 | 0.26 | 0.058 |
| #creating hog features | |
| fd, hog_image = hog(resized_img, orientations=9, pixels_per_cell=(8, 8), | |
| cells_per_block=(2, 2), visualize=True, multichannel=True) |
| # Tested on Python 3.6.1 | |
| # install: pip install --upgrade arabic-reshaper | |
| import arabic_reshaper | |
| # install: pip install python-bidi | |
| from bidi.algorithm import get_display | |
| # install: pip install Pillow | |
| from PIL import ImageFont |
| $ sudo apt install postfix mailutils | |
| # Choose host type 'No configuration' | |
| $ sudo cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf | |
| $ sudo vi /etc/postfix/main.cf | |
| # Add lines below | |
| smtp_sasl_auth_enable = yes | |
| smtp_sasl_password_maps = static:apikey:paste_your_key_here | |
| smtp_sasl_security_options = noanonymous |
| ffmpeg -i <infile> -ac 2 -f wav <outfile> |