### GET POSTS // get some post from json placeholder GET https://jsonplaceholder.typicode.com/posts
### DEFAULT GET https://jsonplaceholder.typicode.com/posts
### POST POST https://jsonplaceholder.typicode.com/posts Content-Type: application/json
// you will learn | |
// error compilations types | |
console.log("hello world"); | |
// Types | |
// string | |
let myString:string; | |
myString = "Hello" + "World"; | |
myString = myString.slice(0,3); |
call plug#begin('~/.vim/plugged') | |
" General Plugins | |
Plug 'scrooloose/nerdtree' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'sheerun/vim-polyglot' | |
Plug 'jiangmiao/auto-pairs' | |
" Themes |
import { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule } from '@angular/core'; | |
import { AppComponent } from './app.component'; | |
//Angular Material Components | |
import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; | |
import {MatCheckboxModule} from '@angular/material'; | |
import {MatButtonModule} from '@angular/material'; |
import discord | |
from discord.ext import commands | |
import datetime | |
from urllib import parse, request | |
import re | |
bot = commands.Bot(command_prefix='>', description="This is a Helper Bot") | |
@bot.command() |
from flask import Flask, request | |
from flask_restful import Resource, Api | |
from sqlalchemy import create_engine | |
from flask_jsonpify import jsonify | |
db_connect = create_engine('sqlite:///database.db') | |
app = Flask(__name__) | |
api = Api(app) | |
class Sellers(Resource): |
const request = require('request-promise'); | |
const cheerio = require('cheerio'); | |
const fs = require('fs-extra'); | |
const writeStream = fs.createWriteStream('quotes.csv'); | |
async function init() { | |
try { | |
// const response = await request('http://quotes.toscrape.com/'); | |
const $ = await request({ |
### GET POSTS // get some post from json placeholder GET https://jsonplaceholder.typicode.com/posts
### DEFAULT GET https://jsonplaceholder.typicode.com/posts
### POST POST https://jsonplaceholder.typicode.com/posts Content-Type: application/json
pragma solidity ^0.8.6; | |
contract TaskCrud { | |
struct Task { | |
uint id; | |
string name; | |
string description; | |
} | |
version: "3.8" | |
services: | |
postgres: | |
image: postgres | |
restart: always | |
environment: | |
- DATABASE_HOST=127.0.0.1 | |
- POSTGRES_USER=root | |
- POSTGRES_PASSWORD=root |
import puppeteer from "puppeteer"; | |
async function openWebPage() { | |
const browser = await puppeteer.launch({ | |
headless: false, | |
slowMo: 200, | |
}); | |
const page = await browser.newPage(); | |
await page.goto("https://www.example.com"); | |
await browser.close(); |