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"]); | |
}); | |
?> |
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
$(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
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
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
/* | |
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 MongoClient = require('mongodb').MongoClient; | |
// Connection URL | |
var url = 'mongodb://localhost:27017/myproject'; | |
// Use connect method to connect to the Server | |
MongoClient.connect(url, function(err, db) { | |
console.log("Connected correctly to server"); | |
db.createCollection("gevsek"); |
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
/* React */ | |
import React, { Component } from 'react'; | |
import { | |
AppRegistry, | |
StyleSheet, | |
Text, | |
View, | |
Image, | |
Dimensions, | |
TextInput, |
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
apply plugin: "com.android.application" | |
import com.android.build.OutputFile | |
/** | |
* The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets | |
* and bundleReleaseJsAndAssets). | |
* These basically call `react-native bundle` with the correct arguments during the Android build | |
* cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the |
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> | |
<body> | |
<!-- Countly Web SDK Initialization --> | |
<script type="text/javascript"> | |
// Some default pre init | |
var Countly = {}; | |
Countly.q = Countly.q || []; | |
// Provide your app key that you retrieved from Countly dashboard |
OlderNewer