Skip to content

Instantly share code, notes, and snippets.

@fredrb
fredrb / anim.jq.js
Created June 6, 2014 04:45
Zira Machine UI
$(document).ready(function(){
var _s = false;
var g_theme = 0;
var jump = true;
var _log;
/*
* ACTION BOX HOVER
#include<stdio.h>
#include<stdlib.h>
void print_array( int *arr , int size );
int main() {
int a[10] = { 2, 7, 3, 4, 5, 6, 1, 8, 9, 10 };
print_array(a, sizeof(a) / sizeof(int));
return 0;
#include<cstdio>
#include<cstdlib>
#include<iostream>
const int ARRAY_SIZE = 20;
const int MAX_VALUE = 999;
typedef struct N_NODE{
struct N_NODE *n_next;
struct N_NODE *n_prev;
@fredrb
fredrb / main.cpp
Created November 17, 2014 10:46
Bucket sort
void bSort(int arr[], int size, int max){
int bucket[max];
int resultIndex = 0;
for(int i = 0; i < max; i++)
bucket[i] = 0;
for(int i = 0; i < size; i++)
bucket[arr[i]]++;
convert -resize 10% image.jpg re_image.jpg
# 1) Buscar a lista de doenças que iniciam com a letra “N” e em ordem alfabética
SELECT * FROM Doenca WHERE descricao LIKE 'N%'
# 2) Buscar os dados dos pacientes que estão com sarampo.
SELECT
*
FROM
Paciente
INNER JOIN
Consulta
### Keybase proof
I hereby claim:
* I am fredrb on github.
* I am fredrb (https://keybase.io/fredrb) on keybase.
* I have a public key whose fingerprint is 1235 4689 28A3 546C 821E 1A2B F51A D068 AF8C 7539
To claim this, I am signing this object:

Inspired By: https://github.com/guyroyse/evercraft-kata

EverCraft Kata

Character Definition

Feature One: Character Sheet

As a player, I want to create a character sheet that contains the basic information of my character:

DIY Node Version Manager

I have developed with NodeJS professionally and for personal projects for somewhat four years now. JavaScript and the NodeJS ecosystem has never been my favorite stack, but I always managed fine. As the need to manage application releases and parallel projects using Node grew, I started looking for a project such as Ruby's rvm. I was alone back then, and was managing different Node versions myself. Luckily the community had already provided a project called nvm, which had a very similar interface to rvm. Me and nvm got well together and became good friends, as I was with my former buddy rvm in the past. Things went pretty well for a good couple of years until I had to travel to other technologies and we stopped talking. Fast forward to a few months ago, I was setting up a new workspace, and decided to reach out to nvm again, since I was about to start another project using node. Unfortunately, the experience was not as joyful.

I like to make my own .zshrc configurat

provider "aws" {
version = "~> 2.0"
region = "us-east-1"
}
resource "aws_dynamodb_table" "example-terraform" {
name = "TerraformExample"
billing_mode = "PROVISIONED"
read_capacity = 20
write_capacity = 20