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
C:\dev\cmake_test\build>cmake --build . | |
Microsoft (R) Build Engine version 14.0.24730.2 | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
Build started 5/6/2016 12:46:14 PM. | |
The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Mic | |
rosoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored. | |
The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Mic | |
rosoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored. | |
Project "C:\dev\cmake_test\build\ALL_BUILD.vcxproj" on node 1 (default targets). |
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
cmake_minimum_required(VERSION 3.4) | |
project(foo) | |
add_custom_target( | |
gen | |
SOURCES "${CMAKE_CURRENT_BINARY_DIR}/lib.cpp" | |
COMMENT "Custom target" | |
) |
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> | |
#include <QtCore/qobject.h> | |
#include <QtWidgets/qaction.h> | |
#include <QtWidgets/qapplication.h> | |
#include <QtWidgets/qmainwindow.h> | |
#include <QtWidgets/qmenubar.h> | |
QMenu * more_menu = 0; |
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 os | |
import re | |
for name in os.listdir('.'): | |
if not os.path.exists(name + '/revisions/00000002'): | |
continue | |
with open(name + '/revisions/00000001', 'r') as h: | |
content = h.read() | |
if re.search('quickbook', content, re.IGNORECASE): | |
continue |
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 os | |
import re | |
for name in os.listdir('.'): | |
if not re.search('quickbook', name, re.IGNORECASE): | |
continue | |
print(name) | |
os.rename(name, '../pages_deleted/' + name) |
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
#!/usr/bin/env python | |
from distutils.version import LooseVersion | |
import os | |
import subprocess | |
import yaml | |
rosdistro_path = '../../release_trunk/distros' | |
distros = ['cturtle', 'diamondback','electric', 'fuerte', 'groovy', 'hydro'] |
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
#!/usr/bin/env bash | |
mkdir "/tmp/test_bash" | |
mkdir "/tmp/test_bash/foo bar" | |
mkdir "/tmp/test_bash/bar baz" | |
mkdir "/tmp/test_bash/foo" | |
mkdir "/tmp/test_bash/bar" | |
touch "/tmp/test_bash/foo bar/file" |
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
ctest-repeat-until-fail() { | |
count=0 | |
ret=0 | |
until [ ${ret} -ne 0 ]; do | |
count=$((count+1)) | |
echo "Run #$count" | |
ctest $@ | |
ret=$? | |
done | |
} |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Example slides</title> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> |
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
job_prefix = 'jenkins21605_caseB_' | |
println 'Deleting jobs from previous tests...' | |
for (p in Jenkins.instance.allItems) { | |
if (!p.name.startsWith(job_prefix)) continue | |
println '- ' + p.name | |
p.delete() | |
} | |
println '' |