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 / 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({
@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 / googlemapsThemes.js
Created May 24, 2014 20:07
some colorful themes for google maps
var themeArray = {
"snazzy": [
{"featureType": "water", "elementType": "geometry", "stylers": [
{"color": "#333739"}
]},
{"featureType": "landscape", "elementType": "geometry", "stylers": [
{"color": "#2ecc71"}
]},
{"featureType": "poi", "stylers": [
{"color": "#2ecc71"},
@salimkayabasi
salimkayabasi / flash-all.bat
Created July 13, 2015 22:40
hammerhead-HHZ12h
PATH=%PATH%;"%SYSTEMROOT%\System32"
adb reboot bootloader
fastboot flash bootloader bootloader-hammerhead-HHZ12h.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash radio radio-hammerhead-M8974A-2.0.50.2.26.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash recovery recovery.img
fastboot flash boot boot.img
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
});
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ş'
}
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;
@salimkayabasi
salimkayabasi / phantomjs_intaller.sh
Last active February 19, 2016 13:24 — forked from wbotelhos/phantomjs_intaller.sh
Installing PhantomJS 2.1.1 on Ubuntu x64/x86
#!/bin/bash
sudo apt-get remove phantomjs
sudo unlink /usr/local/bin/phantomjs
sudo unlink /usr/local/share/phantomjs
sudo unlink /usr/bin/phantomjs
cd /usr/local/share
@salimkayabasi
salimkayabasi / remove-apps.bat
Last active October 18, 2016 05:58
how to get rid of windows 10 apps
Get-AppxPackage *3dbuilder* | Remove-AppxPackage
Get-AppxPackage *windowsalarms* | Remove-AppxPackage
Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage
Get-AppxPackage *windowscamera* | Remove-AppxPackage
Get-AppxPackage *officehub* | Remove-AppxPackage
Get-AppxPackage *skypeapp* | Remove-AppxPackage
Get-AppxPackage *getstarted* | Remove-AppxPackage
Get-AppxPackage *zunemusic* | Remove-AppxPackage
Get-AppxPackage *windowsmaps* | Remove-AppxPackage
Get-AppxPackage *solitairecollection* | Remove-AppxPackage
@salimkayabasi
salimkayabasi / .gitignore
Created August 22, 2017 09:34
common .gitignore configuration
.idea/
config/runtime.*
config/*.json
jest/
build/
dist/
### Windows template
# Windows thumbnail cache files
Thumbs.db