- Tatsuhiro Ujihisa
- http://ujihisa.blogspot.com/
- 非同期とは?
- スレッド、プロセス
- プロセス生成
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# USAGE : $ ./HoughCircles.py Media/foo.jpg | |
import cv | |
import sys | |
if __name__ == "__main__": | |
image = cv.LoadImage(sys.argv[1], cv.CV_LOAD_IMAGE_GRAYSCALE) | |
src = cv.LoadImage(sys.argv[1]) |
;; ucs-normalize-NFC-region で濁点分離を直す | |
;; M-x ucs-normalize-NFC-buffer または "C-x RET u" で、 | |
;; バッファ全体の濁点分離を直します。 | |
;; 参考: | |
;; http://d.hatena.ne.jp/nakamura001/20120529/1338305696 | |
;; http://www.sakito.com/2010/05/mac-os-x-normalization.html | |
(require 'ucs-normalize) | |
(prefer-coding-system 'utf-8-hfs) | |
(setq file-name-coding-system 'utf-8-hfs) |
(require 'url) | |
(defun send-http-request (url) | |
"Send a simple http request and open a result within an other buffer.." | |
(let | |
( | |
(url-request-method "GET") | |
(url-request-extra-headers '(("Content-Type" . "application/x-www-form-urlencoded")))) | |
(url-retrieve url 'switch-to-buffer-for-responce))) |
Vim Advent Calendar 2012の345日目(2013-11-10)の記事です。
普通のWindowsアプリにおいて、擬似的にViエディタのNormal mode編集操作を使えるようにするIMEを作りました。
#!/usr/bin/python | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected]) | |
# The author disclaims copyright to this source code. | |
# | |
# Modified slightly by Andreas Thienemann <[email protected]> for clearer exploit code | |
# and 64k reads | |
# | |
# This version of the exploit does write received data to a file called "dump" in the local directory | |
# for analysis. |