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
| import csv | |
| import itertools | |
| from collections import namedtuple | |
| # 列名のリスト | |
| fields = ['foo', 'bar', 'baz', 'spam'] | |
| Row = namedtuple('Row', ' '.join(fields)) | |
| def reader(fp): |
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
| setInterval(function(){ | |
| var area = document.getElementById('contentArea'); | |
| var links = area.getElementsByClassName('uiIconText'); | |
| for (var i = 0;i < links.length; i++) { | |
| links[i].click(); | |
| } | |
| }, 5000); |
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
| 000000 IDENTIFICATION DIVISION. | |
| 000000 PROGRAM-ID. nTandaX. | |
| 000000* | |
| 000000 DATA DIVISION. | |
| 000000 WORKING-STORAGE SECTION. | |
| 000000 01 APB PIC X(26) VALUE 'ABCDEFGHIJKLMNOPORSTUVWXYZ'. | |
| 000000 01 I PIC 9(4). | |
| 000000 01 G PIC 9(4). | |
| 000000 01 N PIC 9(4). | |
| 000000 01 X PIC ZZZ9. |
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
| // 適当なモデル | |
| Ext.define('app.model.Entry', { | |
| extend: 'Ext.data.Model', | |
| config: { | |
| fields: [ | |
| {name: 'title', type: 'string'}, | |
| {name: 'body', type: 'string'} | |
| ] | |
| } |
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 django import forms | |
| class PhotoForm(forms.Form): | |
| image = forms.ImageField() |
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
| # -*- coding: utf-8 -*- | |
| import sys | |
| import unittest | |
| class WorkTest(unittest.TestCase): | |
| def _makeOne(self): | |
| from working import work | |
| return work |
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
| # -*- coding: utf-8 -*- | |
| import sys | |
| import unittest | |
| class WorkTest(unittest.TestCase): | |
| def _makeOne(self): | |
| from working import work | |
| return work |
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
| { | |
| "Twitter": { | |
| "ConsumerKey": "yourConsumerKey", | |
| "ConsumerSecret": "yourConsumerSecret", | |
| "AccessToken": "yourAccessToken", | |
| "AccessTokenSecret": "yourAccessTokenSecret" | |
| } | |
| } |
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
| # -*- coding: utf-8 -*- | |
| from copy import copy | |
| from django.test.signals import template_rendered | |
| class AssertHttpResponseContext(object): | |
| def __init__(self, test_case, context_key, context_value): | |
| self.test_case = test_case | |
| self.context_key = context_key |
OlderNewer