Skip to content

Instantly share code, notes, and snippets.

@arthurzam
arthurzam / QMPlay2-0001-Cpack.patch
Created July 30, 2016 06:50
QMPlay2 various patches
From 977d56505964896e696d406d4af8c8e747989ef2 Mon Sep 17 00:00:00 2001
From: Zamarin Arthur <arthurzam@gmail.com>
Date: Sat, 2 Jul 2016 17:01:46 +0300
Subject: [PATCH] CPack
* global variables
---
CMakeLists.txt | 6 ++++++
src/cmake/Modules/MyCPackConfig.cmake | 19 +++++++++++++++++++
2 files changed, 25 insertions(+)
@arthurzam
arthurzam / OpenGL.pro
Created May 31, 2015 06:26
Mini OpenGL-Qt app
#-------------------------------------------------
#
# Project created by QtCreator 2014-07-03T15:02:32
#
#-------------------------------------------------
QT += core gui opengl
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
@arthurzam
arthurzam / planet_war.py
Last active August 29, 2015 14:04
Game
def do_turn(pw):
source = None
source_num_ships = 0
my_planets = pw.my_planets()
dest = -1
dest_score = -999999
srcR = -1
list = pw.not_my_planets()
if(0 < len(list) < 2):
@arthurzam
arthurzam / keylogger.cs
Created March 8, 2014 15:15
KeyLogger
using System;
using System.Diagnostics;
using System.IO;
using System.Net.Mail;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
namespace KEY
{