Esse é documento de orientação para a implementação de novas linguagens no repositório nexusedge/ai-nlp-tc
Durante o pré-processamento é feito, na seguinte ordem, os seguintes procedimentos:
#!/usr/bin/env python | |
# coding=utf-8 | |
# Python Script | |
# | |
# Copyright © Manoel Vilela | |
# | |
# | |
from queue import Queue | |
import asyncio |
import re | |
import random | |
def num_matcher(num, _len=6): | |
pattern = re.compile(r"^[0-9]{{{_len}}}".format_map(locals())) | |
return bool(pattern.match(num)) | |
value = random.randint(0, 1000000) | |
print(value) | |
print(num_matcher(str(value))) |
#!/usr/bin/env python | |
# coding=utf-8 | |
# | |
# Python Script | |
# | |
# Copyleft © Manoel Vilela | |
# | |
# | |
# stdlib |
# — SETTINGS — # | |
update_interval 20 | |
total_run_times 0 | |
net_avg_samples 1 | |
cpu_avg_samples 1 | |
imlib_cache_size 0 | |
double_buffer yes | |
no_buffers yes | |
use_xft yes | |
xftfont Zekton:size=9 |
#!/bin/bash | |
for f in ./*.mp3; do ffmpeg -i "$f" -c:a libvorbis -q:a 4 "${f/%mp3/ogg}"; done |
# Tetromino (A Tetris Clone) | |
# http://inventwithpython.com/blog | |
# By Al Sweigart al@inventwithpython.com | |
""" | |
Welcome to the Code Comments for Tetromino. Code Comments is a series of simple games with detailed comments in the source code, so you can see how the game works. | |
Bem vindo aos Códigos Comentados para Tetromino. Códigos Comentados é uma série de games(jogos) simples com comentários detalhados no código fonte, assim você pode ver como o game(jogo) trabalha. | |
The text in between the triple-double-quotes are comments. The Python interpreter ignores any text in between them, so we can add any comments about the source code without affecting the program. In general for Code Comments, the comments will describe the lines of code above the comment. It helps to view this file either on the Code Comments site or with a text editor that does "syntax highlighting", so that the comments appear in a separate color and are easier to distinguish from the code. | |
O texto entre aspas duplas-triplas são comentários. O i |
[program:your-program-label] | |
command=interpreter file.extension | |
directory=/the/path/of/program | |
user=root | |
autostart=true | |
autorestart=true | |
redirect_stderr=true | |
numprocs=1 | |
numprocs_start=1 | |
stdout_logfile=/tmp/your-program-label.log |
find . -name .git -type d -execdir git pull ';' |
;; brainfuck interpreter written in Common Lisp | |
;; Author: Manoel Vilela | |
;; Date: 10/07/2017 02:24:40 | |
;; constants | |
(defparameter *max-operations* 100000) | |
(defparameter *valid-operations* "<>+-.,[]") | |
;; global variables |