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
<h2>Using YQL to Finance quotes</h2> | |
<?php | |
$BASE_URL = "https://query.yahooapis.com/v1/public/yql"; | |
// Form YQL query and build URI to YQL Web service | |
$yql_query = "select * from yahoo.finance.quotes where symbol in ('YHOO', 'APPL')"; | |
$yql_query_url = $BASE_URL . "?q=" . urlencode($yql_query) . "&env=store://datatables.org/alltableswithkeys&format=json"; |
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 cv2 | |
import numpy as np | |
def unique(a): | |
""" remove duplicate columns and rows | |
from http://stackoverflow.com/questions/8560440 """ | |
order = np.lexsort(a.T) | |
a = a[order] | |
diff = np.diff(a, axis=0) | |
ui = np.ones(len(a), 'bool') |
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
Option Explicit On | |
Option Strict On | |
#Region "名前空間" | |
Imports System.Collections | |
Imports System.Collections.Generic | |
Imports System.ComponentModel | |
Imports System.Text | |
Imports System.Windows.Forms |