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
| BasedOnStyle: LLVM | |
| IndentWidth: 4 | |
| BreakBeforeBraces: Custom | |
| ColumnLimit: 80 | |
| BraceWrapping: | |
| AfterClass: true | |
| AfterControlStatement: true | |
| AfterEnum: true | |
| AfterFunction: true | |
| AfterNamespace: true |
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
| !/usr/bin/bash | |
| DROPBOX_KEY='XXXXXX' | |
| FILENAME=XXXXXX | |
| cd XXXXXX | |
| tar czf $FILENAME XXXXXX > /dev/null | |
| /usr/bin/python - <<END | |
| import dropbox | |
| from dropbox.files import WriteMode | |
| from os.path import getsize, basename | |
| dbx = dropbox.Dropbox('$DROPBOX_KEY') |
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
| #!/bin/bash -x | |
| VENDOR="05ac:12a8" | |
| SERIAL="XXXXXXXXXXXXXXXXX" | |
| #LOCK="gnome-screensaver-command -l" | |
| #UNLOCK="gnome-screensaver-command -d" | |
| LOCK="slock" | |
| UNLOCK="killall slock" | |
| while true; do | |
| # wait new device status | |
| stdbuf -o0 udevadm monitor --udev | stdbuf -o0 grep usb | head -n1 > /dev/null |
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
| #!/usr/bin/env python | |
| import sys | |
| cmd = "aria2c --no-conf '{}'".format(sys.argv[2]) | |
| i = 3 | |
| while i < len(sys.argv): | |
| arg = sys.argv[i] | |
| i += 1 | |
| if arg == '-H': | |
| arg = sys.argv[i] |
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 logging | |
| class ColoredFormatter(logging.Formatter): | |
| def __init__(self, fmt, datefmt=None): | |
| logging.Formatter.__init__(self, fmt, datefmt) | |
| BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = range(30, 38) | |
| self.COLORS = dict( | |
| DEBUG=GREEN, INFO=WHITE, WARNING=YELLOW, ERROR=RED, CRITICAL=MAGENTA | |
| ) |
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"> | |
| <title>Welcome to Vue</title> | |
| <script src="https://cdn.bootcss.com/vue/2.6.10/vue.min.js"></script> | |
| <script src="https://cdn.bootcss.com/element-ui/2.7.2/index.js"></script> | |
| <script src="https://cdn.bootcss.com/element-ui/2.7.2/locale/zh-CN.min.js"></script> | |
| <link href="https://cdn.bootcss.com/element-ui/2.7.2/theme-chalk/index.css" rel=stylesheet> | |
| </head> |
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
| #pragma once | |
| #include <sophus/se3.hpp> | |
| // follows spline fusion paper | |
| // modified from minimal_ceres_sophus and kontiki | |
| // forward declaration | |
| namespace ceres | |
| { |
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
| #include <glog/logging.h> | |
| #include <unsupported/Eigen/AutoDiff> | |
| #include <unsupported/Eigen/LevenbergMarquardt> | |
| template <typename T> | |
| Eigen::Matrix<T, Eigen::Dynamic, 1> | |
| func(const Eigen::Matrix<T, Eigen::Dynamic, 1> &xs, | |
| const Eigen::Matrix<T, 3, 1> &x) | |
| { | |
| auto xsa = xs.array(); |
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
| #include <fstream> | |
| #include <iostream> | |
| #include <sstream> | |
| #include <string> | |
| #include <vector> | |
| namespace SATurtle { | |
| struct CNF { | |
| CNF(const std::string &fn); | |
| int vc = 0; // #var |
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
| #include <Eigen/Core> | |
| #include <ceres/ceres.h> | |
| #include <ceres/rotation.h> | |
| #include <fstream> | |
| #include <gflags/gflags.h> | |
| #include <glog/logging.h> | |
| #include <vector> | |
| DEFINE_string(problem, "problem-49-7776-pre.txt", "dataset file name"); |