Skip to content

Instantly share code, notes, and snippets.

View downgoon's full-sized avatar
💭
I may be slow to respond.

downgoon downgoon

💭
I may be slow to respond.
View GitHub Profile
@downgoon
downgoon / header-counter-demo.html
Created December 25, 2018 08:16
HTML标题样式:带编号+带彩带
<!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;
@downgoon
downgoon / 0_reuse_code.js
Created September 26, 2017 07:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@downgoon
downgoon / sub-env.md
Created July 10, 2017 11:09
子进程的环境变量

子进程继承环境变量

读取环境变量

public class EnvEcho {

	public static void main(String[] args) {
		System.out.println("EnvEcho http_proxy: " + System.getenv("http_proxy"));
	}
<!DOCTYPE html>
<head>
<title>WebSocketd交互界面</title>
</head>
<body>
<pre id="vstdout"></pre>
<input type="text" name="cmd" id="vstdin" onkeydown = "if (event.keyCode == 13)
<!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(){
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 ] &amp;&amp; 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/

UploadAction

import java.util.Set;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import io.vertx.core.json.JsonObject;