git config --global alias.wip '!git add . && git commit -m "WIP"'
git config --global alias.df diff
git config --global alias.rs restore
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.wip '!git add . && git commit -m "WIP"'
git config --global alias.df diff
git config --global alias.rs restore
git config --global alias.co checkout
git config --global alias.br branch
public static class Where | |
{ | |
private static string nomeMetodoWhere = "where"; | |
public static IQueryable<TSource> WhereIf<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int, bool>> predicate, bool condicao) | |
{ | |
if (source == null) | |
throw new Exception("source"); |
using GisSharpBlog.NetTopologySuite.Features; | |
using GisSharpBlog.NetTopologySuite.Geometries; | |
using GisSharpBlog.NetTopologySuite.IO; | |
using GeoAPI.Geometries; | |
...etc.... |
connect | |
{"protocol":"json","version":1} | |
Methods | |
{"arguments":["TestGroup"],"invocationId":"0","target":"JoinGroup","type":1} |
using System.Net.Mail; | |
Console.WriteLine("--------- PLAYGROUND ----------"); | |
SendEmail(); | |
static void SendEmail() | |
{ | |
string to = "[email protected]"; | |
string from = "[email protected]"; |
DO $$ | |
DECLARE | |
tableName text := 'car_atp'; | |
result text := 'public class ' || tableName || ' {'; | |
columnName text; | |
columnType text; | |
nullableSign text; | |
BEGIN | |
FOR columnName, columnType, nullableSign IN | |
SELECT |
using System; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
class Program | |
{ | |
static Random random = new Random(); | |
static string pattern = "^[a-zA-Z0-9]{26,35}$"; | |
static string GenerateUniqueCode() |
"Encryption": { | |
"Key": "sua-key", | |
"Cipher": "aes-256-gcm" | |
} | |
//pode gerar uma com seguinte codigo | |
var key = new byte[32]; | |
RandomNumberGenerator.Fill(key); | |
var base64Key = Convert.ToBase64String(key); |