flutter create my_app |
flutter run |
This file contains 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
def loopRunner(loop,endChar): | |
s="" | |
for i in loop: | |
s+=">" | |
for j in range(0,i): | |
s+="+" | |
s+=endChar+"\n" | |
return s |
This file contains 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
function check_ping () { | |
ping -q -c1 $1 > /dev/null | |
if [ $? -eq 0 ] | |
then | |
echo "(!)" $1 "is connected" | |
else | |
echo "(x)" $1 "is not connected" |
This file contains 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
// Add a new route to hold the favorites. | |
import 'package:flutter/material.dart'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( |
This file contains 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
def sum_without_loop(array, sum ): | |
if( type(array) == int or type(array) == float ): | |
sum += array | |
else: | |
for i in array: | |
sum = sum_without_loop(i,sum) | |
return sum |
This file contains 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
wget -p -k [domain] | |
#base | |
url="" | |
wget -r -np --cut-dirs=2 $url | |
# skip exist | |
wget -r -np -nc --cut-dirs=2 $url | |
# only meta data |
To add the drivers repository to Ubuntu, run the commands below:
sudo add-apt-repository ppa:graphics-drivers/ppa
When you run the commands above, you should get a prompt to accept the repository signing key as well.. accept and continue installing the PPA…
Now that the PPA is installed, run the commands below to install the current latest drivers for your system.
This file contains 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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
Steps | Command |
---|---|
Create Virtual Env | python3 -m venv [env_name] |
Then activate the Env | source [env_name]/bin/activate |
Install dependency | pip install -r requirements.txt |
Create Django Project | django-admin startproject [name] |
Check pip packages | pip list |
Create utils directory | python manage.py iwanttotest |
OlderNewer