Skip to content

Instantly share code, notes, and snippets.

Gokhan Solak gokhansolak

Block or report user

Report or block gokhansolak

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gokhansolak
gokhansolak / neq_display_error.ipynb
Created Feb 16, 2020
Ipython file demonstrating the \neq latex display problem
View neq_display_error.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gokhansolak
gokhansolak / add_license_notice.py
Created Feb 5, 2020
This program adds the given license notice at the beginning of all c, cpp, h, hpp files in a folder
View add_license_notice.py
#! /usr/bin/env python
# This program adds the given license notice at the
# beginning of all c, cpp, h, hpp files in a folder
#
# usage:
# change to the directory that contains the code files
# python3 add_license_notice.py <license_file> <source_path>
# it will apply the changes too all files in that directory
import glob
@gokhansolak
gokhansolak / dmp_archive_updater.py
Created Nov 21, 2019
This program adds DmpBbo namespace to the class names in a dmp xml archive to solve boost::serialization's unregistered_class error
View dmp_archive_updater.py
#!/usr/bin/env python
# This program adds DmpBbo namespace to the class names
# in a dmp xml archive to solve boost serialization's
# unregistered_class error
# usage:
# change to the directory that contains dmp xml files
# python3 dmp_archive_updater.py
# it will apply the changes too all xml files in that directory
@gokhansolak
gokhansolak / iterate_exp.sh
Created Jun 17, 2019
Repeats ROS experiments, keeps a notes txt
View iterate_exp.sh
#!/usr/bin/env bash
# usage (arguments are optional):
# ./iterate_exp.sh exp_type exp_no
# ros package containing the experiment programs
ros_package="lfd_experiments"
# get user input if arguments are not given
if [ "$#" -lt "1" ]; then
echo "exp type:"
@gokhansolak
gokhansolak / update_repos.sh
Last active Apr 29, 2019
Update all repos in a folder
View update_repos.sh
#!/usr/bin/env bash
# This script updates all git repos in the folder
# it resides. It does fetch, pull and push to the
# current branch of a repo. It shows the diff and
# asks user to commit if there are changes in the
# working copy. Put it in your workspace and run
# it using terminal, from any path. Press 'q' to
# skip long diff.
# It requires an execution permission (chmod +x)
You can’t perform that action at this time.