Skip to content

Instantly share code, notes, and snippets.

⌨️
📖 studying & working 👨‍💻

Manoel Vilela ryukinix

View GitHub Profile
@ryukinix
ryukinix / sum-args.c
Created Mar 12, 2019
Sum posix argv integers
View sum-args.c
/*
* Manoel Vilela © 2019
*
* Why this? Just because I was bored
* Date: Tue 12 Mar 2019 12:21:48 AM -03
*/
#include <stdio.h>
#include <stdlib.h>
View *scratch*.el
;; ▓█████ ███▄ ▄███▓ ▄▄▄ ▄████▄ ██████
;; ▓█ ▀ ▓██▒▀█▀ ██▒▒████▄ ▒██▀ ▀█ ▒██ ▒
;; ▒███ ▓██ ▓██░▒██ ▀█▄ ▒▓█ ▄ ░ ▓██▄
;; ▒▓█ ▄ ▒██ ▒██ ░██▄▄▄▄██ ▒▓▓▄ ▄██▒ ▒ ██▒
;; ░▒████▒▒██▒ ░██▒ ▓█ ▓██▒▒ ▓███▀ ░▒██████▒▒
;; ░░ ▒░ ░░ ▒░ ░ ░ ▒▒ ▓▒█░░ ░▒ ▒ ░▒ ▒▓▒ ▒ ░
;; ░ ░ ░░ ░ ░ ▒ ▒▒ ░ ░ ▒ ░ ░▒ ░ ░
;; ░ ░ ░ ░ ▒ ░ ░ ░ ░
;; ░ ░ ░ ░ ░░ ░ ░
View test.el
(require 'package)
(setq packages-archives '("melpa" . "https://melpa.org/packages/"))
(defvar *my-packages* '(company
slime-company
doom-themes
powerline
airline-themes)
"My wonderful packages")
@ryukinix
ryukinix / quickproject-cli.lisp
Created Feb 25, 2019
A Quickproject CLI, portable script for Linux
View quickproject-cli.lisp
#!/usr/bin/sbcl --script
#|
Manoel Vilela © 2018
This script helps me building a simple ASDF project for Common Lisp
based in the library quickproject.
|#
@ryukinix
ryukinix / lock.sh
Last active Feb 16, 2019
How lock your system before suspend with openrc init via elogind using slock
View lock.sh
#!/bin/sh
#
# /lib/elogind/system-sleep/lock.sh
# Lock before suspend integration with elogind
username=lerax
userhome=/home/$username
export XAUTHORITY="$userhome/.Xauthority"
export DISPLAY=":0.0"
View lock.sh
#!/bin/sh
#
# /lib/elogind/system-sleep/lock.sh
# Lock before suspend integration with elogind
username=lerax
userhome=/home/$username
export XAUTHORITY="$userhome/.Xauthority"
export DISPLAY=":0.0"
View matrix-circle.c
/**
* ================================================
*
* Copyright 2018 Manoel Vilela
*
* Author: Manoel Vilela
* Contact: manoel_vilela@engineer.com
* Organization: UFC
*
* ===============================================
@ryukinix
ryukinix / dateparser_lark.py
Last active Dec 13, 2018
An EBNF grammar based in the Lark Parser designed to parse multivariate date formats. (PT_BR)
View dateparser_lark.py
#!/usr/bin/env python3
# coding: utf-8
#
# Copyright © Neoway Business Solutions
#
# @project: Diário Oficial
# @author: Manoel Vilela
# @email: manoel.neto@neoway.com.br
#
@ryukinix
ryukinix / linked.py
Created Sep 9, 2018
A LinkedList implementation using Object Orientation in Python
View linked.py
from dataclasses import dataclass
from typing import T
"""
A naive Linked List implementation using dataclass as node.
"""
@dataclass
class Node:
View linear-regression.lisp
#|
MANOEL VILELA © 2018
MULTIPLE LINEAR REGRESSION ALGORITHM FROM SCRATCH.
FOR EDUCATIONAL PURPOSES.
|#
You can’t perform that action at this time.