Skip to content

Instantly share code, notes, and snippets.

View jesobreira's full-sized avatar
💭
Implementing new bugs to fix later.

Jefrey Sobreira Santos jesobreira

💭
Implementing new bugs to fix later.
View GitHub Profile
@jesobreira
jesobreira / url-encode.c
Created January 22, 2019 21:21 — forked from sudar/url-encode.c
URL Encoding in C (urlencode / encodeURIComponent)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char* urlencode(char* originalText)
{
// allocate memory for the worst possible case (all characters need to be encoded)
char *encodedText = (char *)malloc(sizeof(char)*strlen(originalText)*3+1);
@jesobreira
jesobreira / bootstrap-vertical-grid.css
Last active November 21, 2018 05:48 — forked from metaist/bootstrap-vertical-grid.css
Bootstrap vertical grid. For laying out full-screen fixed height webapps.
html,body {
height: 100%;
user-select: none;
}
.container-fixed {
bottom: 0;
position: fixed;
left: 0;
right: 0;