Code Monkey home page Code Monkey logo

Alex Sylvain Luenga's Projects

-display_user_profile.py icon -display_user_profile.py

write a module in C (call it user_profile.c) that call your python script in Question 1. ref: https://docs.python.org/3/c-api/call.html It will need 2 functions: void init_user_profile(void) display a “user profile icon” and the necessary javascript to do the right thing when you click it. So this function needs to printf the following HTML code: • an iframe html tag inside a wrapper div block with style “visibility = hidden” • a div tag containing a svg user profile icon add an “onclick” event to the div that will: ◦ change iframe’s src = ‘app.cgi?viewid=1000&mode=0’ ◦ change the wrapper div block’s visibility = visible have this init function print out any javascript functions or styles that you want to do this void display_user_profile(const int userid) this function will get called by the main routine for viewid=1000....assume all of this exists – it will call your function and pass you the userid of the current users that is logged in. this function must then call your python routine (in question 1) to display the html that will be included in the iframe. Obviously, there is a lot of stuff missing, so your C code will not compile. The question is really to see that you have the ability to interface with a python script in C, and that you have a decent understanding of web front end technologies (ie html, javascript, css etc..) and most importantly, your style of programming

backend_python_flask_json icon backend_python_flask_json

Simplex task to exercice with Python Api link is also given for example if you want to code with a different language

baltimo.php icon baltimo.php

This was my last year projection from my National Diploma NQL 6

birtdaywish icon birtdaywish

Realm Digital Simple Practical Assessment Intermediate Developer

flutter_lotto icon flutter_lotto

GDSC HUFS Flutter Session - Lotto number random generator by Flutter

front_end_assessment_student_profiles icon front_end_assessment_student_profiles

The goal of this assessment is to replicate the frontend application below as close as possible. You are allowed to use any frontend framework (React.js, Vue.js, etc.) or use plain Javascript, HTML, and CSS. We recommend using a frontend framework as the later parts of the assessment will be very difficult without it.

jinja2_template_file.py icon jinja2_template_file.py

You can use any database driver that you are familiar with. Assume the a users table is already defined, something along the lines of: USERID INTEGER Not Null NAME VARCHAR(30) Not Null EMAIL VARCHAR(50) Not Null LOGINID VARCHAR(15) Not Null PASSWD VARCHAR(15) Not Null USERTYPE SMALLINT Not Null Write a jinja2 template file that generates an HTML input form that will allow the user to update their own profile details. It must display their current record, and allow them to modify just their: name email and/or update their password The current password is encrypted so it will be the only field that you will not be able to display the current value.. but if something is returned then you will crypt that and save it Set the form’s action to “app.cgi?viewid=1000&mode=1” and the method = POST Then write a python module called profile.py, with the following inputs to render this jinja2 template. Userid (integer) Mode (integer) based on the MODE, it will either fetch the current user’s record from the database, or update the current user’s record with the supplied inputs from the form. Your python module needs to supply valid HTML output.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.