- PCLをGitからクローンする。(C:\PCL-1.10.0)
https://github.com/PointCloudLibrary/pcl/tree/pcl-1.10.0
3rdParty
#!/usr/bin/env bash | |
# memusg -- Measure memory usage of processes | |
# Usage: memusg COMMAND [ARGS]... | |
# | |
# Author: Jaeho Shin <netj@sparcs.org> | |
# Created: 2010-08-16 | |
############################################################################ | |
# Copyright 2010 Jaeho Shin. # | |
# # | |
# Licensed under the Apache License, Version 2.0 (the "License"); # |
1. Open Bundle editor | |
2. Select Themes -> Themes -> your theme | |
3. add to settings | |
fontName = 'Monaco'; | |
fontSize = '12px'; | |
or what you want, enjoy :) |
#!/bin/bash | |
TPY=${TM_PYTHON:-python} | |
esc () { | |
STR="$1" ruby <<"RUBY" | |
str = ENV['STR'] | |
str = str.gsub(/'/, "'\\\\''") | |
str = str.gsub(/[\\"]/, '\\\\\\0') | |
print "'#{str}'" | |
RUBY |
@echo off | |
REM batch script for loading git-bash and the vs tools in the same window | |
REM inspiration: http://www.drrandom.org/post/2011/11/16/Grappling-with-multiple-remotes-in-git-tfs.aspx | |
RME screenshot: https://twitter.com/#!/tim_abell/status/199474387731226624/photo/1 | |
%HOMEDRIVE% | |
cd %HOMEPATH% | |
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 | |
echo Use full exe names when running under bash, e.g. "msbuild.exe" | |
echo Loading bash, you may now use git and msbuild in the same console \o/. | |
"C:\Program Files (x86)\Git\bin\sh.exe" --login -i |
var tags = newArray("nucleus-1","nucleus-2","cyto-1", "cyto-2"); | |
var colors = newArray("red", "green", "blue", "magenta"); | |
var commands = newArray("Select by tag..."); | |
var menu = Array.concat(commands, tags); | |
var pmCmds = newMenu("Popup Menu", menu); | |
macro "Popup Menu" { | |
cmd = getArgument(); | |
if (cmd=="Select by tag...") { | |
Dialog.create("Title"); |
# Assuming an Ubuntu Docker image | |
$ docker run -it <image> /bin/bash |
3rdParty
This function takes a renderer and displays the output directly into IPython
def vtk_show(renderer, w=100, h=100):
"""
Takes vtkRenderer instance and returns an IPython Image with the rendering.
"""
renderWindow = vtkRenderWindow()
renderWindow.SetOffScreenRendering(1)
renderWindow.AddRenderer(renderer)
# By Jake VanderPlas | |
# License: BSD-style | |
import matplotlib.pyplot as plt | |
import numpy as np | |
def discrete_cmap(N, base_cmap=None): | |
"""Create an N-bin discrete colormap from the specified input map""" |