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 |