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
| #!/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' |
| " 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' |
| 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)}'); |
| /* | |
| 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 |
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build_web: |
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
| { | |
| "workbench.startupEditor": "newUntitledFile", | |
| "editor.fontSize": 16, | |
| "editor.lineHeight": 1.8, | |
| "javascript.suggest.autoImports": true, | |
| "javascript.updateImportsOnFileMove.enabled": "always", | |
| "editor.rulers": [ | |
| 80, | |
| 120 | |
| ], |
| //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); |
| SPC | |
| SPC: find file | |
| , switch buffer | |
| . browse files | |
| : MX | |
| ; EX | |
| < switch buffer | |
| ` eval | |
| u universal arg | |
| x pop up scratch |
Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.
/etc/ssh/sshd_config file by running the command sudo vi /etc/ssh/sshd_config and do the following
Port to 2222 (or any other port above 1000)PasswordAuthentication to yes. This can be changed back to no if ssh keys are setup.sudo service ssh --full-restart