Skip to content

Instantly share code, notes, and snippets.

@mitsuhito
mitsuhito / gist:59e41aa957030f323eab
Created August 27, 2012 02:57
Enable unidic accent
Binary files ../atilika-kuromoji-2131a30/.DS_Store and ../atilika-kuromoji-2131a30 2/.DS_Store differ
Only in ../atilika-kuromoji-2131a30 2/: dictionary
Only in ../atilika-kuromoji-2131a30 2/: enable_accents.patch
diff -u -r ../atilika-kuromoji-2131a30/pom.xml ../atilika-kuromoji-2131a30 2/pom.xml
--- ../atilika-kuromoji-2131a30/pom.xml 2012-05-06 07:46:56.000000000 +0900
+++ ../atilika-kuromoji-2131a30 2/pom.xml 2012-08-27 00:02:07.000000000 +0900
@@ -37,6 +37,7 @@
</developer>
</developers>
@mitsuhito
mitsuhito / gist:0c7e0eebbe962de3cffc
Last active December 16, 2015 15:39
3Dプリンタ関連のメモ
///////////////////////////////////////////////////////////////////////////////////////////////////
知っている3Dプリンターについて
* Dimension SST 768 (IAMASに置いてあるやつ)
http://www.marubeni-sys.com/de/dimension/shiyou-768.html
本体価格 298万円
積層ピッチ 0.254mm
造形サイズ W203 x D203 x H305 mm
消耗品 http://www.graphtec.co.jp/site_3d/dimension/supply.html
モデリング材料 78,750円(税込み)
UDPパケットにのせるカスタムデータのフォーマット
(イーサネットのMTUにあわせて1500Byte以内におさめている)
------------------------------------------------------------------------------------------------
JSON形式
*Header
{
"PayloadLength" : Payload部のバイト数,
"Chunks" : Payloadの数,
"Hash" : { "SHA256" : "PayloadにあるDataフィールドのBASE64エンコード済み文字列をすべて連結したものをSHA-256でハッシュした値" }
@mitsuhito
mitsuhito / gist:36cc6926319f28ee2964
Last active January 2, 2016 16:48
ofxEpilog memo
#include "testApp.h"
#include "ofxEpilog.h"
ofxEpilog epilogLaser;
void testApp::setup()
{
OutputConfig config = OutputConfig(50, 10, 50, 10, 1000, 100); // vspeed, vpower, rspeed, rpower, dpi, freq
epilogLaser.setOutputConfig(config);
epilogLaser.setWorkareaSize(WorkareaSize(812, 508, 0)); // width, height, z
@mitsuhito
mitsuhito / testApp.cpp
Last active January 3, 2016 11:39
ofxEpilog basic example
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
ofSetLogLevel(OF_LOG_VERBOSE); // For debug output
// Workarea of Epilog laser fuzion
WorkareaSize fusion;
fusion.width = 812;
fusion.height = 508;
@mitsuhito
mitsuhito / gist:8618078
Created January 25, 2014 15:29
xml builder
#!/usr/bin/env python
# coding:utf-8
import os
import sys
import xml.etree.cElementTree as ET
baseFilePath = ""
outputFilePath = "./"
@mitsuhito
mitsuhito / gist:a8a2e227b683caa2ea80
Created June 1, 2014 04:54
Sample Sketch; Uploading To Xively Directly
// YCAM AMP SHIELD PIN LAYOUT
// A0 - リファレンス用
// A1 - 測定値用
#include <SPI.h>
#include <Ethernet.h>
#include <HttpClient.h>
#include <Xively.h> // DOWNLOAD FROM HERE -> https://github.com/xively/xively_arduino
#define AVG_COUNT (32)
PrintWriter output;
//colors
color black=color(0);
color white=color(255);
//variables
int itr; //iteration
float pixBright;
float maxBright=0;
We can't make this file beautiful and searchable because it's too large.
2014-07-09 17:20:26.944475,0.35
2014-07-09 17:21:28.129464,0.35
2014-07-09 17:22:29.303675,0.35
2014-07-09 17:23:30.477646,0.34
2014-07-09 17:24:31.908925,0.34
2014-07-09 17:25:33.113254,0.35
2014-07-09 17:26:34.285212,0.35
2014-07-09 17:27:35.485608,0.33
2014-07-09 17:28:36.677007,0.33
2014-07-09 17:29:37.844691,0.34
/*
ModelbuilderMk2 - UGeo_Cylinder.pde
Marius Watz - http://workshop.evolutionzone.com
Creates a cylinder mesh using UGeo.quadstrip() and
UGeo.triangleFan(), then draws the mesh with face normals
*/