Skip to content

Instantly share code, notes, and snippets.

Sandesh Damkondwar sandeshdamkondwar

Block or report user

Report or block sandeshdamkondwar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sandeshdamkondwar
sandeshdamkondwar / tblcitylist.sql
Created Jan 20, 2017 — forked from gsivaprabu/tblcitylist.sql
MySQL database of Indian Cities and states,latitude and longitude..
View tblcitylist.sql
-- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Apr 08, 2013 at 02:48 PM
-- Server version: 5.5.27
-- PHP Version: 5.4.7
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
View wifiDance.sh
#!/bin/sh
let sleepTime="15*60";
while [ 1 ]
do
if [ $(( $RANDOM % 2)) == 0 ]
then
echo "switching to NTWRK1";
networksetup -setairportnetwork en1 {NTWRK_NAME} {NTWRK_PSWD}
else
@sandeshdamkondwar
sandeshdamkondwar / ES6 classes.js
Last active Sep 11, 2015
Future of javascript
View ES6 classes.js
class Coupon {
constructor(options) {
this.title = options.title;
this.desc = options.desc;
this.code = options.code;
this.link = options.link;
this.expiry = options.expiry;
}
}
View Interview Q's.txt
General Questions
=========================================================================================
Personal Workflow
1. What is a recent challenges you experienced and how did you solved those?
2. What tools you use in regular workflow?
3. If you jumped on a project and they used tabs and you used spaces, what would you do?
_________________________________________________________________________________________
Performance
View object.create.js
if (typeof Object.create != 'function') {
Object.create = (function() {
var Temp = function() {};
return function (prototype) {
if (arguments.length > 1) {
throw Error('2nd argument is not supported');
}
if (typeof prototype != 'object') {
throw TypeError('argument should be object');
View slice & splice.txt
array1 = [0,1,2,3,4,5,6]
[0, 1, 2, 3, 4, 5, 6]
array1.splice(2) -> default first argument is 0
[2, 3, 4, 5, 6]
array1
[0, 1]
----------------------------------------------------------------------------------------
View sublime tips.md

Edit opening and closing HTML tags simultaneously:

Cmd+Shift+K (on OS X) or Ctrl+Shift+’ (Windows and Linux) selects both tags for editing.

Ctrl + Shift + w

Wrap selection in

@sandeshdamkondwar
sandeshdamkondwar / tricks.js
Last active Aug 29, 2015
JavaScript tricks
View tricks.js
// Get a random number in a specific range
function randomInRange(max, min) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
// Get a random item from an array
function randomFromArray(items) {
return items[Math.floor(Math.random() * items.length)];
}
@sandeshdamkondwar
sandeshdamkondwar / custom.css
Last active Aug 29, 2015
Custom CSS for google.com (You can use stylebot extension like tool to apply this css rules, here goes a link for chrome extension https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha)
View custom.css
.gbqfif, .gbqfsf,li.g, body, html, .std, h1 {
font-family: "Open Sans";
}
.sbib_b {
padding: 3px 7px 0;
}
#rhs ._za.vk_pl {
padding-left: 0;
View google_plus.rb
module Jekyll
class GooglePlusEmbedTag < Liquid::Tag
@post = nil
@height = ''
@width = ''
def initialize(tag_name, markup, tokens)
if markup =~ /(https:\/\/plus.google.com\/\d+\/posts\/\w+)/i
@url = $1
You can’t perform that action at this time.