Skip to content

Instantly share code, notes, and snippets.

View enzo-santos's full-sized avatar
🦧

Enzo Santos enzo-santos

🦧
View GitHub Profile
@enzo-santos
enzo-santos / Statistics.kt
Created June 23, 2020 04:12
Kotlin snippets
import kotlin.math.*
/**
* Returns [num] evenly spaced samples, calculated over the interval [0, [max]].
*/
fun linspace(num: Int, max: Double): DoubleArray
= DoubleArray(num) { it * max / (num - 1.0) }
/**
* Returns a sequence of numbers starting from [start], incrementing by [stop] and stopping before [stop].
@enzo-santos
enzo-santos / mobile_twitter_parser.py
Created July 5, 2020 01:25
Simple Twitter parser (mobile version)
import bs4
import requests
from typing import Dict, List
class MobileTwitterParser:
"""
Parses information from the main page of a Twitter account.
This parses information based on the mobile version of the Twitter webpage
@enzo-santos
enzo-santos / gcloudfunctions_gitlabci.md
Last active May 30, 2022 10:37
Cloud Functions + GitLab CI tutorial

Cloud Functions + GitLab CI tutorial

This tutorial will teach you how to deploy a Python 3.8-based Cloud Function using GitLab CI.

Glossary

If you encounter a variable you don't recognize while reading, take a look here.

Variable name Description
@enzo-santos
enzo-santos / playstore_flutter_gitlabci.md
Last active April 28, 2024 03:44
Play Store + GitLab CI tutorial

Play Store + GitLab CI tutorial

This tutorial will teach you how to deploy a Flutter-based app to Play Store using GitLab CI.

Glossary

If you encounter a variable you don't recognize while reading, take a look here.

Variable name Description
@enzo-santos
enzo-santos / complex.dart
Created November 27, 2022 13:20
Real Fast Fourier Transform (RFFT)
import 'dart:math' as math;
/// Represents a complex number in the form [a] + [b]i.
class Complex {
/// The origin of the complex plane.
static const Complex zero = Complex(0, i: 0);
/// The real part of this number.
final double a;

Keybase proof

I hereby claim:

  • I am enzo-santos on github.
  • I am enzosantos (https://keybase.io/enzosantos) on keybase.
  • I have a public key whose fingerprint is 14B6 E2D1 64CE 684C 565E 7666 8951 8C8B 0201 9FF0

To claim this, I am signing this object:

@enzo-santos
enzo-santos / readme.md
Created August 5, 2023 14:16
notorious-clover-6213

notorious-clover-6213

Created with <3 with dartpad.dev.

@enzo-santos
enzo-santos / readme.md
Created August 5, 2023 14:17
notorious-clover-6213

notorious-clover-6213

Created with <3 with dartpad.dev.

@enzo-santos
enzo-santos / readme.md
Created August 5, 2023 14:17
notorious-clover-6213

notorious-clover-6213

Created with <3 with dartpad.dev.

@enzo-santos
enzo-santos / main.dart
Created August 5, 2023 14:17
ExemploIntrinsicHeight
import 'package:flutter/material.dart';
void main() {
runApp(const MaterialApp(
home: Tela(),
));
}
class Tela extends StatelessWidget {
const Tela({super.key});