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 lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Backoffice</title> | |
</head> | |
<body> | |
<div class="flex-center position-ref full-height"> |
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 | |
/* ... */ | |
Route::get('/backoffice', function () { | |
return view('backoffice'); | |
}); | |
Route::get('/customers', function () { | |
return view('customers'); |
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
# coding: utf-8 | |
import nltk | |
from nltk.tag.stanford import StanfordNERTagger | |
# Optional | |
import os | |
java_path = "/usr/lib/jvm/java-8-oracle" | |
os.environ['JAVA_HOME'] = java_path |
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
# coding: utf-8 | |
import nltk | |
from nltk.tag.stanford import StanfordNERTagger | |
sentence = u"Twenty miles east of Reno, Nev., " \ | |
"where packs of wild mustangs roam free through " \ | |
"the parched landscape, Tesla Gigafactory 1 " \ | |
"sprawls near Interstate 80." |
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
# coding: utf-8 | |
import nltk | |
from nltk.tag.stanford import StanfordNERTagger | |
# Optional | |
import os | |
java_path = "/usr/lib/jvm/java-8-oracle" | |
os.environ['JAVA_HOME'] = java_path |
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
from flask import Flask, render_template | |
app = Flask(__name__) | |
@app.route('/my-movies') | |
def list_user_movies(): | |
return render_template('my-movies.html', page_title='My Movies') |
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> | |
<title>Movie Recommendation</title> | |
<div class=page> | |
<h1>{{ page_title }}</h1> | |
<Hello></Hello> | |
<ul> | |
No item for now | |
</ul> | |
</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
<template> | |
<div class="mdl-grid"> | |
<div class="mdl-cell mdl-cell--8-col"> | |
<div class="picture"> | |
<img :src="this.pictures[$route.params.id].url" /> | |
</div> | |
<div class="info"> | |
<span>{{ this.pictures[$route.params.id].info }}</span> | |
</div> | |
</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
<script> | |
import data from '../data' | |
export default { | |
methods: { | |
displayDetails (id) { | |
this.$router.push({name: 'detail', params: { id: id }}) | |
} | |
}, | |
data () { | |
return { |
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> | |
<div class="mdl-grid"> | |
<div class="mdl-cell mdl-cell--3-col mdl-cell mdl-cell--1-col-tablet mdl-cell--hide-phone"></div> | |
<div class="mdl-cell mdl-cell--6-col mdl-cell--4-col-phone"> | |
<div v-for="picture in this.pictures" class="image-card" @click="displayDetails(picture.id)"> | |
<div class="image-card__picture"> | |
<img :src="picture.url" /> | |
</div> | |
<div class="image-card__comment mdl-card__actions"> |