Skip to content

Instantly share code, notes, and snippets.

Kaoussi Souhail kaoussi

Block or report user

Report or block kaoussi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Config.js
const Config = {
url: 'http://localhost:9001'
};
export default Config;
View mpc.py
#!/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
View post.js
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');
View index.html
<!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">
View routes.rb
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'
View profiles_controller.rb
class ProfilesController < ApplicationController
layout "layout_2"
before_action :authenticate_user!
before_action :set_profile, only: [:show, :edit, :update, :destroy]
def new
You can’t perform that action at this time.