This script generates a skeleton CMakeLists.txt from a Bazel project. The resulting file can be loaded as a project in CLion (build/test features won't work).
Use like:
./bazel_to_cmake.py //tensorflow:libtensorflow_cc.so
| [package] | |
| name = "prec-climbing" | |
| version = "0.1.0" | |
| edition = "2024" | |
| [dependencies] |
| /vendor | |
| /github-scraper | |
| /.idea |
| *.pyc | |
| *.tar.gz | |
| *.mp4 |
| import numpy as np | |
| from tf.transformations import * | |
| def tilt_torsion_decomposition(R): | |
| z_axis = [0, 0, 1] | |
| target_z = np.dot(R.T, z_axis) | |
| axis = np.cross(z_axis, target_z) | |
| angle = np.arctan2(np.linalg.norm(axis), np.dot(z_axis, target_z)) | |
| R_tilt = quaternion_matrix(quaternion_about_axis(angle, axis))[:3, :3] | |
| R_torsion = np.dot(R, R_tilt.T) |
| #!/usr/bin/env bash | |
| # Thanks http://superuser.com/questions/218340/ | |
| MAC_ADDR=00-60-2F`dd bs=1 count=3 if=/dev/random 2>/dev/null |hexdump -v -e '/1 "-%02X"'` | |
| PHONE_NUMBER="12345678" | |
| # Thanks http://www.giorgioravera.it/?p=169 | |
| curl -k \ | |
| -u 8Z6PlbuD6VFR8KLr:admin \ | |
| --data "Action=GetConfig&ClientID=$MAC_ADDR&Cli=$PHONE_NUMBER" \ |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure(2) do |config| | |
| config.vm.box = "nicolov/xenial-ros" | |
| # Create a forwarded port mapping which allows access to a specific port | |
| # within the machine from a port on the host machine. In the example below, | |
| # accessing "localhost:8080" will access port 80 on the guest machine. | |
| # config.vm.network "forwarded_port", guest: 80, host: 8080 |
| [package] | |
| name = "api_example" | |
| version = "0.1.0" | |
| authors = ["nicolov"] | |
| [dependencies] | |
| iron = "*" | |
| router = "*" | |
| mysql = "*" | |
| r2d2 = "*" |
| <!-- | |
| Some packages do not handle compressed images correctly. We use the image_transport | |
| package to republished the JPEGs stored in the bags as Image messages. This is an | |
| example launch file that does just that. | |
| --> | |
| <launch> | |
| <node name="bag_play" pkg="rosbag" type="play" | |
| args="--clock /home/ubuntu/hoveringDown.bag"> | |
| </node> |
| # put storage.py in one off your apps or create a new one | |
| DEFAULT_FILE_STORAGE = 'yourapp.storage.DomainShardingStorage' | |
| # for easy_thumbnails | |
| THUMBNAIL_DEFAULT_STORAGE = DEFAULT_FILE_STORAGE | |
| SHARDED_MEDIA_DOMAINS_NUMBER = 2 | |
| SHARDED_MEDIA_URL_TEMPLATE = '/media/' if DEBUG else 'http://s{0}.afancycdn.com/media/' |