Skip to content

Instantly share code, notes, and snippets.

View albaqawi's full-sized avatar

Ahmed M Albaqawi albaqawi

  • KSA & Internet
View GitHub Profile
<script>
function initialize(rooms) {
var location = { lat: 99.99, lng: 99.99 }
if (rooms.length > 0) {
location = { lat: rooms[0].latitude, lng: rooms[0].longitude }
}
var map = new google.maps.Map(document.getElementById('map'),{
center: location,
{ "restaurants": [
{
"name":"Au Bon Pain",
"icon":"http://www.jcmenus.com/wp-content/uploads/2015/09/jcm-abp-logo.png",
@albaqawi
albaqawi / AppDetailController.swift
Created August 9, 2017 19:25
to debug AppDetailController.swift
//
// AppDetailController.swift
// THOAGbusiness
//
// Created by ALBAQAWI on 8/7/17.
// Copyright © 2017 THOAG. All rights reserved.
//
import Foundation
import UIKit
@albaqawi
albaqawi / firebase.service.ts
Created June 27, 2017 00:07
my proplisting code updates
import { Injectable } from '@angular/core';
import { AngularFireModule } from 'angularfire2';
import { AngularFireDatabaseModule } from 'angularfire2/database';
import { AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database';
import 'rxjs/add/operator/do';
@Injectable()
export class FirebaseService {
listings: FirebaseListObservable<any[]>;
// now this is called as a stand alone constructor