Skip to content

Instantly share code, notes, and snippets.

View HybridRbt's full-sized avatar

Jianfeng Yang HybridRbt

View GitHub Profile
@HybridRbt
HybridRbt / uncrustify_google_cpp_allman.cfg
Created June 21, 2018 23:14
uncrustify config file for c++. based on google c++ style with Allman brace style.
indent_align_string=true
indent_braces=false
indent_braces_no_func=false
indent_brace_parent=false
indent_namespace=true
indent_extern=false
indent_class=true
indent_class_colon=true
indent_else_if=false
indent_func_call_param=false
@HybridRbt
HybridRbt / parameters.txt
Last active April 18, 2018 01:27
parameters for udacity bot
/*===============================
costmap_common_params:
=============================*/
map_type: costmap
obstacle_range: 2.5
raytrace_range: 3.0
transform_tolerance: 0.1
@HybridRbt
HybridRbt / udacity_bot.xacro
Created April 5, 2018 01:38
urdf file for udacity robot
<?xml version="1.0"?>
<robot name="udacity_bot" xmlns:xacro="http://www.ros.org/wiki/xacro">
<link name="robot_footprint"></link>
<joint name="robot_footprint_joint" type="fixed">
<origin xyz="0 0 0" rpy="0 0 0" />
<parent link="robot_footprint" />
<child link="chassis" />
</joint>
@HybridRbt
HybridRbt / SerialPortExtensions.cs
Created March 14, 2017 21:20 — forked from adamkewley/SerialPortExtensions.cs
Extension methods to make System.IO.Ports.SerialPort easier to use with .NET 4.5 async workflows (Does not support timeouts)
using System.IO.Ports;
namespace AsyncExtensions {
public static class SerialPortExtensions
{
/// <summary>
/// Read a line from the SerialPort asynchronously
/// </summary>
/// <param name="serialPort">The port to read data from</param>
/// <returns>A line read from the input</returns>
@HybridRbt
HybridRbt / 0_reuse_code.js
Created June 15, 2014 06:07
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