code $PROFILE
Import-Module oh-my-posh
Set-PoshPrompt -Theme materialGet-PoshThemes -list
material.omp.json
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", | |
| "copyOnSelect": false, | |
| "copyFormatting": false, | |
| "profiles": { | |
| "defaults": { | |
| "colorScheme" : "Dracula", | |
| "fontFace": "JetBrains Mono", | |
| "fontSize": 10, |
| { | |
| "editor.fontFamily": "JetBrains Mono", | |
| "editor.fontLigatures": true, | |
| "workbench.iconTheme": "material-icon-theme", | |
| "workbench.startupEditor": "none", | |
| "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe", | |
| "extensions.ignoreRecommendations": false, | |
| "editor.renderWhitespace": "all", | |
| "[html]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" |
| --put this along a __resource.lua file | |
| Citizen.CreateThread(function() | |
| while true do | |
| local playerArmour = GetPedArmour(GetPlayerPed(-1)) --get player armor level (0-100) | |
| --x, y, width, height | |
| --Color must be passed as parameter as: {R, G, B, ALPHA} | |
| --percent must be passed from 0 to 100 | |
| drawProgressBar(0.120, 0.975, 0.0690, 0.0085, {33, 78, 106, 255}, playerArmour) --armour progressbar | |
| Citizen.Wait(0) -- at every frame |
| # 1. Install Oh-my-zsh running: | |
| # sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
| # 2. Run the following command: | |
| # open -a TextEdit ~/.zshrc | |
| # 3. Paste and replace this whole file in it, including comments. | |
| # 4. Run: | |
| # source ~/.zshrc |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "api develop", | |
| "type": "coreclr", | |
| "request": "launch", | |
| "preLaunchTask": "build-api", | |
| "program": "${workspaceFolder}/server/web/Nexp.Web.Api/bin/Debug/netcoreapp3.1/Nexp.Web.Api.dll", |
| sqlcmd -S localhost -U SA -P 'password' | |
| RESTORE DATABASE [dbname] FROM DISK='db.bkp' | |
| WITH MOVE 'db' TO '/var/opt/mssql/data/db.mdf', | |
| MOVE 'db_Log' TO '/var/opt/mssql/data/db_Log.ldf', | |
| REPLACE, | |
| STATS=10 | |
| GO |
code $PROFILE
Import-Module oh-my-posh
Set-PoshPrompt -Theme materialGet-PoshThemes -list
material.omp.json
| class Phone { | |
| final String _areacode; | |
| final String _specialDigit; | |
| final String _localPhone; | |
| Phone._(this._areacode, this._specialDigit, this._localPhone); | |
| static Phone? create(String? candidate) { | |
| final candidateFormatted = candidate!.replaceAll(RegExp('[^0-9]'), ''); | |
| //https://regex101.com/r/P85Luy/1 |
| // | |
| // RatingStarsUIView.swift | |
| // ShoeStore Swift ViewCode | |
| // | |
| // Created by Wender Patrick on 06/04/22. | |
| // | |
| import UIKit | |
| protocol RatingStarsUIViewProtocol: AnyObject { |
| cat ~/.ssh/id_rsa.pub | pbcopy |