Skip to content

Instantly share code, notes, and snippets.

View TopRoupi's full-sized avatar
💬

Breno Nunes TopRoupi

💬
  • Brazil, SP São Paulo
  • 23:33 (UTC -03:00)
View GitHub Profile
import multiprocessing
import time
from matplotlib import pyplot as plt
def fatorial(n):
r = 1
for i in range(1, n+1):
r *= i
return r
import multiprocessing
import time
nums = [5, 6, 7, 8, 9, 10]
def fatorial(n):
time.sleep(1)
r = 1
for i in range(1, n+1):
r *= i
@[Link(ldflags: "#{__DIR__}/somador.o")]
lib Somador
fun sum(n1 : Int32, n2 : Int32) : Int32
end
p Somador.sum 2, 3
function submit_messages(){
$('#message_content').on('keydown', (event) => {
if(event.keyCode === 13){
$('input').click();
event.target.value = '';
}
})
}
#include <stdio.h>
void corta(char txt[],int ini,int fim){
ini -= 1;
int i;
for (i = 0; txt[fim+i] != '\0'; i++)
txt[ini+i] = txt[fim+i];
txt[ini+i] = '\0';
}
#include <stdio.h>
void corta(char txt[],int ini,int fim){
ini -= 1;
int i;
for (i = 0; txt[fim+i] != '\0'; i++)
txt[ini+i] = txt[fim+i];
txt[ini+i] = '\0';
}