Skip to content

Instantly share code, notes, and snippets.

View tonyomendoza's full-sized avatar
😼
READY TO GO

Tony Mendoza tonyomendoza

😼
READY TO GO
View GitHub Profile
@tonyomendoza
tonyomendoza / MyMirrorNetworkManager.cs
Created August 23, 2022 09:21
Custom Mirror Network Manager Example (works with GUI)
/* This is to be used with a GUI. For example, a button to Start the Server can call "Start Host" */
using Mirror;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MyMirrorNetworkManager : NetworkManager
{
public override void OnClientConnect()
<?php
use Illuminate\Database\Seeder;
use Carbon\Carbon;
class SampleSeeder extends Seeder
{
/**
* Run the database seeds.
*
@tonyomendoza
tonyomendoza / test_migration.php
Created April 6, 2020 02:37
A Test Migration for Laravel.
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class TestMigration extends Migration
{
/**
* Run the migrations.
@tonyomendoza
tonyomendoza / la-311-endpoint-creation.rb
Last active September 13, 2019 15:00
Terminal Incantation for adding Los Angeles 311 Service Request to the Citygram server
Publisher.create! do |pub|
pub.title = "MyLA311 Service Requests"
pub.endpoint = "https://citygram-los-angeles-registry.herokuapp.com/los-angeles-311-service-requests"
pub.active = true
pub.visible = true
pub.city = "Los Angeles"
pub.icon = "los-angeles/la-311.png"
pub.state = "CA"
pub.description = "Los Angeles"
pub.tags = ["los-angeles"]
@tonyomendoza
tonyomendoza / los-angeles-endpoint-creation.rb
Created July 10, 2018 01:57
Terminal Incantation for adding Los Angeles to the Citygram server
Publisher.create! do |pub|
pub.title = "Building Permits"
pub.endpoint = "https://citygram-los-angeles-registry.herokuapp.com/los-angeles-building-permits"
pub.active = true
pub.visible = true
pub.city = "Los Angeles"
pub.icon = "building-permits.png"
pub.state = "CA"
pub.description = "Los Angeles"
pub.tags = ["los-angeles"]
@tonyomendoza
tonyomendoza / citygram-sequel-error.md
Last active April 12, 2018 08:28
Citygram Installation Sequel Error for both Vagrant and Mac OSX High Sierra installation.

Last login: Thu Apr 12 01:00:24 on ttys003 Tonys-MacBook-Air:~ tonymendoza$ cd citygram-dev/citygram

Tonys-MacBook-Air:citygram tonymendoza$ bundle exec rake publishers:download

/Users/tonymendoza/.rvm/gems/ruby-2.5.0/gems/sequel-4.12.0/lib/sequel/database/schema_generator.rb:19: warning: constant ::Fixnum is deprecated /Users/tonymendoza/.rvm/gems/ruby-2.5.0/gems/sequel-4.12.0/lib/sequel/database/schema_generator.rb:19: warning: constant ::Bignum is deprecated /Users/tonymendoza/.rvm/gems/ruby-2.5.0/gems/sinatra-1.4.6/lib/sinatra/base.rb:1225: warning: constant ::Fixnum is deprecated /Users/tonymendoza/.rvm/gems/ruby-2.5.0/gems/sinatra-1.4.6/lib/sinatra/base.rb:1225: warning: constant ::Fixnum is deprecated /Users/tonymendoza/.rvm/gems/ruby-2.5.0/gems/sinatra-1.4.6/lib/sinatra/base.rb:1225: warning: constant ::Fixnum is deprecated