I'm a 20-yr-old polyglot programmer who's been coding since the age of 7. I believe in free, equitable access to information, and giving back to the community.
Personal site: https://thosakwe.com
| //Flutter Modal Bottom Sheet | |
| //Modified by Suvadeep Das | |
| //Based on https://gist.github.com/andrelsmoraes/9e4af0133bff8960c1feeb0ead7fd749 | |
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:meta/meta.dart'; | |
| const Duration _kBottomSheetDuration = const Duration(milliseconds: 200); |
| { | |
| "workbench.startupEditor": "newUntitledFile", | |
| "editor.fontSize": 16, | |
| "editor.lineHeight": 1.8, | |
| "javascript.suggest.autoImports": true, | |
| "javascript.updateImportsOnFileMove.enabled": "always", | |
| "editor.rulers": [ | |
| 80, | |
| 120 | |
| ], |
I'm a 20-yr-old polyglot programmer who's been coding since the age of 7. I believe in free, equitable access to information, and giving back to the community.
Personal site: https://thosakwe.com
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build_web: |
| /* | |
| This example uses the following packages: | |
| firebase_auth: 0.14.0+5 | |
| google_sign_in: 4.0.7 | |
| provider: 3.1.0+1 | |
| Make sure you have setup your project with Firebase by following these instructions: | |
| 1. Follow Option 1 instructions here up to Step 3 |
| void main() { | |
| int listLength = 24; | |
| int index = 5; | |
| int h = (listLength * 66) ~/ 3; | |
| int col = index % 3; | |
| print('find index: $index'); | |
| print('gridHeight: $h'); | |
| print('rows : ${h / 66}'); | |
| print('column : ${col + 1}'); | |
| print('row height: ${((((index - 1) * 66) / 3) + 88) - (col * 22)}'); |
| " Specify a directory for plugins | |
| call plug#begin('~/.vim/plugged') | |
| Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
| Plug 'scrooloose/nerdtree' | |
| "Plug 'tsony-tsonev/nerdtree-git-plugin' | |
| Plug 'Xuyuanp/nerdtree-git-plugin' | |
| Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
| Plug 'ryanoasis/vim-devicons' | |
| Plug 'airblade/vim-gitgutter' |
| #!/usr/bin/env bash | |
| printf "\e[33;1m%s\e[0m\n" 'Running the Flutter formatter' | |
| flutter format . | |
| printf "\e[33;1m%s\e[0m\n" 'Finished running the Flutter formatter' |
| #!/usr/bin/env bash | |
| if [[ `git status --porcelain` ]]; then | |
| printf "\e[31;1m%s\e[0m\n" 'This script needs to run against committed code only. Please commit or stash you changes.' | |
| exit 1 | |
| fi | |
| printf "\e[33;1m%s\e[0m\n" 'Running the Flutter analyzer' | |
| flutter analyze | |
| if [ $? -ne 0 ]; then | |
| printf "\e[31;1m%s\e[0m\n" 'Flutter analyzer error' | |
| exit 1 |
| extension PhoneNumberExtension on String { | |
| String get toGHPhoneNumber { | |
| if (this.length != 10) return this; | |
| return '${this.substring(0, 3)} ${this.substring(3, 6)} ${this.substring(6, 10)}'; | |
| } | |
| } |