Skip to content

Instantly share code, notes, and snippets.

View turbo's full-sized avatar

Pierre turbo

View GitHub Profile
@turbo
turbo / Main.au3
Created April 30, 2015 21:04
AutoIt Realtime Node Framework (Prototype)
Opt("GUIOnEventMode", 1)
Global Const $iGUIWidth = 1000
Global Const $iGUIHeight = 600
GUICreate("Node Test", $iGUIWidth, $iGUIHeight, -1, -1, -1, 34078728)
GUISetBkColor(0x404040)
GUISetOnEvent(-3, "exut")
GUISetFont(7)
@turbo
turbo / PolyPlay.au3
Created May 15, 2015 21:09
PolyPlay: A nice GDI effect.
Opt("GUIOnEventMode", 1)
; Start messing around = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Local $ForeRed = 0, $ForeGreen = 0, $ForeBlue = 0 ; Color 1
Local $BackRed = 255, $BackGreen = 0, $BackBlue = 0 ; Color 2
Local $AntiAliasing = 1 ; Antialiasing (kind of...)
Local $RotRange = 100 ; rotation
@turbo
turbo / readcolor.au3
Created June 14, 2015 09:15
Read pixel from hidden window
#include <WinAPI.au3>
#include <WindowsConstants.au3>
Opt("WinTitleMatchMode", 2)
Local $hCompDC = _WinAPI_CreateCompatibleDC(0)
Local $tBMI = DllStructCreate($tagBITMAPINFO)
DllStructSetData($tBMI, 1, DllStructGetSize($tBMI) - 4) ; size of struct
DllStructSetData($tBMI, 2, 400) ; width
DllStructSetData($tBMI, 3, 400) ; height
@turbo
turbo / VBMathCLE.vb
Created October 15, 2015 14:22
VBMath Rnd() 1:1 Clone
' removed Compiler dependcies.
Public NotInheritable Class VBMathCLE
Private Shared Power2 As Integer()
Private Shared m_rndSeed As Integer
Shared Sub New()
Dim numArray() As Integer = {0, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}
Power2 = numArray
End Sub
@turbo
turbo / lol.c
Created November 9, 2015 23:30
Experiment
#include <unistd.h>/* minxomat */
#define omg ) {
#define lol ; write ( 1 , o , 1
#define ha char r[2], *o=r; main(
#define l ; -- *
#define hi ++ * o;
#define hah(a) ; while ( * a omg
#define lal l o l
#define lmao lal o lal o lal
#define ohmahgod ) ; exit ( 0);}
@turbo
turbo / Rosetta_EN_UTF8+BOM.txt
Created December 17, 2015 23:47
TRANSLATION OF THE ROSETTA STONE from The Nile, Notes for Travelers in Egypt, by E. A. Wallis Budge, 9th Edition, London, Thos. Cook and Son, [1905], pp. 199-211.
TRANSLATION OF THE HIEROGLYPHIC TEXT OF THE DECREE OF THE PRIESTS OF MEMPHIS, AS FOUND ON THE ROSETTA STONE 1 AND ON THE STELE OF DAMANHÛR. THE DECREE WAS PROMULGATED IN THE 9TH YEAR OF THE REIGN OF PTOLEMY V. EPIPHANES.
1. On the twenty-fourth day of the month GORPIAIOS 2, which correspondeth to the twenty-fourth day of the fourth month of the season PERT 3 of the inhabitants of TA-MERT (EGYPT), in the twenty-third year of the reign of HORUS-RA the CHILD, who hath risen as King upon the throne of his father, the lord of the shrines of NEKHEBET 4 and UATCHET, 5 the mighty one of two-fold strength, the stablisher of the Two Lands, the beautifier of
2. Egypt, whose heart is perfect (or benevolent) towards the gods, the HORUS of Gold, who maketh perfect the life of the hamentet beings, the lord of the thirty-year festivals like PTAḤ, the sovereign prince like RĀ, the King of the South and North, Neterui-merui-ȧtui-ȧuā-setep-en-Ptaḥ-usr-ka-Rā-ānkh-sekhem-Ȧmen 6, the Son of the Sun Ptolemy, the ever-living, t
@turbo
turbo / cpu.c
Created December 18, 2015 00:03
linux kernel excerpt
/* CPU control.
* (C) 2001, 2002, 2003, 2004 Rusty Russell
*
* This code is licenced under the GPL.
*/
#include <linux/proc_fs.h>
#include <linux/smp.h>
#include <linux/init.h>
#include <linux/notifier.h>
#include <linux/sched.h>
' ****COMBAT ARENA****
' ***Version 1.51***
' **By: Jeff Copperthite**
'
'
' **This game may be distributed freely among friends or whomever, as long as
' ****this file remains UNCHANGED!!!!! Please enjoy the game****
'
' **Please email any comments or suggestions to:**
' *****JRC80@aol.com*****
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
/*============================================================
**
**
** Purpose: Base class which can be used to access any array
**
===========================================================*/
namespace System {
/*!
* jQuery JavaScript Library v1.11.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license