Skip to content

Instantly share code, notes, and snippets.

View charlesBochet's full-sized avatar

Charles Bochet charlesBochet

View GitHub Profile
<!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">
<?php
/* ... */
Route::get('/backoffice', function () {
return view('backoffice');
});
Route::get('/customers', function () {
return view('customers');
# 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
# 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."
# 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
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')
<!doctype html>
<title>Movie Recommendation</title>
<div class=page>
<h1>{{ page_title }}</h1>
<Hello></Hello>
<ul>
No item for now
</ul>
</div>
<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>
<script>
import data from '../data'
export default {
methods: {
displayDetails (id) {
this.$router.push({name: 'detail', params: { id: id }})
}
},
data () {
return {
<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">