Skip to content

Instantly share code, notes, and snippets.

View sansal54's full-sized avatar

sansal54

  • SanKontrol
  • Istanbul, TURKEY
View GitHub Profile
@sansal54
sansal54 / install_pyenv.sh
Last active April 12, 2022 09:38 — forked from jmvrbanac/install_pyenv.sh
Install pyenv on Ubuntu
sudo apt-get install git python3-pip make build-essential libssl-dev libffi-dev python-is-python3 zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl
sudo pip3 install virtualenvwrapper
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
git clone https://github.com/yyuu/pyenv-virtualenvwrapper.git ~/.pyenv/plugins/pyenv-virtualenvwrapper
git clone https://github.com/pyenv/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
@sansal54
sansal54 / gradient.dart
Created March 6, 2024 11:39 — forked from tusharhow/gradient.dart
Did you know that in Flutter, bringing gradient colors to your text is a breeze? 🚀💻 Just sprinkle a bit of code magic:
Text(
"Gradient Text Example",
style: TextStyle(
fontSize: 50.0,
fontWeight: FontWeight.bold,
foreground: Paint()
..shader = const LinearGradient(
colors: <Color>[
Colors.red,
Colors.blue,