public class EnvEcho {
public static void main(String[] args) {
System.out.println("EnvEcho http_proxy: " + System.getenv("http_proxy"));
}
This file contains hidden or 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" /> | |
<meta name="viewport" content="width=device-width initial-scale=1" /> | |
<title>标题自动编号</title> | |
<style type="text/css"> | |
h1 { | |
counter-increment: countH1; |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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> | |
<head> | |
<title>WebSocketd交互界面</title> | |
</head> | |
<body> | |
<pre id="vstdout"></pre> | |
<input type="text" name="cmd" id="vstdin" onkeydown = "if (event.keyCode == 13) |
This file contains hidden or 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> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<script> | |
$(document).ready(function(){ | |
$("button").click(function(){ |
This file contains hidden or 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
import io.vertx.config.ConfigRetriever; | |
import io.vertx.core.AbstractVerticle; | |
import io.vertx.core.DeploymentOptions; | |
import io.vertx.core.Future; | |
import io.vertx.core.Verticle; | |
import io.vertx.core.Vertx; | |
public class HelloVerticle extends AbstractVerticle { | |
/* `http.port` can not be allowed in ` ~/.bash_profile` on Mac */ |
#!/bin/bash
is_alive_ping()
{
ping -c 1 -w 1 $1 > /dev/null
[ $? -eq 0 ] && echo $i ,Alive
curl -x 10.213.41.26:80 -X GET -H 'Origin:http://test.example.net:10080' -i http://boxcloud.example.net/dbapi/device/
NewerOlder