Skip to content

Instantly share code, notes, and snippets.

View otiai10's full-sized avatar
👋

Hiromu OCHIAI otiai10

👋
View GitHub Profile
From otiai10@gmail.com Thu Mar 7 18:30:06 2013
Return-Path: <otiai10@gmail.com>
X-Original-To: hiromu@www15224uf.sakura.ne.jp
Delivered-To: hiromu@www15224uf.sakura.ne.jp
Received: from mail-ia0-f174.google.com (mail-ia0-f174.google.com [209.85.210.174])
by www15224uf.sakura.ne.jp (Postfix) with ESMTPS id 42A7D2BC8A3
for <hiromu@www15224uf.sakura.ne.jp>; Thu, 7 Mar 2013 18:30:06 +0900 (JST)
Received: by mail-ia0-f174.google.com with SMTP id u20so223505iag.33
for <hiromu@www15224uf.sakura.ne.jp>; Thu, 07 Mar 2013 01:30:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
@otiai10
otiai10 / testGmail.rb
Created March 8, 2013 10:33
mail, それもgmail
require 'rubygems'
require 'gmail' # sudo gem install ruby-gmail
require 'conf' # ただの設定ファイル
gmail = Gmail.new(USERNAME,PASSWORD)
puts 'read'
mails = gmail.inbox.emails(:read).map do |mail|
puts "Subject: #{mail.subject}"
end
@otiai10
otiai10 / How_To_Make_Solution_Of_Your_Team_Abstract_Problem.md
Last active December 16, 2015 19:39
解決策創出に飛びつく前に必ず、課題の発見と定義をする(なんかgist日本語入力しづらい?)

How to make solution of team's ABSTRACT problem

  1. "Complaining-Brain-Storming"
  • Visualize everyone's plain frustrations
  1. "Imagine Ideal Situation"
  • Imagine and define the world where every member is happy
  1. "Disclose the diff of the Ideal and the Real"
  • Think why you are NOT good.
  1. "Define Mission to Tackle"
  • Make sure what is the problem enough significant to tackle and struggle.
@otiai10
otiai10 / sushihackathon.md
Last active December 17, 2015 11:39
突発ですしハッカソンするよ好きな事しかしないよ場所は今決めたよ終わったらお寿司が食べたいよ
@otiai10
otiai10 / memsql.install.md
Last active December 18, 2015 21:29
memsql
% wget http://download.memsql.com/db2717c8835c43fbae4c42de0c5d6be7/memsqlbin_amd64.tar.gz
--2013-06-24 15:10:04--  http://download.memsql.com/db2717c8835c43fbae4c42de0c5d6be7/memsqlbin_amd64.tar.gz
Resolving download.memsql.com... 72.21.215.197
Connecting to download.memsql.com|72.21.215.197|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 119509703 (114M) [application/x-tar]
Saving to: `memsqlbin_amd64.tar.gz'

100%[==========================================================================================================================================>] 119,509,703 11.1M/s   in 24s
@otiai10
otiai10 / memcheck.sh
Created July 9, 2013 06:00
memory usage check (sec by sec)
flg=0
cur_date=`date '+%Y.%m%d.%H:%M:%S'`
echo $cur_date
while true
do
if [ $flg -eq 0 ]; then
free | head -2
else
free | head -2 | tail -1
fi
res = {
  'feed' : {
    category
    updated
    xmlns$gd
    openSearch$startIndex
    entry
    generator
 title
@otiai10
otiai10 / tweet.constructions.py
Last active December 20, 2015 01:18
tweet class constructions
-------------- tw ------------------
friends
-------------- tw ------------------
lang
truncated
created_at
text
coordinates
in_reply_to_status_id_str
source
@otiai10
otiai10 / tweet.user.md
Created July 23, 2013 11:49
tweet['user']

[20:47:51] % sh cli/app.sh start [master~/prj/python/hisyotan]

screen_name otiai10

description ENCO

profile_use_background_image False

@otiai10
otiai10 / api.py.md
Last active December 20, 2015 03:09
~/.pyenv/versions/tool13.0721/lib/python3.3/site-packages/twitter/api.py
        uriBase = "http%s://%s/%s%s%s" %(
                    secure_str, self.domain, uri, dot, self.format)
        print('HERERERERERRERERRERER')
        print('secure_str', secure_str)
        print('self.domain', self.domain)
        print('uri', uri)
        print('dot', dot)
        print('format', self.format)
 print(uriBase)