本歌单由Listen1创建, 歌曲数:423,歌单数:2,点击查看更多
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# /etc/init.d/coredns: start the coredns daemon. | |
# description: coredns | |
CORE_DNS_HOME=/usr/local/bin | |
CORE_DNS_BIN=$CORE_DNS_HOME/coredns | |
CORE_DNS_PIDFILE=/var/run/coredns.pid | |
CORE_DNS_CONSOLE_DIR=/tmp | |
CORE_DNS_CONSOLE_LOG=${CORE_DNS_CONSOLE_DIR}/coredns.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $originalList = 'tt.log'; | |
open LIST_SRC,"$originalList"; | |
while (<LIST_SRC>) { | |
chomp; | |
my $line = $_; | |
# print $line."\n"; | |
if ($line =~ /timestamp=(\d+)/) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* 随机头像生成 | |
* 生成算法来自Github,具体出处找不到了,做了少量修改 | |
* @author loveyu | |
*/ | |
/** | |
* 头像HASH值 | |
*/ |
This document is research for the selection of a communication platform for robot-net.
The purpose of this component is to enable rapid, reliable, and elegant communication between the various nodes of the network, including controllers, sensors, and actuators (robot drivers). It will act as the core of robot-net to create a standardized infrastructure for robot control.
Requirements:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var amqp = require('amqplib/callback_api'); | |
// if the connection is closed or fails to be established at all, we will reconnect | |
var amqpConn = null; | |
function start() { | |
amqp.connect(process.env.CLOUDAMQP_URL + "?heartbeat=60", function(err, conn) { | |
if (err) { | |
console.error("[AMQP]", err.message); | |
return setTimeout(start, 1000); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
var xml2js = require('xml2js'); | |
var url = 'http://blog.whyun.com/feed.xml'; | |
var keyword = '异步'; | |
function parseResponse(url,description, error,response,body,callback) { | |
if (error) { | |
console.error('请求'+url+'失败',error); | |
callback('请求'+description+'网络错误'); | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LRUCache { | |
/** | |
* 链表节点 | |
* @author Administrator | |
* | |
*/ | |
class CacheNode { | |
CacheNode prev;//前一节点 | |
CacheNode next;//后一节点 | |
Object value;//值 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
</head> | |
<body> | |
<video controls></video> | |
<script> | |
var video = document.querySelector('video'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(xxx); |
NewerOlder