Skip to content

Instantly share code, notes, and snippets.

View paulohenriquesn's full-sized avatar

Paulo Henrique paulohenriquesn

View GitHub Profile
public static int FirstFactorial(int num)
{
int[] memory = new int[num+1];
for(int i = 0; i < num+1; i ++)
{
memory[i] = i;
}
num = 1;
function FirstFactorial(num) {
memory = num
c = memory-1
for(i=0;i<num;i++){
if(c != 0){
memory = memory * c
c = c -1
}
}
return memory;
static List<int> SortArray(int[] array)
{
int[] result = new int[array.Length];
List<int> memory = new List<int>();
List<int> toResult = new List<int>();
foreach (var x in array)
{
memory.Add(x);
using Emgu.CV;
using Emgu.CV.UI;
using Emgu.CV.Structure;
using System.Threading;
namespace WindowsFormsApp1
{
public class Connection
{
public string IPStream { get; set; }
class Monarchy
{
public enum Title
{
Emperor,
King,
Regent,
Imperial_Prince,
Real_Prince,
Grand_Prince,
@paulohenriquesn
paulohenriquesn / Type with Microphone.py
Created January 11, 2019 18:41
Type with Microphone with Python
import speech_recognition as sr
from pyautogui import press, typewrite, hotkey
r = sr.Recognizer()
with sr.Microphone() as source:
while True:
try:
audio = r.listen(source)
result = r.recognize_google(audio,language="pt-BR")
@paulohenriquesn
paulohenriquesn / _int.cs
Created May 15, 2019 07:31
Array Extension
using System;
public class _int
{
//Author Paulo Henrique
private Int32[] _ = new Int32[1024];
private short index;
public void setIndex(short value) { index = value; }
public short getIndex() { return this.index; }
<Button variant="contained" id="btnEntrar" style={{
backgroundColor: '#67BF59',
fontSize:25,
fontWeight: 'bold'
}}
color="primary" onClick={() => {
alert('yeah button');
}}>Entrar</Button>
<p style={{zIndex:-1}}>aeaeaesa</p>
//arquivo api.js
import axios from 'axios';
const api = axios.create({
baseURL: "https://min-api.cryptocompare.com"
});
export default api;
//arquivo de request;
(async () => {
const si = require('systeminformation');
const cron = require('node-cron')
let counter = 0;
let Seed = `${new Date().getSeconds()}${new Date().getDate()}`;