Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jcfausto on github.
  • I am jcfausto (https://keybase.io/jcfausto) on keybase.
  • I have a public key whose fingerprint is 0E72 35EF B439 7920 5E74 F7A8 8AD3 29E5 3828 3B17

To claim this, I am signing this object:

@jcfausto
jcfausto / main.cpp
Last active February 5, 2023 09:27
A SDL2 Basic Window
#include <iostream>
#include <SDL2/SDL.h>
// Graphics
const int WINDOW_WIDTH = 512;
const int WINDOW_HEIGHT = 284;
SDL_Window* g_main_window;
SDL_Renderer* g_main_renderer;
// Colors
Verifying that +jcfausto is my blockchain ID. https://onename.com/jcfausto
/*
* Given an Array of Strings
* This function will shuffle the String inside the array
* Created by: Julio Cesar Fausto
* http://github.com/jcfausto
*/
var phrases, phrases_count, random_index, random_phrase;
phrases = ['phrase1', 'phrase2', 'phrase3', 'phrase4'];
@jcfausto
jcfausto / shuffle.coffee
Created November 2, 2015 17:28
Coffeescript code to shuffle an array of strings in random order
###
# Given an Array of Strings
# This function will shuffle the String inside the array
# Created by: Julio Cesar Fausto
# http://github.com/jcfausto
###
phrases = [
'phrase1'
'phrase2'