Skip to content

Instantly share code, notes, and snippets.

View thiagoblima's full-sized avatar
👁️‍🗨️

Thiago Lima thiagoblima

👁️‍🗨️
  • São Paulo, SP - Brazil
View GitHub Profile
@thiagoblima
thiagoblima / MyLoggerConfig.java
Created March 11, 2020 03:43 — forked from darbyluv2code/MyLoggerConfig.java
Spring Logging for Spring 5.1 - XML Configuration
package com.luv2code.springdemo;
import java.util.logging.ConsoleHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class MyLoggerConfig {
@thiagoblima
thiagoblima / memoryalloc.cpp
Last active December 5, 2018 14:01
Simple Malloc - dynamic memory allocation gist
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int *ptr;
ptr = (int*) malloc(5*sizeof(int));
if(!ptr)