-
Easy Lunch est une start up créée par les frères DEL PIANO
-
Ils ont déjà une application mobile existante et nous ont contacté pour réaliser un site web qui reprend les mêmes fonctionnalités que l'application mobile avec en plus, une partie Administration pour pouvoir gérer les contenus du site, adaptable à tout type d'écran
Le but du jeu est d'arriver à arrêter la génération de déchets et réduire le nombre total de déchets à zéro. Pour y arriver, il faut d'abord cliquer sur le déchet afin de gagner des points d'actions ; ces points d'actions sont ensuite utilisés pour acheter des actions qui augmentent le nombre de déchets ramassés ou qui diminuent la génération de déchets selon l'action utilisée. Le pouvoir de ces actions peut être maximisé en achetant les powers-ups associés à celles-ci.
Compteurs (de droite à gauche) :
- Total déchets : nombre de déchets total / Compteur principal à ramener à zéro.
This file contains hidden or 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
import express from 'express'; | |
import passport from 'passport'; | |
import bcrypt from 'bcrypt'; | |
import jwt from 'jsonwebtoken'; | |
import { Strategy as LocalStrategy } from 'passport-local'; | |
import { ExtractJwt, Strategy as JwtStrategy } from 'passport-jwt'; | |
import connexion from './conf'; | |
const router = express.Router(); |
This file contains hidden or 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
import React from 'react'; | |
import { Redirect, Route } from 'react-router-dom'; | |
const PrivateRoute = ({ component: Component, token, ...propsRoute }) => ( | |
<Route | |
{...propsRoute} | |
render={props => ( | |
token !== '' | |
? <Component {...props} /> | |
: ( |
This file contains hidden or 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
import { combineReducers } from 'redux'; | |
import { createStore } from 'redux'; | |
// create reducer 1 | |
const is1 = 0; | |
const red1 = (state = is1, action) => { | |
switch(action.type) { | |
default: return state; | |
} | |
}; |
This file contains hidden or 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
import React, { Component } from 'react'; | |
import Webcam from 'react-webcam'; | |
class Photo extends Component { | |
constructor(props) { | |
super(props); | |
this.webcam = React.createRef(); | |
this.state = { | |
takePicture: false, | |
images: [], |
This file contains hidden or 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
CREATE TABLE `movie` ( | |
`id` int(11) NOT NULL, | |
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, | |
`poster` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', | |
`comment` varchar(1500) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; | |
ALTER TABLE `movie` ADD PRIMARY KEY (`id`); | |
ALTER TABLE `movie` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; |
This file contains hidden or 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
onChange(files){ | |
const f = files[0]; | |
var reader = new FileReader(); | |
reader.onload = (function(theFile) { | |
return function(e) { | |
const data = e.target.result; | |
const lines = data.split("\n"); | |
const headers = lines[0].split(","); | |
lines.shift(); | |
const result = []; |
This file contains hidden or 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>Javascripting</title> | |
</head> | |
<body> |
This file contains hidden or 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 script'; | |
class Monster { | |
constructor(options = {}) { | |
this.health = 100; | |
this.name = options.name; | |
} | |
soigner() { |
NewerOlder