Table of contents
Today's date is .
This document was generated on at .
Table of contents
Today's date is .
This document was generated on at .
#!/usr/bin/env python3 | |
#coding: utf8 | |
import math | |
import random | |
def isPrime(n): | |
for i in range(2, int( n**0.5) + 1): | |
if n % i == 0: |
#![cfg(any(target_os = "macos", target_os = "linux", target_os = "windows"))] | |
use std::fs::File; | |
use std::io::Read; | |
#[derive(Debug)] | |
pub struct DhcpLeases { | |
pub ip_addr: Option<::std::net::IpAddr>, | |
pub router_ip_addr: Option<::std::net::IpAddr>, |
#!/usr/bin/env python3 | |
#coding: utf8 | |
import re | |
import time | |
# Javascript Re | |
# [\\.\u3002\uFF0E\uFF61]|%2e|%2E |
/* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
*/ | |
#include <arpa/inet.h> | |
#include <linux/if_packet.h> | |
#include <stdio.h> |
package main | |
import "os"; | |
import "syscall"; | |
import "fmt"; | |
import "os/signal"; | |
var GLOBAL_SIGNAL := make(chan bool, 1); | |
func is_alive () bool { |
08/28 2017
手动访问 https://www.interactivebrokers.com.hk/cn/software/glossary/glossary_Left.htm , 复制出 内嵌网页的目录 HTML 标记代码,并保存为 raw.html 即可.
// 模拟微信发送消息后判断当前网络速率,并根据网络速率做相应的交互。 | |
function Duration (){ | |
this.btime = new Date(); | |
} | |
Duration.prototype.elapsed = function (){ | |
let now = new Date(); | |
return now.getTime() - this.btime.getTime(); | |
} |