Skip to content

Instantly share code, notes, and snippets.

View m4ycon's full-sized avatar
馃帶
Focusing

Maycon Fabio m4ycon

馃帶
Focusing
  • Brasil, DF
  • 23:31 (UTC -03:00)
View GitHub Profile
@m4ycon
m4ycon / datasources.md
Last active July 7, 2026 17:08
Bitcoin datasource links

Links that I found while reading BNOC and other bitcoin related stuff.

Other resource aggregators:

Resources:

@m4ycon
m4ycon / html-encode.ts
Last active December 21, 2023 21:21
utils
/**
* Transforms strings like &;\'><" to &amp;;'&gt;&lt;"
*/
function htmlEncode(s: string) {
var el = document.createElement("div");
el.innerText = el.textContent = s;
s = el.innerHTML;
return s;
}
@m4ycon
m4ycon / template.cpp
Last active June 8, 2023 15:30
codeforces-template
#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,n) for (int i=a;i<n;i++)
#define per(i,a,n) for (int i=n-1;i>=a;i--)
#define pb push_back
#define mp make_pair
#define pii pair<int, int>
#define all(x) (x).begin(),(x).end()
typedef long long ll;
typedef double db;
@m4ycon
m4ycon / alias.bat
Last active January 9, 2022 22:59
How to create a alias in windows
// In cmd run
$ Test-Path $PROFILE
// if False run:
$ New-Item -Type File -Force $PROFILE
$ ise $PROFILE
// It will open an editor, where you can create your alias, eg.
function alias-example { set-location "C:\..." }
// When you reopen cmd, it says that the file is not digitally signed,
// I don't know yet how to solve this other way, but this is what I do
$ Set-ExecutionPolicy Bypass
@m4ycon
m4ycon / after-formatting-ubuntu.md
Last active March 7, 2026 23:09
Comandos que uso quando tenho um PC (Windows + WSL) rec茅m formatado.

Ap贸s formatar (Ubuntu)

Basic

sudo apt update
sudo apt install curl

System pref

@m4ycon
m4ycon / History\-12e40e6c\entries.json
Last active January 14, 2023 00:34
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///c%3A/Users/mvinn/Documents/repositorios/dinnerdash/front/src/components/Select/styles.ts","entries":[{"id":"BPj5.ts","source":"Renaming StyledInput to StyledSelect","timestamp":1652926036645},{"id":"DahI.ts","timestamp":1652926441838},{"id":"No7F.ts","timestamp":1652926595396},{"id":"w9Mp.ts","timestamp":1652926611881},{"id":"gMvP.ts","timestamp":1652926652886},{"id":"OovF.ts","source":"undoRedo.source","timestamp":1652926676641}]}