Skip to content

Instantly share code, notes, and snippets.

View ompugao's full-sized avatar

ompugao

View GitHub Profile
@ompugao
ompugao / Xwrapper.config.patch
Created August 10, 2021 07:07
patchs for dlbox to activate monitor connection
15c15,18
< allowed_users=console
---
>
> # allowed_users=console
> allowed_users=anybody
> needs_root_rights=yes# from
@ompugao
ompugao / openrave_ubuntu20.04_diff_2.patch
Created February 17, 2021 03:25
openrave_ubuntu20.04_diff_2.patch
diff --git a/.gitignore b/.gitignore
index d6136dbab..956bb7caf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@ msvc_soqt/
src/models/
myrelpath.pyc
+build
diff --git a/CMakeLists.txt b/CMakeLists.txt
@ompugao
ompugao / openrave_installation.patch
Created December 22, 2020 09:21
openrave installation patch
diff --git a/install-dependencies.sh b/install-dependencies.sh
index 01a43fe..db378e6 100755
--- a/install-dependencies.sh
+++ b/install-dependencies.sh
@@ -6,6 +6,7 @@
# Description:
# OpenRAVE Installation Script: Dependencies
+set -e
# Check ubuntu version
# -*- coding: utf-8 -*-
import networkx as nx
import numpy as np
import matplotlib.pyplot as plt
import cv2
from shapely.geometry import Point, LineString
import weakref
import time
np.set_printoptions(edgeitems=30, linewidth=100000, formatter=dict(float=lambda x: "%.3g" % x))
@ompugao
ompugao / md_nav.vim
Last active June 24, 2020 00:43
markdown navigation in vim
function! s:jump() abort
let [l_from, c_from] = searchpairpos('\[\[', '', '\]\]', 'nbW')
if l_from == 0 || c_from == 0
return
endif
let [l_to, c_to] = searchpairpos('\[\[', '', '\]\]', 'nW')
if l_to == 0 || c_to == 0
return
endif
"echomsg l_to . " " . c_from . " " . c_to
@ompugao
ompugao / quickdict_local.vim
Last active March 18, 2020 15:14
quickdict local
let s:bufname = 'quickdict'
let s:quickdict_local_word = ''
let s:quickdict_lines = []
let g:quickdict_path = '/Users/sifi/.vim/bundle/quickdict.vim/dict/EIJIRO-1446_nkf_utf8.txt'
function! s:openwindow()
if bufwinnr(s:bufname) == -1
execute ':split ' . s:bufname
setlocal nobuflisted
setlocal buftype=nofile noswapfile
@ompugao
ompugao / REAMD.md
Last active February 20, 2020 10:56
LLN user dictionary to save words you look into

run $ pip install flask requests beautifulsoup4

and then set http://localhost:5000/WORD to user dictionary url

@ompugao
ompugao / Dockerfile
Last active December 23, 2019 05:11
Dockerfile for openrave
FROM nvidia/opengl:1.1-glvnd-devel
MAINTAINER Shohei Fujii <fujii.shohei@gmail.com>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update && apt-get -y upgrade && apt-get install -y debhelper cmake python-dev libxml2-dev libboost-dev ffmpeg zlib1g-dev python-numpy python-sympy desktop-file-utils libboost-filesystem-dev libboost-system-dev libboost-python-dev libboost-thread-dev libboost-date-time-dev pkg-config libhdf5-serial-dev liblapack-dev libboost-iostreams-dev libboost-regex-dev libqt4-dev qt4-dev-tools libqhull-dev libavcodec-dev libavformat-dev libswscale-dev libsimage-dev libode-dev libsoqt4-dev libassimp-dev libbullet-dev python-nose libpcre3-dev git && apt -y clean && rm -rf /var/lib/apt/lists/*
RUN mkdir -p ws
WORKDIR ws
@ompugao
ompugao / LICENSE
Created December 10, 2019 13:02 — forked from IshitaTakeshi/LICENSE
Huber weighted IRLS
Copyright (C) 2006, Jonathan E. Taylor
All rights reserved.
Copyright (c) 2006-2008 Scipy Developers.
All rights reserved.
Copyright (c) 2009-2018 statsmodels Developers.
All rights reserved.
@ompugao
ompugao / stylus-2019-09-14.json
Last active September 19, 2019 02:54
my stylish json
[
{
"enabled": true,
"updateUrl": null,
"md5Url": null,
"url": null,
"originalMd5": null,
"installDate": 1562593655994,
"name": "eow.alc.co.jp",
"sections": [