Skip to content

Instantly share code, notes, and snippets.

View DaikiMaekawa's full-sized avatar

Daiki Maekawa DaikiMaekawa

View GitHub Profile
@ricardocabral
ricardocabral / trigger-travis.sh
Last active August 17, 2020 08:24
trigger a downstream travis build
#!/bin/bash
## brief: trigger a downstream travis build
## see: travis API documentation
## forked from https://raw.githubusercontent.com/stephanmg/travis-dependent-builds/master/trigger-travis.sh
# variables
USER=$1
REPO=$2
TRAVIS_ACCESS_TOKEN=$3
BRANCH=$4
@matt3o
matt3o / rqt_smach_kinetic.md
Last active February 13, 2020 02:14
Running rqt_smach (smach_viewer) with ROS Kinetic

Running rqt_smach (smach_viewer) with ROS Kinetic

Hello everyone!

As we needed Smach for an university project I decided to take a look in porting rqt_smach / smach_viewer to ROS Kinetic. Some things may still be broken but at least it is working at all!

NOTE: This is kind of work in progress - I'd love to get any feedback and will merge updates if you want to contribute any fixes! I will try to get into contact with jbohren but for the most recent issues and pull requests he was not willing to cooperate - that's surely one of the reasons why there is no kinetic support so far

This file is based on the instructions made by @jbohren in this file: rqt_smach.md - which is hard to find on the internet.

@galou
galou / .ycm_extra_conf.py
Last active April 4, 2022 10:18
YouCompleteMe configuration file for ROS, copy to $ROS_WORKSPACE
# -*- coding: utf-8 -*-
##########################################################################
# YouCompleteMe configuration for ROS #
# Author: Gaël Ecorchard (2015) #
# #
# The file requires the definition of the $ROS_WORKSPACE variable in #
# your shell. #
# Name this file .ycm_extra_conf.py and place it in $ROS_WORKSPACE to #
# use it. #
#!/usr/bin/env python
import time
import rospy
from hrpsys_ros_bridge.srv import *
import math
from uarm.msg import Joints
from std_msgs.msg import Bool
@kazuhirosaji
kazuhirosaji / coderwall_badge_markup.html
Last active November 23, 2019 14:50 — forked from bguthrie/coderwall_badge_markup.html
Display badge's description when you hover badge image.
<html>
<!-- Add these tags to the HEAD section of your page. -->
<head>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'> </script>
<link href="http://coderwall.com/stylesheets/jquery.coderwall.css" media="all" rel="stylesheet" type="text/css">
<script src="http://coderwall.com/javascripts/jquery.coderwall.js"></script>
<style type="text/css">
/* Add style about badge's badge_description */
#badge_description {
display:none;
@Integralist
Integralist / GitHub curl.sh
Last active September 7, 2023 03:53 — forked from madrobby/gist:9476733
Download a single file from a private GitHub repo. You'll need an access token as described in this GitHub Help article: https://help.github.com/articles/creating-an-access-token-for-command-line-use
curl --header 'Authorization: token INSERTACCESSTOKENHERE' \
--header 'Accept: application/vnd.github.v3.raw' \
--remote-name \
--location https://api.github.com/repos/owner/repo/contents/path
# Example...
TOKEN="INSERTACCESSTOKENHERE"
OWNER="BBC-News"
REPO="responsive-news"
@juderosen
juderosen / git-wars.md
Last active April 25, 2024 15:16
Git Wars: GitHub vs Bitbucket

Git Wars: GitHub vs Bitbucket

Introduction

Now, you might think the answer I'm going to give you is already obvious because I'm using GiHub right now, but it's not. Both GitHub and Bitbucket offer great Git services, but each has its own features and pricing plans. In the following... thing, I'm going to compare the two and then offer a final solution that should work for most people.

TL;DR: Both. Use GitHub for open source and public repos (you'll spend most of your time here) and Bitbucket for private repos. But, sign up for GitHub first, then import account into Bitbucket. Also, check comments for updates. P.S. I personally prefer GitHub.

Interface and Functionality

import sip
sip.setapi('QString', 2)
sip.setapi('QVariant', 2)
from PyQt4 import QtCore, QtGui
class TableModel(QtCore.QAbstractTableModel):
"""
A simple 5x4 table model to demonstrate the delegates
@osyo-manga
osyo-manga / quickrun.vim
Created March 11, 2013 13:36
quickrun.vim の設定
function! s:quickrun_config()
return unite#sources#quickrun_config#quickrun_config_all()
endfunction
" quickrun-runner {{{
" vimscript_all {{{
let s:runner = {}
anonymous
anonymous / color
Created November 1, 2012 15:17
mlterm Solarized color setting
black = #073642
red = #dc322f
green = #859900
yellow = #b58900
blue = #268bd2
magenta = #d33682
cyan = #2aa198
white = #eee8d5
hl_black = #002b36
hl_red = #cb4b16