Skip to content

Instantly share code, notes, and snippets.

View jawache's full-sized avatar

Asim Hussain jawache

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.2.4.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="http://www.parsecdn.com/js/parse-latest.js"></script>
</head>
<body>
/**
* Parse JavaScript SDK v1.8.5
*
* Copyright (c) 2015-present, Parse, LLC.
* All rights reserved.
*
* The source tree of this library can be found at
* https://github.com/ParsePlatform/Parse-SDK-JS
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
[
{
"id": "counter-cafe-london",
"phone": "+447834275920",
"review_count": 64,
"name": "Counter Cafe",
"is_claimed": true,
"mobile_url": "http://m.yelp.com/biz/counter-cafe-london?utm_campaign=yelp_api&utm_medium=api_v2_search&utm_source=01NP2O5ev6ILXe3KudfrHA",
"rating_img_url": "https://s3-media4.fl.yelpcdn.com/assets/2/www/img/c2f3dd9799a5/ico/stars/v1/stars_4.png",
"display_phone": "+44 7834 275920",
[
{
"name": "Manchester United FC",
"code": "MUFC",
"shortName": "ManU",
"squadMarketValue": "394,550,000 €",
"crestUrl": "http://upload.wikimedia.org/wikipedia/de/d/da/Manchester_United_FC.svg"
},
{
"name": "Tottenham Hotspur FC",
[
{
"name": "Kevin Wimmer",
"position": "Centre Back",
"jerseyNumber": 27,
"dateOfBirth": "1992-11-15",
"nationality": "Austria",
"contractUntil": "2020-06-30",
"marketValue": "7,500,000 €",
"teamCode": "THFC"
var app = angular.module('caffeinehit.services', []);
app.service("YelpService", function ($q, $http, $cordovaGeolocation, $ionicPopup) {
var self = {
'page': 1,
'isLoading': false,
'hasMore': true,
'results': [],
'lat': 51.544440,
'lon': -0.022974,
var asim =1;
// Does the below code add an event listener on the event capturing phase or the event bubbling phase?
(function () {
var y = i;
items[y].addEventListener("click", function (event) {
console.log(items[y], event);
});
})();
// Does this code add an event listener to the event capturing phase or the bubbling phase?
(function () {
var y = i;
items[y].addEventListener("click", function (event) {
console.log(items[y], event);
}, true);
})();
// What does the below code print out?
var Device = {
kind:"Music Player"
};
var AppleProduct = Object.create(Device, {
name: "iPod"
});
var purchase = Object.create(AppleProduct);