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 / .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
@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 / 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
# credit: http://haacked.com/archive/2014/07/28/github-flow-aliases/
[user]
email = salim.kayabasi@gmail.com
name = Salim KAYABASI
[core]
autocrlf = input
# editor = 'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin
editor = /Applications/Sublime\\ Text.app/Contents/SharedSupport/bin/subl -n -w
eol = lf
[color]
@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"},
window.mobilecheck = function() {
var check = false;
(function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v
@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;