Skip to content

Instantly share code, notes, and snippets.

View rodrigobrito's full-sized avatar
🎯
Focusing

Rodrigo da Silva Brito rodrigobrito

🎯
Focusing
View GitHub Profile
@rodrigobrito
rodrigobrito / Throttler.cs
Last active October 10, 2023 23:42
C# Throttling management
[TestClass]
public class ThrottlingTest
{
[TestMethod]
public void Should_ProcessOneHundredMessages_In_OneHundredMillisecond()
{
var throttle = new Throttler(100, TimeSpan.FromMilliseconds(100));
var stopWatch = new Stopwatch();
stopWatch.Start();

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@rodrigobrito
rodrigobrito / gist:b613014f399ecdf407ac
Last active August 29, 2015 14:07
Exemplo de uso de caixa de diálogo.
var title = "<div class='widget-header'><h4><i class='glyphicon glyphicon-registration-mark'></i> Incluindo Novo Registro</h4></div>";
var dialogViewModel = new DialogViewModel();
dialogViewModel.set("resizable", false);
dialogViewModel.set("view", NewDataEntryView);
dialogViewModel.set("title", title);
dialogViewModel.addButton({
html: "<i class='glyphicon glyphicon-floppy-saved'></i>&nbsp; Salvar",
css: "btn btn-success",
functionName: "save"