Skip to content

Instantly share code, notes, and snippets.

View ryukinix's full-sized avatar
☢️
IN RESEARCH

Manoel V. Machado ryukinix

☢️
IN RESEARCH
View GitHub Profile
@ryukinix
ryukinix / linked.py
Created September 9, 2018 09:47
A LinkedList implementation using Object Orientation in Python
from dataclasses import dataclass
from typing import T
"""
A naive Linked List implementation using dataclass as node.
"""
@dataclass
class Node:
#|
MANOEL VILELA © 2018
MULTIPLE LINEAR REGRESSION ALGORITHM FROM SCRATCH.
FOR EDUCATIONAL PURPOSES.
|#
@ryukinix
ryukinix / keybase.md
Created March 1, 2018 18:58
keybase.md

Keybase proof

I hereby claim:

  • I am ryukinix on github.
  • I am lerax (https://keybase.io/lerax) on keybase.
  • I have a public key whose fingerprint is FE71 E643 E21B 1A2D 05B8 311F B0D0 EC75 0061 E91C

To claim this, I am signing this object:

@ryukinix
ryukinix / test.py
Created August 4, 2017 01:43
Minha solução para um problema de matemática durante uma entrevista de emprego (Brick Abode)
# coding: utf-8
# Triangle
# Triangle: Determine whether a triangle can be built from a given set of edges
# A zero-indexed array A consisting of N integers is given. A triplet (P, Q,
# R) is triangular if 0 ≤ P < Q < R < N and:
#
# A[P] + A[Q] > A[R], <=> A[P] <= A[P] + A[Q]
# A[Q] + A[R] > A[P], <=> A[P] <= A[Q] + A[R]
# A[R] + A[P] > A[Q]. <=> A[R] <= A[P] + A[R]
@ryukinix
ryukinix / pipeline.py
Last active November 23, 2017 20:58
A hacky implementation of pipelines in Python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright © 2017 Manoel Vilela
#
# @project: Pipelines in Python
# @author: Manoel Vilela
# @email: manoel_vilela@engineer.com
#
@ryukinix
ryukinix / pygame-guide.md
Last active November 12, 2017 00:28
A mini-guide for introduction to Python + Pygame (PT-BR)

- * - My guide for Pygame Learning - * -

The 2nd Law of Universe

Comment: Sobreviva a luta com o inglês, resista, bata de frente e dê um jeito de ler — nem que tenha que usar o google translator (arrck!). Estou tentando compartilhar o máximo de coisas na nossa língua nativa... mas você, caro pythoneiro, sabe como é, não é? O inglês americano é língua padrão pra desenvolvimento de código, documentação e outras maravilhas do mundo da computação. Dê um jeito no seu inglês! — eu preciso dar um jeito no meu.

Dependency

Comment: Você precisa das dependências do Pygame, inclusive ele, no seu ambiente de desenvolvimento. Pra instalar pode usar pip, apt-get, pacman, yum ou qualquer que seja o gerenciador de pacotes que você usa. Ou você pode baixar o source e instalar por si mesmo (_hard-inst

@ryukinix
ryukinix / hello.rs
Last active October 20, 2017 08:13
Hello world in Rust ASM generated
pub fn main() {
println!("Hello world!");
}
@ryukinix
ryukinix / hello.hs
Last active October 20, 2017 08:07
Haskell hello world assembly generated with -S option
main = print "Be cancer"
@ryukinix
ryukinix / matrix.c
Last active August 23, 2017 19:09
Diferenças entres tipos de alocação dinâmica de matrizes em C
/**
* Copyright 2017 Manoel Vilela
*
* Referências da Aula_0 e Aula_1.
*/
// Nós temos duas maneiras de lidar com matrizes
// e alocação dinâmica.
// Uma matriz pode ser representada como um conjunto de n
@ryukinix
ryukinix / warsaw.sh
Created August 8, 2017 07:57
An OpenRC script for the Brazillian Security Module Warsaw from GAS Technology
#!/usr/bin/openrc-run
### BEGIN INIT INFO
# Provides: warsaw
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Handles Warsaw - core
# Description: Warsaw Technology - core
# Developed by GAS Tecnologia<info@gastecnologia.com.br>