This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Copyright (C) 2017 Google Inc. | |
# Copyright (C) 2017 Ryosuke Tajima | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Function to format C/C++ code with GNU indent | |
(defun c-auto-format () | |
"Function to format C/C++ code with GNU indent" | |
(interactive) | |
(when (find major-mode '(c-mode c++-mode)) | |
(shell-command | |
(format "indent %s" (shell-quote-argument (buffer-file-name)))) | |
(revert-buffer t t t))) | |
;; Add after-save-hook | |
(add-hook 'after-save-hook 'c-auto-format) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
data = [['a', 'b', 'c'], | |
['d', 'e', 'f'], | |
['g', 'h', 'i']] | |
# write data | |
with open('data.txt', 'w') as file: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rvizではメッシュの色(Vertex Color)は反映されず、テクスチャにする必要があるみたい。 | |
meshlabでテクスチャ付きのCOLLADAファイルを作る方法をメモ。 | |
meshlab ver.1.33 | |
* メッシュをインポート | |
* Z-paintingツールでメッシュに色をつける | |
* Filters->Texture->Parametrization:Trivial Per Triangleを選択 | |
* パラメータはデフォルトのままでApply | |
* Filters->Texture->Vertex Color to Textureを選択 |