CLICK ME
yes, even hidden code blocks!
print("hello world!")| import pandas as pd | |
| data = [ | |
| {"LAB_No": 1, "AH": "Y"}, | |
| {"LAB_No": 1, "AH": "Y"}, | |
| {"LAB_No": 1, "AH": "Y"}, | |
| {"LAB_No": 2, "AH": "Y"}, | |
| {"LAB_No": 1, "AH": "Y"}, | |
| {"LAB_No": 2, "AH": "Y"}, | |
| {"LAB_No": 2, "AH": "D"}, |
| """ | |
| MLX90614 driver. | |
| You might need to enter this command on your Raspberry Pi: | |
| echo "Y" > /sys/module/i2c_bcm2708/parameters/combined | |
| (I've put it in my rc.local so it's executed each bootup) | |
| """ | |
| import smbus | |
| from time import sleep |
| set encoding=utf-8 fileencodings=ucs-bom,utf-8,cp936 | |
| """"""""""""""""""""" VUNDLE PLUGIN START """""""""""""""""""""""""" | |
| " Brief help | |
| " " :PluginList - lists configured plugins | |
| " " :PluginInstall - installs plugins; append `!` to update or just | |
| " " :PluginUpdate | |
| " " :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
| " " :PluginClean - confirms removal of unused plugins; append `!` to |
| # Set the prefix key and some key bindings to match GNU Screen | |
| set -g prefix C-a | |
| # bind-key C-a last-window | |
| bind-key , previous-window | |
| bind-key . next-window | |
| bind-key n command-prompt 'rename-window %%' | |
| bind-key N command-prompt 'rename-session %%' | |
| bind-key r source-file ~/configuration/solidpple/tmux.conf \; display "Reloaded!" |
| from dateutil.relativedelta import relativedelta | |
| import datetime as dt | |
| dt = dt.datetime.now() | |
| end_ym = '201905' | |
| while True: | |
| ym = dt.strftime("%Y%m") | |
| print(ym) | |
| if ym == end_ym: |
| from dateutil.relativedelta import relativedelta | |
| import datetime as dt | |
| dt = dt.datetime.now() | |
| delta = relativedelta(months=3) | |
| cur_dt = dt - delta | |
| cur_dt.strftime("%Y%m") |
| from dateutil.parser import parse | |
| end_dt = datetime.datetime.now() # - datetime.timedelta(days=1) | |
| # start_dt = end_dt - delta | |
| end_dt_str = end_dt.strftime("%Y-%m-%d") | |
| delta = datetime.timedelta(days=d) # days=91 | |
| start_dt = end_dt - delta | |
| start_dt_str = start_dt.strftime("%Y-%m-%d") |
| hive -e "set hive.cli.print.header=false;show partitions ${1};" | tail -3 | cut -d'=' -f2 | |
| # hive -e "show partitions ${1};" 2>&1 | grep "partitionColumnName" | head -1 |
| hive -e "set hive.cli.print.header=false;show partitions ${1};" | tail -3 | cut -d'=' -f2 | |
| # hive -e "show partitions ${1};" 2>&1 | grep "partitionColumnName" | head -1 |