Skip to content

Instantly share code, notes, and snippets.

View shashisp's full-sized avatar
🎯
Focusing

Shashi shashisp

🎯
Focusing
View GitHub Profile
@shashisp
shashisp / gallery.html
Created October 21, 2016 07:58
gallery
Introduction to machine learning
http://nptel.ac.in/courses/106106139/
Restangular -for REST
angular animations
authenication with DRF - http://richardtier.com/2014/03/15/authenticate-using-django-rest-framework-endpoint-and-angularjs/
Angular UI router
http://stackoverflow.com/questions/22175980/angular-ui-router-multiple-views
<Response>
<Speak>Please wait while you call is being transferred.</Speak>
</Response>
@shashisp
shashisp / forward.xml
Last active September 28, 2015 21:28
<Response>
<Dial callerId="888-976-6197">
<User>sip:yoda12312312@phone.plivo.com</User>
</Dial>
</Response>
s = raw_input().split(',')
s = map(int, s)
max_sum = 0
max_so_far = 0
left_i = 0
right_i = 0
#check all elements in the given list are positive
m, n = raw_input().split()
m = int(m)
n = int(n)
e_list = []
e_list = raw_input().split()
combination = [(e_list[i],e_list[j]) for i in range(len(e_list)) for j in range(i+1, len(e_list))]
difference = []
n = int(raw_input())
stack = []
def push(element):
stack.append(element)
return element
def pop():
{
"fields": [
{
"id": "a",
"label": "STATE/UT",
"type": "string"
},
{
"id": "b",
"label": "DISTRICT",
@shashisp
shashisp / gmaps-heatmap.js
Created March 21, 2015 15:14
gmaps-heatmap.js
/*
* heatmap.js gmaps overlay
*
* Copyright (c) 2014, Patrick Wied (http://www.patrick-wied.at)
* Dual-licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and the Beerware (http://en.wikipedia.org/wiki/Beerware) license.
*/
function HeatmapOverlay(map, cfg){
this.setMap(map);