Skip to content

Instantly share code, notes, and snippets.

View paulohenriquesn's full-sized avatar

Paulo Henrique paulohenriquesn

View GitHub Profile
@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; }
@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")
class Monarchy
{
public enum Title
{
Emperor,
King,
Regent,
Imperial_Prince,
Real_Prince,
Grand_Prince,
using Emgu.CV;
using Emgu.CV.UI;
using Emgu.CV.Structure;
using System.Threading;
namespace WindowsFormsApp1
{
public class Connection
{
public string IPStream { get; set; }
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);
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;
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;
private static void NoFlood(string _)
{
string value = String.Empty;
int? cCList,cCPointer = null;
int m = 0x0;
string[] memoryStrings = new string[124];
int counter = 0;
char[] CharList = _.ToCharArray();
public static async void GetResponse(string server,string @params)
{
httpWebRequest = (HttpWebRequest)WebRequest.Create($"http://{server}/{@params}");
HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();
string method = httpWebResponse.Method;
if (String.Compare(method, "GET") == 0)
{
Stream receiveStream = httpWebResponse.GetResponseStream();
StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8);
// MessageBox.Show(readStream.ReadToEnd());
Public Class Form1
Dim Hack As New CS2DHack.CS2DHack
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim speedvalue As String = TextBox1.Text
Try
WriteDMAInteger(processo, &H69EFAC, New Integer() {&H20C}, speedvalue, 1)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub