Skip to content

Instantly share code, notes, and snippets.

View realStandal's full-sized avatar
🦙

Ryan Lockard realStandal

🦙
  • Warren, Michigan
  • 12:28 (UTC -04:00)
View GitHub Profile
@realStandal
realStandal / UG_ZoneList.inc
Last active February 1, 2019 05:12
Updated GTA San Andreas zone list for GTA Underground (Vice and Liberty city added)
enum E_SAZONE
{
zName[34],
Float:zArea[6]
};
new ZonesList[][E_SAZONE] =
{
{"The Big Ear", {-410.00,1403.30,-3.00,-137.90,1681.20,200.00}},
{"Aldea Malvada",{-1372.10,2498.50,0.00,-1277.50,2615.30,200.00}},
{"Angel Pine",{-2324.90,-2584.20,-6.10,-1964.20,-2212.10,200.00}},
@realStandal
realStandal / leaderboard_master_return.json
Last active March 14, 2019 04:24
CodersQuest sample leaderboard GET request response
{
"user_token": "123XYZ", // JWT generated when the player logs in (located in the header of the request put here to illustrate)
"username": "test", // Player name
"user_score": 2468, // Found by adding all the player's score of each indavidual project together
"user_proj_scores": [
{
"level": 1,
"score": 1234 // The score in a particular level is found by converting the player's remaining time on a level to miliseconds
},
{
@realStandal
realStandal / leaderboard_put.json
Last active March 14, 2019 04:23
CodersQuest sample leaderboard PUT request
{
"user_token": "123XYZ", // JWT generated when the player logs in (located in the header of the request put here to illustrate)
"username": "test", // Players name
"character": "char_name", // Character used during a particular level
"user_score": 2468, // Found by adding all the player's score of each indavidual project together
"project": {
"level": 1, // Current level of the project (repeated from the path parameter)
"score": 1234, // Remaining time a player had with a particular level (in miliseconds)
},
"force_update": true // boolean to force the backend to update the held value for either the daily, weekly, or monthly high score
@realStandal
realStandal / leaderboard_put_master.json
Last active March 14, 2019 04:23
CodersQuest sample leaderboard PUT request. Attempts to update all projects with the supplied scores.
{
"userToken": "123", // Held in the header but put here to illustrate
"username": "test", // Players name
"user_score": 2468, // Found by adding all the player's score of each indavidual project together
"projects": [
{
"level": 1,
"score": 1234, // Remaining time in miliseconds a player had on a level
"force_update": false // Boolean to force an update on the held daily, weekly, and monthly score
},
@realStandal
realStandal / rows.lua
Created June 15, 2019 15:27
Stormworks Rows
-- Constant values
local CONST_CHAR_HEIGHT = 5
local CONST_CHAR_WIDTH = 4
local CONST_LINE_SPACING = 1
function onTick()
-- Example that adds two composite channels together and outputs the result
in1 = input.getNumber(1)
in2 = input.getNumber(2)
output.setNumber(1, in1 + in2)
@realStandal
realStandal / Vice City - Area Demo.pwn
Created July 19, 2019 00:28
Vice City Areas for PAWN.
#include <a_samp>
#include <core>
#include <float>
#pragma tabsize 0
enum E_SAZONE
{
zName[34],
Float:zArea[6]
{
{"Leaf Links", 4786.169921, -1191.349121, 0.000000, 5163.555664, -152.314941, 300.000000 },
{"Vice City Junkyard", 3791.689941, -719.529785, 300.000000, 3603.140136, -992.831054, 500.000000 },
{"Viceport", 3791.689941, -2729.530273, 0.000000, 4746.693847, -1848.658203, 300.000000 },
{"Washington Beach", 5312.399902, -828.049804, 0.000000, 5593.649902, -695.229980, 500.000000 },
{"Washington Beach", 5218.649902, -999.919921, 0.000000, 5593.649902, -828.049804, 500.000000 },
{"Washington Beach", 5437.399902, -1429.609863, 0.000000, 5593.649902, -999.919921, 500.000000 },
{"Washington Beach", 5218.649902, -1249.919921, 0.000000, 5390.529785, -999.919921, 500.000000 },
{"Washington Beach", 5046.779785, -1429.609863, 0.000000, 5437.399902, -1249.919921, 500.000000 },
{"Washington Beach", 5007.709960, -1585.859863, 0.000000, 5523.339843, -1429.609863, 500.000000 },
@realStandal
realStandal / day01.js
Created December 1, 2019 12:20
Advent of Code 2019
// Given:
// F = floor(M / 3) - 2
//
// Find the Fuel Required (F) for all of the given masses (M) day01.txt
day01();
/**
*
*/
@realStandal
realStandal / index.js
Last active December 1, 2020 02:55 — forked from isNotOkay/index.js
@angular/flex-layout with Storybook
import {
Meta,
Story,
} from '@storybook/angular'
import { FlexLayoutModule } from '@angular/flex-layout'
import { Button, } from './button.component'
export default {
title: 'Molecule/Button',
@realStandal
realStandal / snapcraft.yaml
Last active January 28, 2021 21:08
Kiosked Electron running on Ubuntu Core powered by a Raspberry Pi 3 Model B for
# Taken from https://forum.snapcraft.io/t/greatly-simplified-electron-kiosk-snaps/21303
# Modified to work with https://launchpad.net and to explicitly build for `arm64` architectures (Pi-3-B)
name: electron-hello-world-kiosk
version: '0.1'
summary: Hello World Electron app for a Kiosk
description: |
Simple Hello World Electron app as an example of a HTML5 Kiosk
base: core18
confinement: strict
grade: devel