Hey there, productivity enthusiasts! Are you ready to revolutionize the way you work? Introducing Zentik, your ultimate companion for achieving a state of focused flow and tranquility in your daily tasks.
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
import os | |
import socket | |
import subprocess | |
# Create a socket | |
def socket_create(): | |
try: | |
global host | |
global port |
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; | |
namespace TestApp | |
{ | |
public class DateUtil | |
{ | |
public static DateTime Get5thBusinessDay(DateTime sourceMonth) | |
{ | |
return GetNthBusinessDay(5, sourceMonth); | |
} |
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
WITH bichos_familia AS( | |
SELECT m.id_familia, SUM(m.quantidadebichosestimacao) AS bichos FROM Morador m | |
GROUP BY m.id_familia | |
) | |
SELECT c.bairro AS 'Bairro', COALESCE(SUM(b.bichos),0) AS 'Bichos de Estimação' FROM Condominio c | |
LEFT JOIN Familia f ON c.Id = f.id_condominio | |
LEFT JOIN bichos_familia b ON b.id_familia = f.id | |
GROUP BY c.bairro |
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.Linq; | |
using System.Threading.Tasks; | |
class Program | |
{ | |
const int generatedTasks = 10; | |
const int maxThreads = 2; | |
static Random random = new Random(); |
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.Text.Json; | |
//File.Delete("data.txt"); | |
var stream = File.Open("data.txt", FileMode.OpenOrCreate, FileAccess.ReadWrite); | |
var fs = new FileSystem(stream); | |
var fc = new FileContext(fs); | |
Console.WriteLine(@"Command list: | |
ls | |
cat @fileName |