Skip to content

Instantly share code, notes, and snippets.

@alperdincer
alperdincer / add-row-controller
Created January 20, 2021 12:51
Oracle delay problems
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)
};
#!/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
@alperdincer
alperdincer / olv2_perf_test
Created August 29, 2013 11:41
Geo API test code for vector features.
<!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>
@alperdincer
alperdincer / gist:6364139
Created August 28, 2013 09:34
OpenLayers v3 feature adding to vector layer - test
<!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>
@alperdincer
alperdincer / gist:5677483
Created May 30, 2013 12:28
Return BBOX proxy
-(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]);
@alperdincer
alperdincer / dabblet.css
Created April 30, 2013 13:45 — forked from anonymous/dabblet.css
Circular Tooltip (SO)
/**
* 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 */
@alperdincer
alperdincer / wax_leaflet
Created February 20, 2012 06:56
Leaflet and Wax on Multiple Layer Interaction problem with IE 7 and 8
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']
};