Use Python to:
- send a plain text email
- send an email with attachment
- receive and filter emails according to some criteria
Use Python to:
| [PHP] | |
| ;;;;;;;;;;;;;;;;;;; | |
| ; About php.ini ; | |
| ;;;;;;;;;;;;;;;;;;; | |
| ; PHP's initialization file, generally called php.ini, is responsible for | |
| ; configuring many of the aspects of PHP's behavior. | |
| ; PHP attempts to find and load this configuration from a number of locations. | |
| ; The following is a summary of its search order: |
| import java.text.SimpleDateFormat | |
| import java.util.* | |
| /** | |
| * Pattern: yyyy-MM-dd HH:mm:ss | |
| */ | |
| fun Date.formatToServerDateTimeDefaults(): String{ | |
| val sdf= SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault()) | |
| return sdf.format(this) |
| server { | |
| listen 80 default_server; | |
| server_name pasti.id; | |
| root /usr/share/nginx/html; | |
| index index.html; | |
| location ~ ^/(css|js)/ { | |
| expires max; |
| version "3" | |
| sites: | |
| image: nginx:1.15.8-alpine | |
| restart: always | |
| working_dir: /usr/share/nginx/html | |
| ports: | |
| - "2000:80" | |
| volumes: | |
| - ./proxy.conf:/etc/nginx/conf.d/default.conf |
| { | |
| "workbench.startupEditor": "none", | |
| "window.zoomLevel": -2, | |
| "editor.multiCursorModifier": "ctrlCmd", | |
| "javascript.updateImportsOnFileMove.enabled": "always", | |
| "terminal.integrated.rendererType": "dom", | |
| "editor.minimap.enabled": false, | |
| "workbench.panel.defaultLocation": "right", | |
| "workbench.editor.tabCloseButton": "right", | |
| "terminal.integrated.cursorStyle": "underline", |
| class Brankas { | |
| unlock(key) { | |
| const keys = key.split('') | |
| let turned = 0, | |
| lastPosition = 0, | |
| isForward = true; | |
| for (let i in keys) { | |
| // Key less than last position and is forward, turnaround backward | |
| // Or key greater than last position and is turnaround before, turned again forward |
| class Clock { | |
| currentPosition(code) { | |
| // Split the code to array of char | |
| const codes = code.split('') | |
| // Initiate some variables | |
| let isMove = false, | |
| position = 60, | |
| currentCode = ''; |