Skip to content

Instantly share code, notes, and snippets.

View amelieykw's full-sized avatar

amelieykw amelieykw

  • Sophia Antipolis, France
View GitHub Profile
@amelieykw
amelieykw / 00 - Table of Contents.md
Last active July 12, 2018 18:33
[Python - Variables] #Variables #Python #GeeksforGeeks
  1. Variables, Expressions & Functions
  2. Maximum possible value of an integer
  3. Transpose a matrix in Single line
  4. Global and Local Variables
  5. Partial Functions
  6. Packing and Unpacking Arguments
  7. end parameter
  8. Type Conversion
  9. Byte objects vs Strings
@amelieykw
amelieykw / 01 - 第一节: html 表单+Django.md
Last active July 12, 2018 16:38
[Django Forms 表单] #表单 #Django #forms

有时候我们需要在前台用 get 或 post 方法提交一些数据,所以自己写一个网页,用到 html 表单的知识。

第一节:

比如写一个计算 a和 b 之和的简单应用,网页上这么写

  1. 把这些代码保存成一个index.html,放在 templates 文件夹中。
<!DOCTYPE html>
@amelieykw
amelieykw / 00 - Table of Contents.md
Last active July 12, 2018 15:31
[AJAX 教程] #Ajax #Javascript #异步 #asynchronous

AJAX = Asynchronous JavaScript and XML(异步的 JavaScript 和 XML)。

AJAX 不是新的编程语言,而是一种使用现有标准的新方法。

AJAX 是与服务器交换数据并更新部分网页的艺术,在不重新加载整个页面的情况下。

@amelieykw
amelieykw / 00 - HTTP 教程.md
Last active July 12, 2018 13:04
[HTTP 教程] #HTTP #GET #POST

HTTP协议(HyperText Transfer Protocol,超文本传输协议)是因特网上应用最为广泛的一种网络传输协议,所有的WWW文件都必须遵守这个标准。

HTTP是一个基于TCP/IP通信协议来传递数据(HTML 文件, 图片文件, 查询结果等)。

内容列表

  • HTTP 简介
    • 本章节介绍了HTTP协议。
  • HTTP 消息结构
    • 本章节介绍了HTTP消息结构
  • HTTP 方法
@amelieykw
amelieykw / 00 - Table of Contents.md
Last active July 8, 2022 13:14
[Django - Forms] #forms #django #GET # POST
  • Working with forms
    • HTML forms
      • GET and POST
    • Django’s role in forms
    • Forms in Django
      • The Django Form class
      • Instantiating, processing, and rendering forms
    • Building a form
      • The work that needs to be done
  • Building a form in Django
@amelieykw
amelieykw / 00 - Table of Content.md
Last active July 17, 2018 13:37
[Django - Models] #Django #Models
  • Models
    • Fileds
    • Meta options
    • Model attributes
    • Model methods
    • Model inheritance
  • Making queries
  • Aggregation
  • Search
  • Managers
@amelieykw
amelieykw / 00 - Data Types And Operators.md
Last active July 15, 2018 16:05
[Python Tutorial] #Python

Welcome to this lesson on Data Types and Operators! You'll learn about:

  • Data Types: Integers, Floats, Booleans, Strings, Lists, Tuples, Sets, Dictionaries
  • Operators: Arithmetic, Assignment, Comparison, Logical, Membership, Identity
  • Built-In Functions, Compound Data Structures, Type Conversion
  • Whitespace and Style Guidelines

Type Conversion in Python

Python defines type conversion functions to directly convert one data type to another.

  1. int(a,base) : This function converts any data type to integer. ‘Base’ specifies the base in which string is if data type is string.
@amelieykw
amelieykw / 00 - Basic.md
Last active May 27, 2024 18:42
[Java Interview Preparation] #java #interview
  1. Java Identifiers
  2. Data types
  3. How to define our own data type in java(enum)
  4. Variables
  5. Scope of Variables
  6. Loops in Java(Practice)
  7. For-each loop in Java
  8. For Loop in Java | Important points
  9. Decision Making(if, if-else, switch, break, continue, jump)(Practice)
  10. Switch Statement in Java(Practice)
@amelieykw
amelieykw / EOF.java
Created June 25, 2018 19:53
[Java End-Of-File || StdIn && StdOut] #Java #End-Of-File #EOF #StdIn #StdOut #Hackerrank
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
Scanner scan = new Scanner(System.in);
int lineNb = 0;
while(scan.hasNext()){
@amelieykw
amelieykw / 00 - Django Documentation.md
Last active July 5, 2018 12:46
[Django project in MS visual studio 2017]#django #VisualStudio2017 #MySQL #python

Django at a glance

"How to write a database-driven Web app with Django?"

workflow:

  1. create models
  2. get admin sites up and running asap
  3. your staff(or client) can start populating data
  4. develop the way data is presented to the public

01 - Design your model