This file contains 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
[user] | |
name = Alberto Monteiro | |
email = [email protected] | |
[core] | |
preloadindex = true | |
fscache = true | |
autocrlf = true | |
editor = code -n -w | |
[alias] | |
fetchall = fetch --all --prune |
This file contains 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
var pattern = @"^(https?://)(?!www[.])(.+)$"; | |
return new SeeOther(Regex.Replace(Request.Url.AbsoluteUri, pattern, @"$1www.$2")); |
This file contains 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
1) Using SQL-like Expression | |
var iNames = from i in employees | |
select i.name; | |
2) Using Lambda Expression | |
var iNames = employees.Select(r => r.name); |
This file contains 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.Linq; | |
using System.Net; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication6 | |
{ | |
class Program | |
{ |
This file contains 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
#Com git instalado, via powershell: | |
Set-ExecutionPolicy Unrestricted | |
if(!$env:path.Contains("C:\Program Files (x86)\Git\cmd")) | |
{ | |
$env:path += ";C:\Program Files (x86)\Git\cmd" | |
} | |
if(!$env:path.Contains("C:\Program Files (x86)\Git\bin")) | |
{ |