This file contains 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
<html> | |
<head><title>Lists</title> | |
</head> | |
<body> | |
<div id="list"> | |
<h2>testlist</h2> | |
<p><span id="mytwitter"></span></p> | |
</div> | |
<script type="text/javascript"> | |
<!-- |
This file contains 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
<html> | |
<head><title>Lists</title> | |
</head> | |
<body> | |
<div id="list"> | |
<h2>testlist</h2> | |
<p><span id="mytwitter"></span></p> | |
</div> | |
<script type="text/javascript"> | |
<!-- |
This file contains 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>スカンディナヴィア半島</title> | |
</head> | |
<body> | |
<div id="header" class="clearfix"> | |
現在時刻: <span id="current_date"></span> | |
<span id="api_limit"> </span> |
This file contains 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
a = [1,2,3,4.4,5.5,'aaa'] | |
for i in a: | |
if isinstance(i, float): | |
print i |
This file contains 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
// ==UserScript== | |
// @name auto page more load for toggeter | |
// @description Togetterの続きを読むを自動的に表示する | |
// @include http://togetter.com/li/* | |
// @namespace http://twitter.com/altnight | |
// @author altnight | |
// @version 0.0.1 | |
// ==/UserScript== | |
(function(){ | |
//「続きを読む」の要素を取ってくる |
This file contains 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
>>> import this | |
The Zen of Python, by Tim Peters | |
Beautiful is better than ugly. | |
Explicit is better than implicit. | |
Simple is better than complex. | |
Complex is better than complicated. | |
Flat is better than nested. | |
Sparse is better than dense. | |
Readability counts. |
This file contains 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
#!/usr/bin/env python | |
# coding: utf-8 | |
import sys | |
import socket | |
HOST = 'localhost' | |
PORT = 50007 | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.connect((HOST, PORT)) |
This file contains 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
--- | |
- hosts: 127.0.0.1 | |
connection: local | |
user: (user) | |
vars: | |
tmpdir: "/Users/(user)/tmpfile/python" | |
name: "Python" | |
version: "3.4.0" | |
tasks: | |
- name: "make dir" |
This file contains 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
# -*- coding: utf-8 -*- | |
def parse_input_string(strs): | |
import shlex | |
parsed = shlex.split(cmd) | |
print(parsed) | |
return parsed | |
cmd = 'hoge | moge 1 | insert_delimiter ! | whitespace' | |
parsed = parse_input_string(cmd) |
This file contains 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
""" | |
- https://speakerdeck.com/anatoo/phpdexue-buvmxing-zheng-gui-biao-xian-enzinfalseshi-zu-mi | |
- http://blog.asial.co.jp/1221 | |
""" | |
import copy | |
class RegexVMThread(object): | |
def __init__(self): | |
self.string_pointer = 0 |
OlderNewer