Skip to content

Instantly share code, notes, and snippets.

View salimkayabasi's full-sized avatar
🎯
Representy ⚡️

Salim KAYABASI salimkayabasi

🎯
Representy ⚡️
View GitHub Profile
@salimkayabasi
salimkayabasi / googleMapMarkerAnimate.js
Created May 15, 2014 20:27
Easyway to animate google map marker -jqeuery required for easing-
google.maps.Marker.prototype.animateTo = function (newPosition, options) {
defaultOptions = {
duration: 1000,
easing: 'linear',
complete: null
}
options = options || {};
// complete missing options
for (key in defaultOptions) {
@salimkayabasi
salimkayabasi / googleMapsDrawRouteStepByStep.js
Created May 15, 2014 20:26
Draw route step by step on Google Maps
setTimeout(function () {
Map.zoomOut(1)
if (!canRate) {
Map.travelRoute({
origin: origin,
destination: destination,
travelMode: 'walking',
step: function (e) {
setTimeout(function () {
Map.drawPolyline({
String uri = "http://api.easysocket.io";
//Do not forget to assign your private key
String privateKey="";
String parameters ="privateKey="+privateKey+"data=Hello World!";
var req = WebRequest.Create(uri);
req.ContentType = "application/x-www-form-urlencoded";
req.Method = "POST";
var bytes = Encoding.ASCII.GetBytes(parameters);
req.ContentLength = bytes.Length;
module.exports = {
consumer_key : 'consumer_key',
consumer_secret : 'consumer_secret',
access_token_key: 'access_token_key',
access_token_secret : 'access_token_secret',
track : 'galatasaray,fenerbahçe,beşiktaş'
}
var Stream = require('../index.js');
var conf = require('./config')
var stream = new Stream({
consumer_key:conf.consumer_key,
consumer_secret:conf.consumer_secret,
access_token_key:conf.access_token_key,
access_token_secret:conf.access_token_secret,
track:conf.track
});