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
async function addAnnouncement (req, res, next) { | |
try { | |
const body = req.body; | |
const contents = { | |
title: body.title, | |
a_content: body.a_content, | |
start_date: body.start_date + " 00:01", | |
end_date: body.end_date + " 23:59", | |
userId : utils.decryptText(body.userId) | |
}; |
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 | |
# Settings: edit these as needed | |
PROJECT_NAME="test" | |
OUTPUT_DIRECTORY="~/Documents/MapBox/export/" | |
# first change into TileMill code directory | |
cd /Applications/TileMill.app/Contents/Resources/ | |
# hint: use http://bboxfinder.com/ to get bounds in lon/lat |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>Geo API Performance Test</title> | |
<style type="text/css"> | |
html { height: 100% } | |
body { height: 100%; margin: 5px; } | |
#mapDiv { width: 800px; height: 500px; } | |
</style> |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>Test</title> | |
<style type="text/css"> | |
html { height: 100% } | |
body { height: 100%; margin: 5px; } | |
#mapDiv { width: 800px; height: 500px; } | |
</style> |
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
-(NSDictionary*)showBBOX:(id)arg | |
{ | |
ENSURE_SINGLE_ARG(arg,NSObject); | |
__block NSDictionary *myDict; | |
TiThreadPerformOnMainThread(^{ | |
//myDict = [(ComMekansalGmapiosView*)[self view] showBBOX]; | |
_globalDict = [(ComMekansalGmapiosView*)[self view] showBBOX]; | |
//NSLog(@"myDict : %@", [myDict description]); |
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
/** | |
* Circular Tooltip (SO) | |
* http://stackoverflow.com/q/13132864/1397351 | |
*/ | |
* { margin: 0; padding: 0; } | |
body { | |
overflow: hidden; | |
background: url(http://theearlcarlson.com/experiments/amTooltip/img/bg.jpg); | |
} | |
/* generic styles for button & circular menu */ |
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
var MKN = {}; | |
MKN.Globals = {}; | |
MKN.Map.startMapping = function () { | |
var baseMapJson = { | |
tilejson: '1.0.0', | |
scheme: 'xyz', | |
tiles: ['http://10.211.55.2/_temp_service/tiles/basemap/{z}/{x}/{y}.png'] | |
}; |