This file contains 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
#!/bin/bash | |
mecab="mecab-0.996" | |
mecab_python="mecab-python-0.996" | |
mecab_googlecode="https://mecab.googlecode.com/files/" | |
if ! type curl > /dev/null; then | |
downloader='wget ' | |
else | |
downloader='curl -O ' |
This file contains 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
# -*- coding: utf-8 -*- | |
def all_startswith(question, d): | |
for num in d: | |
if question.startswith(num): | |
yield num | |
def pickup(string, d, result=[]): | |
if string == "": | |
print result, ''.join([d[num] for num in result]) |
This file contains 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
# -*- coding: utf-8 -*- | |
import json | |
from datetime import datetime, timedelta | |
ROBOT_RECORD = "RobotRecord" | |
RECORD_KINDS = ('AFSMData', 'Compass', 'FaceMotionData', 'OmniControl', 'RSSIRecord', 'URGData') | |
FILENAME_PREFIX = "2012-08-31 11:00:00+09:00_2012-08-31 17:10:00+09:00_" |
This file contains 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
#!/Users/buhii/.virtualenvs/gemini/bin/python | |
# -*- coding: utf-8 -*- | |
import os | |
from path import path | |
IMAGE_EXTENSIONS = ('png', 'jpg', 'gif', 'pdf') | |
d = path('.') |
This file contains 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
#!/Users/buhii/.virtualenvs/gemini/bin/python | |
# -*- coding: utf-8 -*- | |
import sys | |
if len(sys.argv) != 2: | |
print "Usage: framed.py [image path]" | |
sys.exit(0) | |
else: | |
import os |
This file contains 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
-Diamond Island | |
--X: -211 | |
--Y: 12 | |
--Z: 484 | |
-Mushroom Island | |
--X: -597 | |
--Y: 72 | |
--Z: 0 |
This file contains 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
rod_radius = 1.3; //1.2 / 2; // + 0.63; | |
magnet_height = 4.0; | |
magnet_radius = 4.0; | |
holder_length = 8.0; | |
holder_width = 11.0; | |
holder_edge = 6.0; | |
module magnet_holder() |
This file contains 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
rod_radius = 1.2 / 2; // + 0.63; | |
magnet_height = 3.0; | |
magnet_radius = 3.0; | |
holder_length = 8.0; | |
holder_width = 11.0; | |
holder_edge = 6.0; | |
This file contains 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
def _callback(result): | |
print("connected") | |
client.send(osc.Message('/ack')) | |
from twisted.internet import reactor | |
from txosc import osc, dispatch, async | |
client = async.ClientFactory() | |
_client_port = reactor.connectTCP('10.0.1.2', 59603, client) | |
client.deferred.addCallback(_callback) |
This file contains 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
# -*- coding: utf-8 -*- | |
from struct import pack | |
class RCB_4HV(object): | |
def __init__(self): | |
pass | |
def uni_servo(self, ics, speed, position): | |
# uni servo control |