This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:collection'; | |
import 'package:flutter/material.dart'; | |
import 'package:provider/provider.dart'; | |
void main() { | |
runApp( | |
ChangeNotifierProvider( | |
create: (context) => ShoppingCartProvider(), | |
child: const MyApp(), |
Download flutter
tar xvf flutter_linux_1.17.5-stable.tar.xz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HIRE Me For Your Project Support :) | |
Telegram: https://t.me/LinuxGun | |
#!/bin/bash | |
# Completely Remove Apache Ubuntu | |
service apache2 stop | |
apt purge apache2 | |
apt remove apache2.* | |
apt autoremove | |
whereis apache2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.*; | |
public class markovChainsNames { | |
static ArrayList<String> names = new ArrayList<String>(); | |
static ArrayList<Integer> ncounts = new ArrayList<Integer>(); | |
static ArrayList<Integer> nlens = new ArrayList<Integer>(); | |
static int alphaLen = 27; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Logger { | |
sucesso(message) { | |
console.log(`SUCESSO: ${message}`) | |
} | |
error(message) { | |
console.error(`ERROR: ${message}`) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Code written by P. Gajland | |
* https://github.com/GaPhil | |
* | |
* IMPORTANT: | |
* This code is for educational and demonstrative purpose only. | |
* If you need to do serious encryption for "production" it is | |
* recommended to investigate more traditional libraries and | |
* gain some specific knowledge on cryptography and security. | |
*/ |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
NewerOlder