Thanks to the work from HOW-TO enable MarkDown support in RobotFramework
I went a bit further by enabling markdown support with test cases written in the tables.
import os | |
import sys | |
import argparse | |
import requests | |
import shutil | |
from bs4 import BeautifulSoup | |
from urllib.parse import urlparse | |
from vtt_to_srt import vtt_to_srt | |
OUTPUT_DIR = 'output' |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import argparse | |
OUT_FILE = 'output.srt' | |
def run(srt_file): | |
LineList = [] | |
timestamp_line = False | |
with open(srt_file, 'r',encoding="utf-8") as srtfile: |
#!/usr/bin/python | |
import sys, os | |
from sys import argv | |
from unidiff import PatchSet | |
import subprocess | |
def parse_log_line(line): | |
""" | |
parse a line from the cpplint results with --output=vs7 |
import requests | |
import time | |
import math | |
def query_traffic(line): | |
payload = {'Guid': '24fce9ce-f441-45c5-99e1-bc6b40661f1e', | |
'city_id': '320500', | |
'deviceId': 'd049666ff7e010318f0cdc2c75d95ff0', | |
'sign': '539f272911d2bb23117ea6211cce1bb5', | |
'client_id': '320500', |
#-*- coding: UTF-8 -*- | |
import sys | |
import time | |
import urllib.request | |
import urllib.error | |
import ctypes | |
import logging | |
import argparse | |
import datetime |
scriptencoding utf-8 | |
set tabstop=4 " 设置制表符(tab键)的宽度 | |
set softtabstop=4 " 设置软制表符的宽度 | |
set shiftwidth=4 " (自动) 缩进使用的8个空格 | |
set cindent " 使用 C/C++ 语言的自动缩进方式 | |
set cinoptions={0,1s,t0,p2s,(03s,=.5s,>1s,=1s,:1s "设置C/C++语言的具体缩进方式 | |
" set backspace=2 " 设置退格键可用 | |
set undofile " Persistent undo even through restart | |
set undodir=$HOME/.vim/undo |
#!/bin/sh | |
# @Author: xzhih | |
# @Date: 2017-07-29 06:10:54 | |
# @Last Modified by: xzhih | |
# @Last Modified time: 2018-10-08 13:49:26 | |
# 软件包列表 | |
# remove sed as it's already part of busybox | |
# replace nginx-extras with nginx as nginx-extras can't be found as of openwrt 18.06.02 | |
pkglist="wget unzip grep tar ca-certificates coreutils-whoami php7 php7-cgi php7-cli php7-fastcgi php7-fpm php7-mod-mysqli php7-mod-pdo php7-mod-pdo-mysql nginx mariadb-server mariadb-server-extra mariadb-client mariadb-client-extra" |
if { [info exists CHIPNAME] } { | |
set _CHIPNAME $CHIPNAME | |
} else { | |
set _CHIPNAME xc6v | |
} | |
set XC6_CFG_IN 0x05 | |
set XC6_JSHUTDOWN 0x0d | |
set XC6_JPROGRAM 0x0b | |
set XC6_JSTART 0x0c |
Thanks to the work from HOW-TO enable MarkDown support in RobotFramework
I went a bit further by enabling markdown support with test cases written in the tables.
#!/bin/python | |
import sys, os | |
import argparse | |
class macro_directive(object): | |
def __init__(self, name, comment): | |
self.name = name[1:] if name[0] == "#" else name | |
self.comment = comment | |
self.path = True |