Download flutter
tar xvf flutter_linux_1.17.5-stable.tar.xz
| #!/bin/sh | |
| # script para instalar programas que ajudam no desempenho. | |
| echo "Esta de acordo em fazer o upgrade? (digite: ok e tecle enter se sim) " | |
| read certeza | |
| if [ "$certeza" = "ok" ] | |
| then | |
| sudo apt-get install zram-config -y | |
| sudo apt-get install preload -y | |
| sudo apt-get install prelink -y |
Download flutter
tar xvf flutter_linux_1.17.5-stable.tar.xz
| import 'dart:collection'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:provider/provider.dart'; | |
| void main() { | |
| runApp( | |
| ChangeNotifierProvider( | |
| create: (context) => ShoppingCartProvider(), | |
| child: const MyApp(), |
| import 'package:flutter/material.dart'; | |
| import 'package:shared_preferences/shared_preferences.dart'; | |
| //https://stackoverflow.com/a/53107519/10409567 | |
| void main() async { | |
| // load the shared preferences from disk before the app is started | |
| WidgetsFlutterBinding.ensureInitialized(); | |
| final prefs = await SharedPreferences.getInstance(); | |
| // create new theme controller, which will get the currently selected from shared preferences |
| var express = require('express'); | |
| var path = require('path'); | |
| var cookieParser = require('cookie-parser'); | |
| var logger = require('morgan'); | |
| var app = express(); | |
| app.use(logger('dev')); | |
| app.use(express.json()); | |
| app.use(express.urlencoded({ extended: false })); |
| const { payloads } = require('./payloads.json') | |
| const { Worker } = require('worker_threads') | |
| const LEADING_ZEROES = 4 | |
| const final = [] | |
| let finishedWorkers = 0 | |
| for (let payload of payloads) { | |
| const worker = new Worker('./worker.js', { env: { LEADING_ZEROES } }) | |
| worker.once('message', (message) => { |
| package main | |
| import "fmt" | |
| func main() { | |
| times := []string{"Corinthians", "Londrina", "Operário", "Leicester"} | |
| calendario := [][][]string{} | |
| lenTimes := len(times) | |
| lenTimes2 := lenTimes / 2 |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.