JavaScript Arrays are a very flexible data structure and used as lists, stacks, queues, tuples (e.g. pairs), etc. Some
Creating Arrays, reading and writing elements:
| opendb () { | |
| [ ! -f .env ] && { echo "No .env file found."; exit 1; } | |
| DB_CONNECTION=$(grep DB_CONNECTION .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
| DB_HOST=$(grep DB_HOST .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
| DB_PORT=$(grep DB_PORT .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
| DB_DATABASE=$(grep DB_DATABASE .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
| DB_USERNAME=$(grep DB_USERNAME .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) | |
| DB_PASSWORD=$(grep DB_PASSWORD .env | grep -v -e '^\s*#' | cut -d '=' -f 2-) |
| code --install-extension QassimFarid.ejs-language-support | |
| code --install-extension SirTori.indenticator | |
| code --install-extension TimonVS.ReactSnippetsStandard | |
| code --install-extension TwentyChung.jsx | |
| code --install-extension abusaidm.html-snippets | |
| code --install-extension asvetliakov.move-imports | |
| code --install-extension aws-scripting-guy.cform | |
| code --install-extension bierner.markdown-preview-github-styles | |
| code --install-extension ccitiriga.TSMethodCreator | |
| code --install-extension christian-kohler.npm-intellisense |
| <scheme name="Material Dark" version="142" parent_scheme="Darcula"> | |
| <!-- | |
| 1. Install the Roboto Mono Regular font - https://fonts.google.com/specimen/Roboto+Mono?selection.family=Roboto+Mono | |
| 2. Copy `Material Dark.icls` to `~/Library/Preferences/AndroidStudio3.0/colors/` | |
| 3. Restart AS | |
| 4. Preferences > Editor > Color and Fonts > select Material Dark and press OK | |
| --> | |
| <option name="FONT_SCALE" value="1.0" /> |
| # perform a fresh install of Ubuntu 17.10 | |
| # upgrade the kernel to v4.13.10 | |
| mkdir ~/kernel-v4.13.10 | |
| cd ~/kernel-v4.13.10 | |
| wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-headers-4.13.10-041310_4.13.10-041310.201710270531_all.deb | |
| wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-headers-4.13.10-041310-generic_4.13.10-041310.201710270531_amd64.deb | |
| wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-image-4.13.10-041310-generic_4.13.10-041310.201710270531_amd64.deb | |
| sudo dpkg -i *.deb |
| #!/bin/bash -e | |
| # -------------------------------------------------------- | |
| # Generate app icons and xcassets file from a single image | |
| # Ben Clayton, Calvium Ltd. | |
| # https://gist.github.com/benvium/2be6d673aa9ac284bb8a | |
| # -------------------------------------------------------- | |
| # | |
| # Usage with an input of 1024x1024 PNG file | |
| # generateAppIcon.sh AppIcon.png |
| # Description: Boxstarter Script | |
| # Author: Jess Frazelle <jess@linux.com> | |
| # Last Updated: 2017-09-11 | |
| # | |
| # Install boxstarter: | |
| # . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
| # | |
| # You might need to set: Set-ExecutionPolicy RemoteSigned | |
| # | |
| # Run this boxstarter by calling the following from an **elevated** command-prompt: |
You're taking your first steps into Ruby
A good introduction to programming in general. Easy on newer programmers.
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| // | |
| // main.swift | |
| // pggrep - updated 12/4/15 | |
| // Created by Erica Sadun on 6/17/15. | |
| // Copyright © 2015 Erica Sadun. All rights reserved. | |
| // | |
| import Foundation | |
| extension String { |