-
Kurulumlar:
- Visual Studio Code
- Git
- Postman
- NodeJS
- Visual Studio Code için Python Extension'u kurun.
-
Programlama Görevi:
2000 ile 3200 arasında 7'ye bölünebilen ancak 5'in katı olmayan sayıları bulan bir program yazın.
| docker save $(docker images | sed '1d' | awk '{print $1 ":" $2 }') -o allinone.tar | |
| docker load -i allinone.tar |
Kurulumlar:
Programlama Görevi:
2000 ile 3200 arasında 7'ye bölünebilen ancak 5'in katı olmayan sayıları bulan bir program yazın.
| package paginator | |
| import ( | |
| "context" | |
| "database/sql" | |
| "errors" | |
| "github.com/uptrace/bun" | |
| "math" | |
| ) |
| CREATE SEQUENCE public.global_id_seq; | |
| ALTER SEQUENCE public.global_id_seq OWNER TO postgres; | |
| CREATE OR REPLACE FUNCTION public.id_generator() | |
| RETURNS bigint | |
| LANGUAGE 'plpgsql' | |
| AS $BODY$ | |
| DECLARE | |
| our_epoch bigint := 1314220021721; | |
| seq_id bigint; |
| // Downloading a static resource, already saved to disk | |
| @GetMapping(value = "/") | |
| public ResponseEntity download() throws IOException { | |
| var file = new File("/path/to/file"); | |
| var header = new HttpHeaders(); | |
| header.add(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=" + file.getName()); // you can use any name you want here | |
| header.add("Cache-Control", "no-cache, no-store, must-revalidate"); | |
| header.add("Pragma", "no-cache"); | |
| header.add("Expires", "0"); |
| SELECT to_date('01/01/1900','DD/MM/YYYY') + NUMBER_OF_DAYS - 2 FROM DUAL | |
| select * from INF_LR_POOL WHERE REGEXP_LIKE(POOL_ONAIR_DATE, '\d{5}') | |
| UPDATE INF_UR_POOL SET POOL_ONAIR_DATE = to_char(to_date('01/01/1900','DD/MM/YYYY') + POOL_ONAIR_DATE - 2, 'YYYY-MM-DD')WHERE REGEXP_LIKE(POOL_ONAIR_DATE, '\d{5}') |
| import React, { Component } from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { Modal, Input, Form } from 'antd'; | |
| const FormItem = Form.Item; | |
| const { TextArea } = Input; | |
| const formItemLayout = { | |
| wrapperCol: { | |
| span: 25 |
| REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters\ /v AllowEncryptionOracle /t REG_DWORD /d 2 |
| import Papa from 'papaparse'; | |
| import { saveAs } from 'file-saver/FileSaver'; | |
| export default async ({ payload, filename }) => { | |
| saveAs( | |
| new Blob([Papa.unparse(payload)], { type: 'text/plain;charset=utf-8' }), | |
| `${filename}.csv` | |
| ); | |
| }; |
| // true-type-of.js | |
| export const trueTypeOf = input => Object.prototype.toString.call(input) | |
| .replace(/(\[object |\])/ig, '') | |
| .toLowerCase(); |