Skip to content

Instantly share code, notes, and snippets.


Rafael Santiago rmxsantiago

View GitHub Profile
rmxsantiago /
Last active Jun 30, 2020
List of Free Image Resources
rmxsantiago / System
Created Sep 5, 2019 — forked from redhot2007/System
System Design Cheatsheet
View System

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
rmxsantiago /
Last active Sep 4, 2019
PHP Environment


  • Run brew install php


This will generate composer.phar

  • Run mv composer.phar /usr/local/bin/composer

To check if composer is globally available, run composer --version

rmxsantiago /
Last active Aug 15, 2019
Atom plugins I tested and use.
View videotest.json
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\n",
"sources" : [ "" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "" ],
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
import retrofit2.http.GET;
import retrofit2.http.Query;
import java.util.List;
rmxsantiago /
Created Aug 27, 2017
Regex which return content from each group
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Main {
public static void main(String[] args) {
Main main = new Main();
rmxsantiago / Animal.lua
Last active Aug 13, 2016
Lua Inheritance
View Animal.lua
Animal = { name="undefined",sound="no sound" }
function Animal:new (newname, newsound)
local o = {name=newname,sound=newsound}
setmetatable(o, self)
self.__index = self
return o
function Animal:toString()
You can’t perform that action at this time.