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
ffmpeg -y -i in.ts \ | |
-f mp4 -vcodec libx264 \ | |
-fpre libx264.ffpreset \ | |
-cmp chroma -r 30000/1001 \ | |
-aspect 16:9 -s 1440x1080 \ | |
-bufsize 20000k \ | |
-maxrate 25000k -vsync 1 \ | |
-acodec libfaac -ac 2 \ | |
-ar 48000 -ab 128k \ | |
-map 0:0 -map 0:1 out.mp4 |
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 csv | |
import itertools | |
from collections import namedtuple | |
# 列名のリスト | |
fields = ['foo', 'bar', 'baz', 'spam'] | |
Row = namedtuple('Row', ' '.join(fields)) | |
def reader(fp): |
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
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 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 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 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 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 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 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