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 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
cmake_minimum_required(VERSION 2.8.3) | |
project(foo) | |
if(NOT WIN32) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall") | |
endif() | |
# find dependencies |
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 2.8.3) | |
project(foo) | |
if(NOT WIN32) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall") | |
endif() | |
# find dependencies |
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 2.8.3) | |
project(foo) | |
# find dependencies | |
find_package(catkin REQUIRED COMPONENTS message_generation roscpp std_msgs) | |
find_package(Boost REQUIRED) | |
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 '' |
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_caseA_' | |
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 '' |
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_' | |
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 '' |