Skip to content

Instantly share code, notes, and snippets.

View dretax's full-sized avatar

DreTaX dretax

View GitHub Profile
@dretax
dretax / DirectX.cs
Created October 10, 2018 18:16
DirectInput keyboard scan codes
public enum DirectXKeyStrokes
{
DIK_ESCAPE = 0x01,
DIK_1 = 0x02,
DIK_2 = 0x03,
DIK_3 = 0x04,
DIK_4 = 0x05,
DIK_5 = 0x06,
DIK_6 = 0x07,
DIK_7 = 0x08,
img_bw = img_gray;
treshold_level = 0.4; % mean(mean(img_gray))
for i = 1 : info.Height
for j = 1 : info.Width
if (img_gray(i,j) > treshold_level)
img_bw(i, j) = 255;
else
img_bw(i, j) = 0;
end
end
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2
{
internal class Program
{
internal static int[,] Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace IziProgZH5
{
class Program
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace iziprogzh4
{
internal class Program
{
@dretax
dretax / caesar.cs
Last active October 13, 2016 11:32
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace iziprogzh4
{
internal class Program
{
internal static string Caesar(string value, int shift, bool Encrypt = true)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace iziprogzh4
{
internal class Program
{
internal static int[] list = new int[100];
%Csúszó ablak:
%t+1
%t <- nyers érték
% t-1 <- szűrt érték
% t-2
% ...
x =[-pi:0.01:pi];
internal double RadianToDegree(double angle)
{
return angle * (180.0 / Math.PI);
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace iziprogzh3
{
internal class Program
{
internal static string[] list = new string[] { "alma", "narancs", "barack"};