Skip to content

Instantly share code, notes, and snippets.

View yunyu's full-sized avatar
😎

Yunyu Lin yunyu

😎
View GitHub Profile

Compiling Octovis in VS2010

Octovis is a graphical viewer for Octomaps. As such, it is extremely useful in being able to know what you're doing.

Note: I'm using a MinGW shell for file operations, but you can do these completely in a graphical environment. I just prefer automation.

Getting a copy

git clone https://github.com/OctoMap/octomap.git

#!/bin/bash
for dir in */; do
git -C $dir pull >/dev/null
git -C $dir log -1 --date=short --pretty=format:${dir::-1}\:\ %cd
done
# HELP http_requests_total The total number of HTTP requests.
# TYPE http_requests_total counter
http_requests_total{method="post",code="200"} 1027 1395066363000
http_requests_total{method="post",code="400"} 3 1395066363000
# Escaping in label values:
msdos_file_access_time_seconds{path="C:\\DIR\\FILE.TXT",error="Cannot find file:\n\"FILE.TXT\""} 1.458255915e9
# Minimalistic line:
metric_without_timestamp_and_labels 12.47
import io.vertx.core.Handler;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.web.RoutingContext;
import java.lang.management.ManagementFactory;
import com.sun.management.OperatingSystemMXBean;
import java.lang.management.RuntimeMXBean;
public class SimpleJMXWriter implements Handler<RoutingContext> {
Windows Registry Editor Version 5.00
; Values stored as 00-BB-GG-RR
[HKEY_CURRENT_USER\CONSOLE]
; BLACK DGRAY
"ColorTable00"=dword:00362e27
"ColorTable08"=dword:005e5752
; BLUE LBLUE
"ColorTable01"=dword:00a58f7c
"ColorTable09"=dword:00a58f7c
[
"Accounting",
"Advertising",
"Aeronautics & Aviation Technology",
"Aerospace Engineering",
"Agricultural & Environmental Engineering",
"Agricultural Studies",
"Animal Sciences",
"Anthropology & Archaeology",
"Architectural/Structural Engineering",
dtparam=audio=on,sd_overclock=83
gpu_mem=128
total_mem=1024
arm_freq=1300
gpu_freq=500
core_freq=500
sdram_freq=500
sdram_schmoo=0x02000020
over_voltage=2
@yunyu
yunyu / .travis.yml
Last active November 13, 2017 15:21
language: cpp
sudo: false
matrix:
allow_failures:
# To allow a build matrix entry to fail, add this key to said entry.
- custom_allow_failures: true
include:
- os: linux
FILE(GLOB HIGHLIGHT_FILES src/*.cpp include/*.h)
add_executable(clionhack ${HIGHLIGHT_FILES})
set_target_properties(clionhack PROPERTIES LINKER_LANGUAGE CXX)
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/react/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/babel-standalone"></script>
</head>
<body>