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
| #!/usr/bin/env python | |
| """ | |
| Get financial data from Google Finance. | |
| Requirment: | |
| pyquery 1.2.6. (1.2.1 did not work) | |
| Report types: | |
| inc - income statement | |
| bal - balance sheet |
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
| DECLARE カーソル名 CURSOR FOR SELECT文 |
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
| <ul> | |
| <li x="123" class="red"> item 1 </li> | |
| <li x="123" class="red"> item 2 </li> | |
| <li x="123" class="red"> item 3 </li> | |
| </ul> |
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
| VAR x, squ; | |
| PROCEDURE square; | |
| BEGIN | |
| squ := x * x | |
| END; | |
| BEGIN | |
| x := 1; | |
| WHILE x <= 10 DO |
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
| ['VAR', 'x', ',', 'squ', ';', 'PROCEDURE', 'square', ';', 'BEGIN', 'squ', ':=', 'x', '*', 'x', 'END', ';', 'BEGIN', 'x', ':=', '1', ';', 'WHILE', 'x', '<=', '10', 'DO', 'BEGIN', 'CALL', 'square', ';', 'x', ':=', 'x', '+', '1', ';', 'END', 'END', '.'] |
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
| CONST | |
| m = 7, | |
| n = 85; | |
| VAR | |
| x, y, z, q, r; | |
| PROCEDURE multiply; | |
| VAR a, b; |
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
| $ diff -u example.py example_threaded.py | |
| --- example.py 2016-12-20 16:19:19.000000000 -0800 | |
| +++ example_threaded.py 2016-12-20 16:23:43.000000000 -0800 | |
| @@ -1,6 +1,13 @@ | |
| +import logging | |
| +import threading | |
| + | |
| from flask import request, url_for | |
| from flask.ext.api import FlaskAPI, status, exceptions |
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
| { | |
| "type": "kafka", | |
| "dataSchema": { | |
| "dataSource": "metrics-kafka", | |
| "parser": { | |
| "type": "protobuf", | |
| "descriptor": "file:///tmp/metricskafka.desc", | |
| "protoMessageType": "MetricsKafka", | |
| "parseSpec": { | |
| "format": "json", |
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
| public void testPacked() throws Exception | |
| { | |
| byte[] protobufData; | |
| final String SCHEMA_STR = | |
| "package mypackage;\n" | |
| + "message t1 {\n" | |
| + " repeated uint32 report_code = 1 [packed=true];\n" | |
| + "}"; |
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
| package com.example.jackson.protobuf; | |
| import com.fasterxml.jackson.dataformat.protobuf.schema.FieldType; | |
| import com.fasterxml.jackson.dataformat.protobuf.schema.ProtobufEnum; | |
| import com.fasterxml.jackson.dataformat.protobuf.schema.ProtobufField; | |
| import com.fasterxml.jackson.dataformat.protobuf.schema.ProtobufMessage; | |
| import com.fasterxml.jackson.dataformat.protobuf.schema.ProtobufSchema; | |
| import com.github.os72.protobuf.dynamic.DynamicSchema; | |
| import com.google.protobuf.Descriptors; | |
| import com.squareup.protoparser.DataType; |
OlderNewer