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
| print "Hello, there!" |
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
| const Config = { | |
| url: 'http://localhost:9001' | |
| }; | |
| export default Config; |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Le Raspbery Pi envoie des messages à l'Arduino | |
| import serial # bibliothèque permettant la communication série | |
| import time # pour le délai d'attente entre les messages | |
| ser = serial.Serial('/dev/ttyACM0', 9600) | |
| compteur = 0 |
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
| const express = require('express'); | |
| const router = express.Router(); | |
| const mongoose = require('mongoose'); | |
| const passport = require('passport'); | |
| const Profile = require('../../models/Profile'); | |
| const User = require('../../models/User'); | |
| const validateProfileInput = require('../../validation/profile'); | |
| const validateExperienceInput = require('../../validation/experience'); |
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> | |
| <!-- | |
| Aesthetic by gettemplates.co | |
| Twitter: http://twitter.com/gettemplateco | |
| URL: http://gettemplates.co | |
| --> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
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
| Rails.application.routes.draw do | |
| devise_for :users, controllers: { registrations: 'users/registrations' } | |
| authenticated :user do | |
| root 'users#show', as: :authenticated_root | |
| end | |
| root to: 'welcome#index' |
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
| class ProfilesController < ApplicationController | |
| layout "layout_2" | |
| before_action :authenticate_user! | |
| before_action :set_profile, only: [:show, :edit, :update, :destroy] | |
| def new |