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
| mail_address = '' | |
| password = '' | |
| from selenium import webdriver | |
| UA = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0' | |
| PHANTOMJS_ARG = {'phantomjs.page.settings.userAgent': UA} | |
| driver = webdriver.PhantomJS(desired_capabilities=PHANTOMJS_ARG) | |
| url = 'https://www.google.com/accounts/Login?hl=ja&continue=http://www.google.co.jp/' |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Ansi 0 Color</key> | |
| <dict> | |
| <key>Blue Component</key> | |
| <real>0.0</real> | |
| <key>Green Component</key> | |
| <real>0.0</real> |
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
| session = requests.Session() | |
| session.mount('http://', requests.adapters.HTTPAdapter(max_retries=3)) | |
| session.mount('https://', requests.adapters.HTTPAdapter(max_retries=3)) | |
| response = session.get(lp, headers={'User-agent': UA}, timeout=1) |
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
| mkdir ~/smt | |
| cd ~/smt | |
| # Install Moses | |
| export BOOST_ROOT=/usr/local/Cellar/boost/1.57.0 | |
| export BOOST_BUILD_PATH=/usr/local/share/boost-build | |
| ln /usr/local/Cellar/boost/1.57.0/lib/libboost_thread-mt.a /usr/local/Cellar/boost/1.57.0/lib/libboost_thread.a | |
| ln /usr/local/Cellar/boost/1.57.0/lib/libboost_thread-mt.dylib /usr/local/Cellar/boost/1.57.0/lib/libboost_thread.dylib | |
| ln -s /usr/local/Cellar/boost/1.57.0/lib /usr/local/Cellar/boost/1.57.0/lib64 |
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 notify() { | |
| echo -e "display notification \"$1\" with title \"Terminal\" subtitle \"`date +"%F %T"`\"" | osascript | |
| } |
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
| from collections import namedtuple | |
| import np | |
| class Bursts: | |
| def __init__(level, start, end): | |
| self.level = level | |
| self.start = start | |
| self.end = end | |
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
| *** jpcommon/jpcommon_label.c.old 2015-02-27 03:35:32.000000000 +0900 | |
| --- jpcommon/jpcommon_label.c 2015-02-27 03:36:34.000000000 +0900 | |
| *************** static int index_accent_phrase_in_breath | |
| *** 296,301 **** | |
| --- 296,302 ---- | |
| if (index == a) | |
| break; | |
| } | |
| + if (i > 3) i = 3; | |
| return i; |
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
| HTS_ENGINE_VERSION=1.10 | |
| HTS_VOICE_VERSION=1.05 | |
| OPENJTALK_VERSION=1.10 | |
| pushd . | |
| cd /tmp | |
| wget http://downloads.sourceforge.net/hts-engine/hts_engine_API-${HTS_ENGINE_VERSION}.tar.gz | |
| tar xzf hts_engine_API-${HTS_ENGINE_VERSION}.tar.gz | |
| cd hts_engine_API-${HTS_ENGINE_VERSION} |
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
| mkdir -p .vim/syntax | |
| wget -O .vim/syntax/hive.vim https://raw.githubusercontent.com/autowitch/hive.vim/master/syntax/hive.vim | |
| echo "au BufNewFile,BufRead *.hql set filetype=hive expandtab" >> ~/.vimrc | |
| echo "au BufNewFile,BufRead *.q set filetype=hive expandtab" >> ~/.vimrc |
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
| ''' | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. |