设置 DNS 的脚本:
#!/bin/bash
# This script sets the Wi-Fi DNS to Aliyun DNS
sudo networksetup -setdnsservers Wi-Fi 223.5.5.5 223.6.6.6
设置为空:
import sys | |
def main(): | |
if len(sys.argv) < 2: | |
print 'please enter file path' | |
file_path = sys.argv[1] | |
with open(file_path, 'r') as f: | |
s = f.read() | |
try: |
设置 DNS 的脚本:
#!/bin/bash
# This script sets the Wi-Fi DNS to Aliyun DNS
sudo networksetup -setdnsservers Wi-Fi 223.5.5.5 223.6.6.6
设置为空:
是有看一本专门介绍蓝牙的书,看过之后对蓝牙基本的东西有了一些了解,就能轻松的知道它能干什么不能干什么,适合干什么,不适合干什么。
initiates a connection
outgoing choose a target device transport protocol
Quiver app 本身的主题是可以更换的,就是这些原生的控件样式。另外编辑器里面的主题有另外的设置。
官方收集的主题有这些:Themes · HappenApps/Quiver Wiki
如果不满足需求或者要自己改请看这里:How to Design a Custom Theme · HappenApps/Quiver Wiki
这里的是内置的编辑器主题:Supported Themes · HappenApps/Quiver Wiki
在 app 主题中可以设置编辑器主题,如下:
# coding: utf-8 | |
from functools import wraps | |
from flask import request, Response, Flask | |
def check_auth(username, password): | |
"""This function is called to check if a username / | |
password combination is valid. | |
""" |
<?xml version="1.0" encoding="ISO-8859-1" ?> | |
<rss version="2.0"> | |
<channel> | |
<title>w3cschool Home Page</title> | |
<link>http://www.w3cschool.cc</link> | |
<description>Free web building tutorials</description> | |
<item> | |
<title>RSS Tutorial</title> | |
<link>http://www.w3cschool.cc/rss</link> |
#!/usr/bin/env python | |
# coding: utf-8 | |
import socket | |
import sys | |
from thread import * | |
try: | |
listening_port = int(raw_input("[*] Enter Listening Port Number: ")) | |
except KeyboardInterrupt: | |
print("\n[*] User Requested An Interrupt") |
int led = 13; | |
int m1a = 5; | |
int m1b = 6; | |
int m2a = 10; | |
int m2b = 11; | |
int s1q = 220; | |
int s1s = 150; | |
int s2q = 220; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>广告统计</title> | |
<script src="jquery.js"></script> | |
</head> | |
<body> | |
<a href="http://localhost:8000/apple" ad-load-url="http://localhost:8000/apple/load" ad-click-url="http://localhost:8000/apple/click">apple</a> | |
<a href="http://localhost:8000/orange" ad-load-url="http://localhost:8000/orange/load" ad-click-url="http://localhost:8000/orange/click">orange</a> |