This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param( | |
| [Parameter(Mandatory = $true)] | |
| [string]$Root, | |
| [switch]$Delete | |
| ) | |
| $ErrorActionPreference = "Stop" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "howto": "Windows Terminal > Settings > Open JSON file. Add 'scheme' to the 'schemes' array and 'colorScheme' to 'profileDefaults'.", | |
| "scheme": { | |
| "name": "Fjord", | |
| "background": "#171C21", | |
| "foreground": "#DCE3EA", | |
| "cursorColor": "#7FC8C2", | |
| "selectionBackground": "#2B3A46", | |
| "black": "#11161A", | |
| "red": "#E07A7A", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ========================================================== | |
| # WSL DEVELOPER TOOLKIT | |
| # Bash | Docker-focused | Minimal Git | Windows integration | |
| # Add this section to the END of ~/.bashrc | |
| # ========================================================== | |
| # ---------------------------------------------------------- | |
| # 1. GENERAL NAVIGATION AND TERMINAL QUALITY-OF-LIFE | |
| # ---------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| parse_git_branch() { | |
| git branch --show-current 2>/dev/null || git rev-parse --abbrev-ref HEAD 2>/dev/null | |
| } | |
| set_prompt() { | |
| local c_path="\e[38;2;217;119;87m" | |
| local c_git="\e[38;2;224;180;103m" | |
| local c_reset="\e[0m" | |
| local branch=$(parse_git_branch) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function prompt { | |
| $e = [char]27 | |
| $path = $executionContext.SessionState.Path.CurrentLocation.Path | |
| $branch = git branch --show-current 2>$null | |
| if (-not $branch -and $LASTEXITCODE -eq 0) { | |
| $branch = git rev-parse --abbrev-ref HEAD 2>$null | |
| } | |
| $git = if ($branch) { " $e[38;2;224;180;103m($branch)$e[0m" } else { '' } | |
| $host.UI.RawUI.WindowTitle = Split-Path $path -Leaf | |
| "$e[38;2;217;119;87m$path$e[0m$git> " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param ( | |
| [Parameter(Mandatory=$true)] | |
| [string]$source, | |
| [Parameter(Mandatory=$true)] | |
| [string]$destination | |
| ) | |
| # Get all files to be copied | |
| $files = Get-ChildItem -Path $source -Recurse -File |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define _CRT_SECURE_NO_WARNINGS | |
| struct cliente | |
| { | |
| int nif; | |
| char nome[100]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Created by SharpDevelop. | |
| * User: cpereira7 | |
| * C#, DataTable, Interfaces | |
| */ | |
| using System; | |
| using System.Data; | |
| namespace ReportGenerator | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Created by SharpDevelop. | |
| * User: cpereira7 | |
| * Date: 08-11-2015 | |
| * Time: 20:06 | |
| * C#, Npgsql | |
| */ | |
| using System; | |
| using System.Data; | |
| using System.Diagnostics; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Reflection; | |
| using System.IO; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using Novacode; | |
| namespace Csv2Doc | |
| { |
NewerOlder