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
Sub outputfile_whole() | |
Dim Infilename, outfilename As String | |
Dim name As String | |
Filename = ThisWorkbook.FullName | |
filename1 = ThisWorkbook.name | |
filename1 = Left(filename1, Len(filename1) - 5) |
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
origin='Madison,Chicago,IL'; | |
destination='N+Michigan+Ave,Chicago,IL'; | |
url1=['https://maps.googleapis.com/maps/api/directions/json?origin=' origin '&destination=' destination '&sensor=false&key= XXXX&departure_time=1343641500&mode=driving']; | |
direction=urlread(url1); | |
d=parse_json(direction); | |
steps=d{1}.routes{1}.legs{1}.steps; | |
[startpoints,endpoints]=cellfun(@parsecoord,steps); | |
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
# http://stackoverflow.com/questions/19120489/compare-two-files-report-difference-in-python | |
import difflib | |
import sys | |
with open('transect_2_night_1.bin_PB_2013-09-13_151717.dat', 'r') as hosts0: | |
with open('transect_3_day_1.bin_PB_2013-09-13_150838.dat', 'r') as hosts1: | |
diff = difflib.unified_diff( | |
hosts0.readlines(), | |
hosts1.readlines(), | |
fromfile='hosts0', |
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
\usepackage[subsection]{algorithm} % algorithm float, number according to subsection | |
\usepackage{algpseudocode} % pseudo-code format | |
\begin{algorithm}[htbp] | |
\caption{Parallel CUDA algorithm for connect component labelling \#1} | |
\label{alg:imageLabellingGPU1} | |
\algblockdefx[kernel]{Kernel}{EndKernel}[2][default value]{{\bf kernel} {\footnotesize \uppercase{#1}(#2)}}{\bf end kernel} | |
\begin{algorithmic} |
NewerOlder