2011-11-01ãã1ã¶æéã®è¨äºä¸è¦§
ãã®è¨äºã§ãã¤ã¼ãã®åå¾ã¯ã§ããããã«ãªãã¾ãããï¼æå»ã®ã»ããæååã®ã¾ã¾ãªã®ã§ï¼ã¡ãã£ã¨æ±ãã®ã大å¤ã§ãï¼ããããã¨ãã¯ãããã¾ãï¼ #! /usr/bin/env python # encoding=utf-8 import datetime def getTimeByTweet(tweet) : return datetime.daâ¦
ã¾ãï¼MeCabnã®pythonç¨ãã¤ã³ãã£ã³ã°ãããã®ã§aptã§ã¤ã³ã¹ãã¼ã«ãã¾ãï¼ sudo apt-get install python-mecabãããããï¼ãã¨ã¯ä»¥ä¸ã®ã³ã¼ãã§åãã¡æ¸ãã§ãã¾ãï¼(NLTK使ã£ãã»ãã楽ããï¼ #! /usr/bin/env python # encoding=utf-8 import MeCab defâ¦
basicèªè¨¼ã ãã§è¡ããã®ã§çµæ§ç°¡åã§ãï¼ getJapaneseTweetsã¯å¼æ°åã®æ¥æ¬èªãã¤ã¼ãï¼jsonï¼ãsimplejsonã§è¾æ¸ã«å¤æãã¦ï¼ãã®ãªã¹ããè¿ãã¾ãï¼ æååç §ããã³ã¼ããç´ãã¦ãã®ã¯ãã¤ã¼ãæ¬æã ãã«ãªã£ã¦ã¾ãï¼ #! /usr/bin/env python # encoding=â¦
#! /usr/bin/env python # encoding=utf-8 import re def isJapanese(text) : return re.search(u'[ã-ãã¡-ã´]', text) if __name__ == '__main__' : print isJapanese(u'aiueo') #=> None print isJapanese(u'ããããã') #=> <_sre.SRE_Match object at 0x7ffb5926f370></_sre.sre_match>
追è¨ï¼http://d.hatena.ne.jp/miettal/20121118/1353237527 ã«è¿½å è¨äºæ¸ãã¾ããï¼ aitendo ã¨ããé販ãµã¤ã㧠16ã»ã°LED ã1å49åã§å£²ã£ã¦ããã®ã§è³¼å ¥ãã¦ï¼ããã£ã¦ã¿ã¾ããï¼ã¨ãã£ã¦ãæ®éã«ãããªã¯ã¹çµãã§ãã¤ãããã¯ç¹ç¯ããã ãã§ããã©ãï¼åâ¦
android3.1ã§Jsch使ãã¢ããªæ¸ãããï¼android.os.NetworkOnMainThreadExceptionã£ã¦ããä¾å¤åãã¾ããï¼3.1ããã¯StrictModeãããã©ã«ãã§ONã«ãªã£ã¦ããã®ã§ï¼OFFã«ããããï¼ä»¥ä¸ã®ä¸æãå¿ è¦ãããã¾ãï¼ StrictMode.setThreadPolicy(new StrictMode.Tâ¦
#include <avr/io.h> #define HIGH 1 #define LOW 0 int main(void) { write_pin("A1", HIGH); while(1); } void write_pin(char *chr, int d) { if(d==HIGH){ if(*chr == 'A'){ PORTA |= (1<<(chr[1]-'0')); }else if(*chr == 'B'){ PORTB |= (1<<(chr[1]-'0')); }els</avr/io.h>â¦