Данная пошаговая инструкция поможет освоить основы на простом примере
Для справки
Сервер поднимался на Debian 8 c характеристиками:
CPU - 1 ядро x 500 МГц
| const mysql = require("mysql") | |
| const fs = require("fs") | |
| const json2csv = require("json2csv").Parser | |
| const connection = mysql.createConnection({ | |
| host: "localhost", | |
| user: "", | |
| password: "", | |
| database: "", | |
| }) |
| // Problem link: https://leetcode.com/problems/valid-parentheses/ | |
| const isValid = (string) => { | |
| // create a hashMap to store the valid match | |
| const bracketsMap = { | |
| '(': ')', | |
| '{': '}', | |
| '[': ']' | |
| } | |
| // create a stack data structure with array |
| import { ApolloServer } from "apollo-server-micro" | |
| import { schema } from "../../apollo/schema" | |
| const apolloServer = new ApolloServer({ | |
| schema, | |
| context: async (ctx) => { | |
| return ctx | |
| }, | |
| }) |
| export default () => ( | |
| <div> | |
| Hello world | |
| <p>scoped!</p> | |
| <style jsx>{` | |
| p { | |
| color: blue; | |
| } | |
| div { | |
| background: red; |
| import React from 'react'; | |
| let lastScrollY = 0; | |
| let ticking = false; | |
| class App extends React.Component { | |
| componentDidMount() { | |
| window.addEventListener('scroll', this.handleScroll); | |
| } |
| Для удаления файла из git-репозитория без его физического удаления: | |
| git rm --cached mylogfile.log | |
| Для удаления папки (рекурсивно) можно сделать так: | |
| git rm -r --cached folderName | |
| А для того, чтобы ситуация не повторялась, лучше добавьте файл или папку в .gitignore. |
| ###################################################################################### | |
| # GNU GCC ARM Embeded Toolchain base directories and binaries | |
| ###################################################################################### | |
| GCC_BASE = E:/Toolchains/GNU_GCC_ARM/4.7/ | |
| GCC_BIN = $(GCC_BASE)bin/ | |
| GCC_LIB = $(GCC_BASE)arm-none-eabi/lib/ | |
| GCC_INC = $(GCC_BASE)arm-none-eabi/include/ | |
| AS = $(GCC_BIN)arm-none-eabi-as | |
| CC = $(GCC_BIN)arm-none-eabi-gcc | |
| CPP = $(GCC_BIN)arm-none-eabi-g++ |
| using System; | |
| namespace NewApp | |
| { | |
| public class Program | |
| { | |
| static void Main() | |
| { | |
| } | |
| } |