This file contains 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
;; kmp-fp: Substring Search @ HackerRank | |
;; Date: Thu 13 Jul 2017 08:48:40 AM -03 | |
;; Manoel Vilela | |
;; NOTE: I'm programming in Common Lisp or in LOOP-MACRO? | |
(defun make-prefix-table (pattern length) | |
"Get the shift prefix array table to use on KMP | |
algorithm. This value is used to shift string comparison | |
on the next evaluation after a mismatch" |
This file contains 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
# Maintainer: Carol Alexandru shapeshifter@archlinux.us | |
# Fixed by Manoel Vilela <manoel_vilela@engineer.com> | |
pkgname=python-imapclient | |
pkgver=1.0.2 | |
pkgrel=1 | |
pkgdesc="An easy-to-use, Pythonic and complete IMAP client library with no dependencies outside the Python standard library" | |
arch=('any') | |
url="http://imapclient.freshfoo.com/" | |
license=('BSD') | |
depends=('python' 'python-backports.ssl') |
This file contains 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
#pragma GCC optimize("Ofast") | |
#include "bits/stdc++.h" | |
#define left fdhfkladhfl | |
#define right fdflhdlfjha | |
#define tm fadfdhajl | |
using namespace std; | |
const int maxn = 55555; | |
struct bset{ | |
vector<long long> info; | |
bset(){} |
This file contains 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
(defvar gud-gud-gdb-history nil) | |
(defun setup-c-and-cpp-compiler-with-gdb () | |
(interactive) | |
"Generate strings for 'compile and 'gud-gdb commands on C/C++ mode" | |
(define-key (current-local-map) "\C-c\C-c" 'compile) | |
(define-key (current-local-map) [M-f9] 'gud-gdb) | |
(when buffer-file-name | |
(let* ((file (file-name-nondirectory buffer-file-name)) | |
(file-basename (file-name-sans-extension file)) | |
(extension (if (eq system-type 'windows-nt) "exe" "out"))) |
This file contains 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
;;; mano.el -- useful macros made by me, Manoel | |
;; Copyright © 2017 Manoel Vilela | |
;; | |
;; Author: Manoel Vilela <manoel_vilela@engineer.com> | |
;; URL: https://github.com/ryukinix/dotfiles | |
;; Version: 1.0.0 | |
;; Keywords: convenience | |
;; This file is not part of GNU Emacs. |
This file contains 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
# 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] |
This file contains 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/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> |
This file contains 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 python3 | |
# -*- coding: utf-8 -*- | |
# | |
# Copyright © 2017 Manoel Vilela | |
# | |
# @project: Pipelines in Python | |
# @author: Manoel Vilela | |
# @email: manoel_vilela@engineer.com | |
# |
This file contains 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
/** | |
* 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 |
This file contains 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
main = print "Be cancer" |