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
/* | |
Import dependencies | |
*/ | |
// input output stream library | |
#include <iostream> | |
// string library for get line as a string from file | |
#include <string> | |
// included for streaming validate function | |
#include <sstream> |
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 plugin = {}, | |
common = require('../../../api/utils/common.js'), | |
countlyCommon = require('../../../api/lib/countly.common.js'), | |
plugins = require('../../pluginManager.js'); | |
(function (plugin) { | |
function getPeriodObj(params) { | |
params.qstring.period = params.qstring.period || "month"; | |
if (params.qstring.period && params.qstring.period.indexOf(",") !== -1) { |
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
header("Content-type: text/xml; charset=utf-8"); | |
if($_POST) { | |
$x = $_POST['x']; | |
$y = $_POST['y']; | |
$response = '<?xml version="1.0" encoding="utf-8"?>'; | |
$response .= '<response><x>'.$x.'</x>'; | |
$response .= '<y>'.$y.'</y></response>'; | |
echo $response; |
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
$(function() { | |
function init5() { | |
$('#bes').draggable({ | |
cursor: 'move', | |
containment: 'document', | |
stop: handleDragStop | |
}); | |
} | |
function handleDragStop(event, ui) { |
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
module.exports = function (date) { | |
var year = date.substr(0,4); | |
var month= date.substr(5,2); | |
var day = date.substr(8,2); | |
var h = date.substr(11,2); | |
var m = date.substr(14,2); | |
var s = date.substr(17,2); | |
return day + "/" + month + "/" + year + " " + h + ":" + m + ":" + s; | |
} |
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 | |
// As they have come, so they will go. | |
// - Kemal Ataturk, Istanbul, 13 Nov 1918 | |
$app->get('/occupy-bosphorus', function() use ($ataturk) { | |
$ataturk->redirect($_SERVER["HTTP_REFERER"]); | |
}); | |
?> |
NewerOlder