This file contains 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 <cmath> | |
#include <cstdio> | |
#include <tf2/LinearMath/Matrix3x3.h> | |
#include <tf2/LinearMath/Quaternion.h> | |
void print_quat(double x, double y, double z, double w) | |
{ | |
tf2::Quaternion quat(x, y, z, w); | |
fprintf(stderr, "Quaternion:\n"); |
This file contains 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
repositories: | |
ament/ament_cmake: | |
type: git | |
url: https://github.com/ament/ament_cmake.git | |
version: master | |
ament/ament_index: | |
type: git | |
url: https://github.com/ament/ament_index.git | |
version: master | |
ament/ament_lint: |
This file contains 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 bisect | |
import copy | |
import statistics | |
import sys | |
if len(sys.argv) != 2: | |
print("Usage: %s <file>" % (sys.argv[0])) | |
sys.exit(1) | |
total_time_ms_list = [] |
This file contains 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 argparse | |
import git | |
import github | |
import keyring | |
import os | |
import sys | |
import tempfile | |
import urllib.request | |
import yaml |
This file contains 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 <cstdio> | |
class Base | |
{ | |
public: | |
virtual void foo() | |
{ | |
fprintf(stderr, "Foo no argument\n"); | |
} | |
}; |
This file contains 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 <iostream> | |
#include <string> | |
typedef struct rcutils_log_location_t | |
{ | |
/// The name of the function containing the log call. | |
const char * function_name; | |
/// The name of the source file containing the log call. | |
const char * file_name; | |
/// The line number containing the log call. |
This file contains 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
count = 0 | |
for (p in Jenkins.instance.allItems) { | |
if ( | |
( | |
p.name.startsWith("Msrc_dS") || | |
p.name.startsWith("Mbin_ds") || | |
p.name.startsWith("Mpr_ds") || | |
p.name.startsWith("Mrel_ds") || | |
p.name.startsWith("Mdev_ds") || |
This file contains 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 win32com.client | |
def get_raw_windows_device_size(): | |
obj = win32com.client.GetObject("winmgmts:") | |
typecomp = obj._oleobj_.GetTypeInfo().GetContainingTypeLib()[0].GetTypeComp() | |
result = typecomp.Bind('wbemFlagReturnImmediately') | |
if not result[0]: | |
raise AttributeError(name) | |
wbemFlagReturnImmediately = result[1].value |
This file contains 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
repositories: | |
ament/ament_cmake: | |
type: git | |
url: https://github.com/ament/ament_cmake.git | |
version: master | |
ament/ament_index: | |
type: git | |
url: https://github.com/ament/ament_index.git | |
version: master | |
ament/ament_lint: |
This file contains 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
repositories: | |
ament/ament_cmake: | |
type: git | |
url: https://github.com/ament/ament_cmake.git | |
version: master | |
ament/ament_index: | |
type: git | |
url: https://github.com/ament/ament_index.git | |
version: master | |
ament/ament_lint: |