Skip to content

Instantly share code, notes, and snippets.

@matula
matula / PushNotifications.php
Created February 22, 2017 03:41 — forked from joashp/PushNotifications.php
Simple PHP script to send Android Push Notification, iOS Push Notification and Windows Phone 8 Push Notification
<?php
// Server file
class PushNotifications {
// (Android)API access key from Google API's Console.
private static $API_ACCESS_KEY = 'AIzaSyDG3fYAj1uW7VB-wejaMJyJXiO5JagAsYI';
// (iOS) Private key's passphrase.
private static $passphrase = 'joashp';
// (Windows Phone 8) The name of our push channel.
private static $channelName = "joashp";
Library "Roku_Ads.brs"
sub init()
print "PlayerTask.brs [init]"
m.top.functionName = "playContentWithAds"
m.top.id = "PlayerTask"
end sub
sub playContentWithAds()
print "PlayerTask.brs [playContentWithAds]"

Keybase proof

I hereby claim:

  • I am matula on github.
  • I am matula (https://keybase.io/matula) on keybase.
  • I have a public key ASDWtZbNI9uI4Tfizwme1WTwq2foq7_3bxY5_cqgIbYd2go

To claim this, I am signing this object:

@matula
matula / rmmv_core_docs.md
Created March 31, 2025 17:38
Documenting the rpg_core.js file from RPG Maker MV

RPG Maker MV Core Script Documentation (rpg_core.js v1.6.2)

This document provides an overview of the classes, methods, and properties defined in the rpg_core.js file for RPG Maker MV.

JavaScript Extensions (JsExtensions)

This section adds utility methods to standard JavaScript objects.

  • Number.prototype.clamp(min, max): Returns a number limited to the given range (min, max).
  • Number.prototype.mod(n): Returns a modulo value that is always positive.
@matula
matula / rmmv_scenes_docs.md
Created April 3, 2025 19:39
RPG Maker MV documentation for "rpg_scenes.js"

RPG Maker MV Scene Script Documentation (rpg_scenes.js v1.6.2)

This document provides an overview of the Scene classes defined in the rpg_scenes.js file for RPG Maker MV. Scenes manage the different screens and states of the game, such as the title screen, map, menus, and battles.

Scene_Base

The superclass for all scenes in the game. It provides fundamental functionalities like managing fade-in/out, window layers, and the scene lifecycle.

Properties:

@matula
matula / rmmv_window_doc.md
Created April 7, 2025 21:36
RPG MAker MV documentation for rpg_windows.js

RPG Maker MV Window Script Documentation (rpg_windows.js v1.6.2)

This document provides an overview of the Window classes defined in the rpg_windows.js file for RPG Maker MV. These classes form the basis for all the menus, message boxes, and other interface elements seen in the game.

Window_Base

The superclass for almost all windows in the game. It provides core functionalities like drawing text, icons, faces, gauges, managing windowskins, opacity, padding, and basic open/close animations.

Key Properties: