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
# | |
# Find Sphinx | |
# Find Sphinx executable to build documentation | |
# Source: http://ericscottbarr.com/blog/2012/03/sphinx-and-cmake-beautiful-documentation-for-c-projects/ | |
# | |
# Daniel Kastl 03/2013 | |
# | |
set(SPHINX_THEME "haiku") | |
#set(SPHINX_THEME_DIR "_themes") |
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
create or replace function pgr_graphviz(edge_table text, | |
eid text default 'id', | |
source text default 'source', | |
target text default 'target', | |
oneway text default '', | |
ft text[] default array['FT']::text[], | |
tf text[] default array['TF']::text[], | |
where_clause text default 'true', | |
nodepos bool default false) | |
returns text as |
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
three way opt | |
* Local Search Heuristics | |
* b-------a b a | |
* . . => .\ /. | |
* . d...e . . e...d . | |
* ./ \. . . | |
* c f c-------f | |
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
trie: main.cpp Makefile | |
clang++ -O3 -std=c++11 -stdlib=libc++ -Wall -o trie main.cpp -lboost_system |
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
#!/usr/bin/env python | |
# Warning: This is not great code. | |
# Copyright 2015 Google Inc. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
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
diff -aur hycom/ALL/archive/src/Make_all.src hycom-Ubuntu-10.04/ALL/archive/src/Make_all.src | |
--- hycom/ALL/archive/src/Make_all.src 2005-03-02 12:41:09.000000000 -0500 | |
+++ hycom-Ubuntu-10.04/ALL/archive/src/Make_all.src 2016-06-07 14:42:48.778077614 -0400 | |
@@ -15,4 +15,4 @@ | |
#setenv ARCH t3e | |
#setenv ARCH x1 | |
# | |
-setenv ARCH amd64 | |
+setenv ARCH gfortran | |
diff -aur hycom/ALL/archive/src/Makefile hycom-Ubuntu-10.04/ALL/archive/src/Makefile |
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
<?php | |
$xml = simplexml_load_file('Peoples-Ranch-Map.kml-2.xml'); | |
$folders = $xml->Document->Folder; | |
foreach ($folders as $folder) { | |
print "Name: " . $folder->name . "\n"; | |
print "Description: " . $folder->description . "\n"; | |
$children = $folder->children(); | |
foreach ($children as $child) { | |
print ' Name: ' . $child->name . "\n"; |
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
#!/usr/bin/env python3 | |
''' | |
get-winds.py | |
- get the latest data from nomads.ncep.noaa.gov unless we have it already | |
- generate file /maps/wms/data/windy.json | |
- generate windy.latest file with time stamp | |
''' |