This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const { getPartnersWithinRange } = require("./util2"); | |
const partnersJson = require("./partners.json"); | |
const partners = JSON.parse(JSON.stringify(partnersJson)); | |
console.log(getPartnersWithinRange(partners)); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
var wg sync.WaitGroup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/gin-gonic/gin" | |
) | |
func middleware() gin.HandlerFunc { | |
return func(c *gin.Context) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html ⚡> | |
<head> | |
<meta charset="utf-8"> | |
<title>{{$story->title}} | {{env('APP_NAME')}}</title> | |
<meta name="description" content="{{$story->title}}. Discover travel trends around the Middle East."> | |
<meta name="keywords" content="travel, adventures, Hiking, Abseiling, Caving, Air Balloon, Camping, Expeditions, Discover travel trends around the Middle East"> | |
<meta name="author" content="Seif Elmughrabi"> | |
<link rel="canonical" href="{{env('APP_URL')}}/story/{{$story->slug}}"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<v-alert type="success" dismissible v-model="newUserSuccess"> | |
Success | |
</v-alert> | |
<v-alert type="error" dismissible v-model="newUserFail"> | |
Failed | |
</v-alert> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Activity; | |
use App\Like; | |
use Auth; | |
use App\Http\Resources\Like as LikeResource; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const {dialogflow, Image, Carousel, BasicCard, Button, LinkOutSuggestion} = require('actions-on-google'); | |
const functions = require('firebase-functions'); | |
// Different "Intents" or "purposes" to be fullfilled | |
const WELCOME_INTENT = 'Default Welcome Intent'; | |
const TRIPS_INTENT = 'find_trips'; | |
const TRIP_INTENT = 'trip_details'; |