Skip to content

Instantly share code, notes, and snippets.

module.exports = function(config) {
var _ = require('lodash');
var express = require('express');
var router = express.Router();
var path = require('path');
var fs = require('fs');
var pagespeed = require('../pagespeed');
__dirname = __dirname.replace('routes','');
angular.module('starter', ['ionic', 'starter.controllers'])
.run(function($ionicPlatform) {
$ionicPlatform.ready(function($cordovaStatusbar) {
$cordovaStatusbar.overlaysWebView(true);
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard for form inputs)
if (window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
<ion-side-menus enable-menu-with-back-views="false">
<ion-side-menu-content>
<ion-nav-bar class="bar-positive">
<ion-nav-back-button class="button-clear">
<i class="ion-arrow-left-c"></i>
</ion-nav-back-button>
<ion-nav-buttons side="left">
<button class="button button-icon button-clear fa fa-bars" menu-toggle="left">
</button>
var loadPrices = function(url) {
var popularHotels = document.querySelectorAll('.flex-card');
$.get(url, function(data) {
var hotels = data;
var map = {};
var foundHotels = [];
_.each(popularHotels, function(hotel, index) {
var id = hotel.dataset.hotel;
var loadPrices = function(url) {
var popularHotels = document.querySelectorAll('.flex-card');
$.get(url, function(data) {
var hotels = data;
var map = {};
var foundHotels = [];
_.each(popularHotels, function(hotel, index) {
var id = hotel.dataset.hotel;
module.exports = function(config) {
var _ = require('lodash');
var express = require('express');
var router = express.Router();
var path = require('path');
var fs = require('fs');
var publicDir = __dirname + './public'
var regions = {
{
title: "Cancun",
id: "d179995,
fullTitle: "Cancun, Quintana Roo",
descriptionTitle: "Step back in time",
descriptionBlurb: "Famed for its ancient origins as much as its current-day bustle, Cancun's Mayan Ruins take in striking architecture, spectacular art, and culturally diverse structures. Between the 1980s and the present, Cancun has transformed itself from a jungle village into a diverse holiday resort comprising ancient relics and sandy beaches, and providing a haven for water sports fanatics and beach holidaymakers alike leaving you with many options of things to do in Cancun while you are enjoying your vacation. Buttressing south-east Mexico's coastline, this part of the Yucatan Peninsula contrasts Caribbean-facing luxury hotels in Cancun with bars and restaurants overlooking the romantic Nichupte Lagoon. Stay at all inclusive hotels, pick a Cancun resort, or stay at one of the hotels on the beach where locals are ready to pamper you. Book y
var app = angular.module('myApp', []).config(function($interpolateProvider){
// $interpolateProvider.startSymbol('{[{').endSymbol('}]}');
});
app.controller('AppController', ['$scope', function($scope) {
$scope.timeline = [
{
date: ''
personName: ''
profileUrl: ''
<div class="menu">
<div class="menu__hd">
<h4 class="menu__title u-flat">
Your staff
</h4>
<span class="menu__count">{{user.staff.length}}</span>
</div>
<div class="menu__body">
<div class="menu__group">
var express = require('express');
var router = express.Router();
var db = require('../db');
var fs = require('fs');
var staff = require('../controllers/staff/index.js');
var user = db.users[0];
router.get('/', function(req, res, next) {