CLICK ME
yes, even hidden code blocks!
print("hello world!")| #!/usr/bin/python | |
| # ΠΈΠΌΠΏΠΎΡΡΠΈΡΠΎΠ²Π°Π½ΠΈΠ΅ Π½Π΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΡΡ ΠΌΠΎΠ΄ΡΠ»Π΅ΠΉ | |
| from BrickPi import * | |
| import time | |
| import sys | |
| import logging | |
| ################### CUSTOMIZABLE ########################### | |
| # ΠΡΠ΅ ΡΡΠΎ ΠΌΠΎΠΆΠ΅Ρ ΠΈΠ·ΠΌΠ΅Π½ΠΈΡΡ ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»Ρ. ΠΡΠΎ Π³Π»ΠΎΠ±Π°Π»ΡΠ½ΡΠ΅ ΠΊΠΎΠ½ΡΡΠ°Π½ΡΡ | |
| FORMAT = "[%(asctime)s] %(message)s" |
| # coding: utf-8 | |
| """ | |
| This module contains a simple integration with django. | |
| To install on your django project, you need to register all bots on settings, add one line on | |
| your urls and create a register method it will received a dispatcher to add all handlers of | |
| your bot. | |
| ///////// settings.py | |
| TELEGRAM_BOT_WEBHOOK_PATH = 'telegram_webhook' # it's default | |
| TELEGRAM_BOT = [{ | |
| 'token': '{YOUR_BOT_TOKEN}', |
| [Desktop Entry] | |
| Version=1.0 | |
| Encoding=UTF-8 | |
| Name=Popcorn Time | |
| Name[en_US]=Popcorn Time | |
| GenericName=BitTorrent Stream Player | |
| GenericName[en_US]=BitTorrent Stream Player | |
| Comment=Run the Popcorn Time application | |
| Comment[en_US]=Run the Popcorn Time application | |
| Type=Application |
| # List unique values in a DataFrame column | |
| # h/t @makmanalp for the updated syntax! | |
| df['Column Name'].unique() | |
| # Convert Series datatype to numeric (will error if column has non-numeric values) | |
| # h/t @makmanalp | |
| pd.to_numeric(df['Column Name']) | |
| # Convert Series datatype to numeric, changing non-numeric values to NaN | |
| # h/t @makmanalp for the updated syntax! |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| # Open CV 3.3.1 with python ${VERSION} | |
| PYTHON_EXECUTABLE_PATH=$1 | |
| if [-z "$PYTHON_EXECUTABLE"] then; | |
| echo "Using PATH default python $(command -v python)" | |
| PYTHON_EXECUTABLE=$(command -v python) | |
| fi | |
| set -ex |
| #!/usr/bin/env bash | |
| echo "Backing up the jenkins.war" | |
| sudo cp /usr/share/jenkins/jenkins.war /usr/share/jenkins/jenkins.war.backup_$(date +'%m_%dT%H_%M_%S') | |
| echo !! | |
| echo "Downloading the new version" | |
| sudo wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war -O /usr/share/jenkins/jenkins.war | |
| sudo systemctl stop jenkins |