Skip to content

Instantly share code, notes, and snippets.

View felipecustodio's full-sized avatar
🌺

Felipe Scrochio Custódio felipecustodio

🌺
View GitHub Profile
@felipecustodio
felipecustodio / README.md
Created August 21, 2016 06:49 — forked from zenorocha/README.md
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage

@felipecustodio
felipecustodio / markdown.md
Created August 25, 2016 04:41 — forked from jonschlinkert/markdown-cheatsheet.md
A better markdown cheatsheet. I used Bootstrap's Base CSS documentation as a reference.

Typography

Headings

Headings from h1 through h6 are constructed with a # for each level:

# h1 Heading
## h2 Heading
### h3 Heading
@felipecustodio
felipecustodio / enable1.py
Created August 27, 2016 07:27
Get enable1.txt dictionary
import urllib2
# Create dictionary
words = []
for line in urllib2.urlopen("https://raw.githubusercontent.com/dolph/dictionary/master/enable1.txt"):
words.append(line)
@felipecustodio
felipecustodio / arch-linux-install
Created September 25, 2016 01:34 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
@felipecustodio
felipecustodio / Makefile
Created December 12, 2016 06:44
Makefile template for C college assignments
# using gcc compiler
CC = gcc
# output path and filename
BINARY = ./build/output
# sources directory
SRC = src/main.c
# includes directory
@felipecustodio
felipecustodio / benchmarking.c
Created December 12, 2016 06:48
Benchmarking C code for college assignments
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
int main(int argc, char const *argv[]) {
/* benchmarking */
clock_t start_t, end_t;
float delta_t = 0.0;
@felipecustodio
felipecustodio / strings.c
Last active December 12, 2016 06:52
String functions for C college assignments
#include <stdio.h>
#include <stdlib.h>
/* read string from stdin */
char* readString(char end) {
char* string = NULL;
char value = '@';
int counter = 0;
while (value != end) {
@felipecustodio
felipecustodio / github-markdown.md
Last active November 16, 2017 01:10
Personal cheatsheet for Github markdown
@felipecustodio
felipecustodio / readme.md
Created April 2, 2018 05:07
Template for my college studies repositories

CODE - NAME

College studies on CODE - NAME @ ICMC - University of São Paulo.


Assignment 1

@felipecustodio
felipecustodio / colors.py
Created April 18, 2018 15:01
Colorized output for errors when executing python script on terminal
if __name__ == '__main__':
try:
import IPython.core.ultratb
except ImportError:
# No IPython. Use default exception printing.
pass
else:
import sys
sys.excepthook = IPython.core.ultratb.ColorTB()
main()