Skip to content

Instantly share code, notes, and snippets.

View neino3's full-sized avatar

neino3 neino3

  • Hiroshima, JAPAN
View GitHub Profile
----index.html-----
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>htmlfile post test on IE6</title>
</head>
<body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
@neino3
neino3 / Selenium2Example1Test.java
Created September 5, 2012 14:58
how to take screen shot by using Selenium2 Grid
import java.io.File;
import java.io.IOException;
import java.net.URL;
import org.apache.commons.io.FileUtils;
import org.junit.Assert;
import org.junit.Test;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.Platform;
@neino3
neino3 / README.md
Created October 19, 2012 06:15
fail to connect socket.io server by using htmlfile transport on IE8. contents(HTML) is served from other server.

motivation

I want to connect to socket.io server by using htmlfile transport from contents which served from other contents server (simple http server) on IE8, but fail.

This is verification code. There is two servers. one is socket.io server and another is a contents server which serves index.html. I specify transport as 'htmlfile' in index.html. If you open http://localhost:8888 in IE8, browser tried to connect to socket.io server. Handshake is done successfully, but after that client does not start transport negotiation of 'htmlfile'.

here is console logs

info - socket.io started

@neino3
neino3 / chapter6-1.md
Last active August 29, 2015 13:56
iOSアプリ勉強会資料(詳細! Objective-C iPhoneアプリ開発 入門ノート)

Chapter 6-1 タッチイベントを認識する(p218〜)

Gesture Recognizerの種類

  • Tap Gesture Recognizer: タップ、ダブルタップ
  • Pinch 〜: ピンチ
  • Rotation 〜: 2本指でひねる回転操作
  • Swipe 〜: スワイプ
  • Pan 〜: パン(パニング、ドラッグ) ※パン、パニング=マウスbuttonIndexでいうドラッグのこと
  • Long Press 〜: 長押し(タッチ&ホールド)
@neino3
neino3 / plan.md
Last active August 29, 2015 13:57
iOSアプリ開発勉強会(社内)の今後をどうするか?

以下、できるかどうかは別としてやったらいいな、と思うことを 思いつきで書いてます。

知識

実現したい機能があっても何を使ったらよいか分からないので、もう少し引き出しを増やすという意味で。

  • 本をもう1冊
    • テスト関連
  • GPS, センサー, Map, ひと通りiOSアプリらしい機能(API?)を触ってみる
@neino3
neino3 / neutron.md
Last active August 29, 2015 14:01
about OpenStack neutron
def generate_or_read_from_file(key_file='.secret_key', key_length=64):
"""Multiprocess-safe secret key file generator.
Useful to replace the default (and thus unsafe) SECRET_KEY in settings.py
upon first start. Save to use, i.e. when multiple Python interpreters
serve the dashboard Django application (e.g. in a mod_wsgi + daemonized
environment). Also checks if file permissions are set correctly and
throws an exception if not.
"""
lock = lockfile.FileLock(key_file)