Skip to content

Instantly share code, notes, and snippets.

View dretax's full-sized avatar

DreTaX dretax

View GitHub Profile
@dretax
dretax / gist:fe37b8baf55bc30e9d63
Created February 1, 2016 09:38
DirectInput Keyboard Scan Codes DirectX Programming
#ifndef H_DIK
#define H_DIK
// Listed are keyboard scan code constants, taken from dinput.h
#define DIK_ESCAPE 0x01
#define DIK_1 0x02
#define DIK_2 0x03
#define DIK_3 0x04
#define DIK_4 0x05
format long
itt = 10000000;
leib = 1;
for i=3:4:itt
leib = leib - (1.0 / i) + (1.0 / (i + 2));
end
@dretax
dretax / progzh2.cs
Last active September 29, 2016 10:22
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace IziProgZH2
{
internal class Program
{
internal const string cuser = "gipszjakab";
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"};
internal double RadianToDegree(double angle)
{
return angle * (180.0 / Math.PI);
}
%Csúszó ablak:
%t+1
%t <- nyers érték
% t-1 <- szűrt érték
% t-2
% ...
x =[-pi:0.01:pi];
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace iziprogzh4
{
internal class Program
{
internal static int[] list = new int[100];
@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
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace IziProgZH5
{
class Program
{