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
8 | |
1 | |
4 9 5 2 6 7 8 1 8 | |
1 3 0 0 | |
0 0 1 1 3 | |
2 6 0 0 1 7 | |
2 6 1 0 1 7 1 1 3 4 | |
0 1 2 3 4 5 6 | |
0 1 2 0 1 6 |
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
""" | |
Write a function that perform as an SQL-join. | |
""" | |
BRAND = [ | |
{'id': 0, 'name': 'Ferrari', 'year': 1998}, | |
{'id': 1, 'name': 'Red Bull'}, | |
{'id': 2, 'name': 'Mclaren'} |
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
""" | |
Github: @realFranco | |
References: | |
- https://oauth.net/core/1.0/ | |
- steps: | |
- normalize request parameters | |
- create sign key |
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
""" | |
Github @realFranco | |
Testing OAuth1a | |
""" | |
def test_compose_oauth1a_signature() -> None: | |
""" | |
Reference: https://oauth.net/core/1.0/#sig_base_example |
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
/* 11*10*17 | |
- TDA arboles | |
31*05*21 | |
- This is a recovery file, expose a preview on binary trees data structures. | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> |
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
# Franco Gil | |
# @realFranco | |
# April 5th, 2022 | |
class Utils: | |
@staticmethod | |
def noBlockCoroutine(coroutine): | |
try: | |
# Wrap the coro coroutine into a Task and schedule its execution. |
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
from math import ceil | |
import random | |
import pytz | |
from datetime import date | |
import pandas as pd | |
def dates_gen(cases: int = 1000) -> list: | |
return [random.randint(0, 1639758915) for _ in range(0, cases)] |
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
// Naive Graph Traversing. | |
console.log("edit a property from a relation"); | |
$("#id-733e2449d19b455db12241633b28cdab").prop("top_bottom", 0); | |
$("#id-733e2449d19b455db12241633b28cdab").prop("bottom_top", 0); | |
console.log("every input relation from the current element"); | |
$(ID).inRels().each(function(relation) { | |
if (relation.name){ | |
console.log(relation); |
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
#!/usr/bin/env jjs | |
/*#################################################################################################################################### | |
# As Nashorn does not have http capabilities through XMLHttpRequest (DOM API), we have to use regular Java classes instead. | |
# This sample shows how this can be acheived without depending on any third party libraries. Just a standard Java 8 JDK. | |
# Make sure to have JAVA_HOME/bin on your PATH for the shebang to work. Then just chmod +x away and run... | |
# Alternatively if you're on a non *nix OS, start with jjs -scritping httpsample.js | |
####################################################################################################################################*/ | |
var url = "https://api.github.com/users/billybong/repos"; | |
var response; |
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
""" | |
November 9th, 2021 | |
Naive Implmementation | |
Exacution example | |
> python3 string_match.py | |
""" | |
class StringMatch(): | |
text: str |