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
<html> | |
<head> | |
<title>Testing d3.js in Leaflet.js</title> | |
<link rel="stylesheet" href="leaflet.css" /> | |
<script type="text/javascript" src="http://d3js.org/d3.v2.min.js?2.9.3"></script> | |
<script src="http://code.leafletjs.com/leaflet-0.3.1/leaflet.js"></script> | |
<style type="text/css"> |
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
<!DOCTYPE html> | |
<html> | |
<meta charset="utf-8"> | |
<head> | |
<link rel="stylesheet" type="text/css" href="css/demo.css" /> | |
<link rel="stylesheet" type="text/css" href="css/elastislide.css" /> | |
<link rel="stylesheet" type="text/css" href="css/custom.css" /> | |
<script src="js/modernizr.custom.17475.js"></script> | |
</head> | |
<title>D3 + Leaflet</title> |
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
/*! jQuery UI - v1.10.4 - 2014-01-17 | |
* http://jqueryui.com | |
* Includes: jquery.ui.core.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css, jquery.ui.theme.css | |
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=highlight_soft&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=flat&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=glass&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=g |
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
{ | |
// Plugin settings | |
// Turn the debug output on/off | |
"show_debug": false, | |
// Which file types (file extensions), do you want the plugin to | |
// execute for | |
"extensions_to_execute": ["php"], |
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
@app.route('/search/<string:q>', methods=['POST']) | |
def query_docs(q): | |
q = q.replace("offset:undefined", "offset:0") # if something goes wrong, just set offset to 0 | |
searchterm = str('projectid: "1542-city-of-new-orleans-contracts"' + " " + q).split("&&")[0].strip() | |
print searchterm | |
vendor = getTerm(searchterm, 'vendor') | |
officers = getTerm(searchterm, 'officers') | |
department = getTerm(searchterm, 'department') | |
offset = getOffSet(q) |
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
$cat small.test | csvsort -c 1 | |
1.0000000000000,vex,vex | |
-0.31829694255,vex,did not by | |
-0.162250196859,vex,had | |
-0.0233508789385,vex,first brought | |
0.0212758403934,vex,was | |
0.0212758403934,vex,was | |
0.0212758403934,vex,was | |
0.0367116830716,vex,was a man of |
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
"17-18A": { | |
"Charles C. Foti, Jr.": { | |
"parish": "36", | |
"precinct": "18A", | |
"total": 91, | |
"name": "17", | |
"candidate": "Charles C. Foti, Jr." | |
}, | |
"Marlin N. Gusman": { | |
"parish": "36", |
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
#!/bin/bash | |
docsplit images "$1" | |
base=$(basename $1 .pdf) | |
IMAGES="$base"*png | |
for i in $IMAGES | |
do | |
FOUND=$(tesseract "$i" out -psm 0 |& grep -ci 'Orientation in degrees: [^0]') | |
if (("$FOUND" == "1")) | |
then | |
mv "$i" examples |
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
DEPENDENCIES = {:java => false, :gm => false, :pdftotext => false, :pdftk => false, :pdftailor => false, :tesseract => false} | |
# Check for all dependencies, and note their absence. | |
dirs = ENV['PATH'].split(File::PATH_SEPARATOR) | |
DEPENDENCIES.each_key do |dep| | |
dirs.each do |dir| | |
if File.executable?(File.join(dir, dep.to_s)) | |
DEPENDENCIES[dep] = true | |
break | |
end |
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
osd = false | |
# Check for all dependencies, and note their absence. | |
dirs = ENV['PATH'].split(File::PATH_SEPARATOR) | |
DEPENDENCIES.each_key do |dep| | |
dirs.each do |dir| | |
if File.executable?(File.join(dir, dep.to_s)) | |
DEPENDENCIES[dep] = true | |
if dep.to_s == 'tesseract' #if the tesseract dependency is found | |
val = %x[ #{'tesseract --list-langs'} 2>&1 >/dev/null ] #check for the osd plugin. |
OlderNewer