Skip to content

Instantly share code, notes, and snippets.

View afucher's full-sized avatar

Arthur Fücher afucher

View GitHub Profile
@afucher
afucher / git-anonymize
Created October 13, 2019 23:07 — forked from pozorvlak/git-anonymize
Anonymise Git history
#!/bin/sh
# Suppose you want to do blind reviewing of code (eg for job interview
# purposes). Unfortunately, the candidates' names and email addresses are
# stored on every commit! You probably want to assess each candidate's version
# control practices, so just `rm -rf .git` throws away too much information.
# Here's what you can do instead.
# Rewrite all commits to hide the author's name and email
for branch in `ls .git/refs/heads`; do
@afucher
afucher / consoleDir.cs
Created January 19, 2021 23:05
[dotnet] Imprime propriedades e valores de um objeto
foreach(PropertyDescriptor descriptor in TypeDescriptor.GetProperties(obj))
{
string name=descriptor.Name;
object value=descriptor.GetValue(obj);
Console.WriteLine("{0}={1}",name,value);
}

Extension

Create a new operation: allow-list.

That operation will change the number of rules that should be applied. When an account is allow-listed, authorizer should validate only two rules:

  1. The transaction amount should not be above limit
  2. No transaction should be approved when the card is blocked

The account is not allow-listed by default, and once it is allow-listed it can be disabled with a new allow-list operation.

@afucher
afucher / main.dart
Created July 27, 2022 13:13
divine-spray-6506
class Foo {
final String? p1;
const Foo({
this.p1 = "default"
});
}
/*
This example requires some changes to your config:
```
// tailwind.config.js
module.exports = {
// ...
plugins: [
// ...
require('@tailwindcss/forms'),