Skip to content

Instantly share code, notes, and snippets.

View matchilling's full-sized avatar
🎯
Focusing

Matías J. Schilling matchilling

🎯
Focusing
View GitHub Profile
@matchilling
matchilling / README-Template.md
Created November 4, 2017 01:16 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@matchilling
matchilling / ISSUE_TEMPLATE-Template.md
Created November 16, 2017 10:15
A template to make good ISSUE_TEMPLATE.md

Step 1: Are you in the right place?

  • For issues or feature requests related to the code in this repository file a Github issue.
  • For general technical questions, post a question on StackOverflow tagged appropriately.

Step 2: Describe your environment

  • Device: _____
  • OS version: _____
  • SDK version: _____
@matchilling
matchilling / error-face.html
Created November 16, 2017 16:47
A funny error face
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Error Face</title>
</head>
<body>
<span class="error-icon">
<span class="error-face">
@matchilling
matchilling / index.css
Created November 16, 2017 16:47
LimpKookyDeviltasmanian created by anonymous - https://repl.it/repls/LimpKookyDeviltasmanian
.error-icon {
position: relative;
display: inline-block;
width: 90px;
height: 90px;
background-color: #fff;
border-radius: 50%;
}
.error-face {
function getJoke() {
var req = new XMLHttpRequest();
req.onreadystatechange = function() {
if (4 == req.readyState && 200 == req.status) {
var reponse = JSON.parse(req.responseText);
console.log(reponse);
}
}
<div class="wrapper">
<div class="arrow left">&nbsp;</div>
<br />
<div class="arrow right">&nbsp;</div>
</div>
<style>
body {
padding: 0;
margin: 0;
@matchilling
matchilling / carbono.json
Last active June 12, 2019 07:28
🔥 Carbono - The Team Red CO₂ Meter
[{"temperature_C":29.29,"humidity":37,"pressure_hPa":1010,"time":1559916427,"eCO2":400,"TVOC":0},{"temperature_C":29.31,"humidity":37,"pressure_hPa":1010,"time":1559916432,"eCO2":400,"TVOC":0},{"temperature_C":29.38,"humidity":37,"pressure_hPa":1010,"time":1559916437,"eCO2":400,"TVOC":0},{"temperature_C":29.41,"humidity":37,"pressure_hPa":1010,"time":1559916442,"eCO2":400,"TVOC":0},{"temperature_C":29.43,"humidity":37,"pressure_hPa":1010,"time":1559916447,"eCO2":400,"TVOC":0},{"temperature_C":28.86,"humidity":38,"pressure_hPa":1010,"time":1559916485,"eCO2":400,"TVOC":0},{"temperature_C":28.94,"humidity":38,"pressure_hPa":1010,"time":1559916490,"eCO2":400,"TVOC":0},{"temperature_C":29.03,"humidity":37,"pressure_hPa":1010,"time":1559916495,"eCO2":400,"TVOC":0},{"temperature_C":29.09,"humidity":37,"pressure_hPa":1010,"time":1559916500,"eCO2":400,"TVOC":0},{"temperature_C":29.13,"humidity":37,"pressure_hPa":1010,"time":1559916505,"eCO2":400,"TVOC":0},{"temperature_C":29.17,"humidity":37,"pressure_hPa":1010,"time"
@matchilling
matchilling / Dockerfile
Last active December 24, 2019 10:08
Install ImageMagick on Docker CentOS
FROM centos:centos7
MAINTAINER Mathias Schilling <m@matchilling.com>
ENV IMAGEMAGICK_VERSION="7.0.9-10"
ENV IMAGEMAGICK_LIB_RPM_URL="https://imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-libs-${IMAGEMAGICK_VERSION}.x86_64.rpm"
ENV IMAGEMAGICK_RPM_URL="https://imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-${IMAGEMAGICK_VERSION}.x86_64.rpm"
RUN export HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" $IMAGEMAGICK_RPM_URL)
RUN if [ $HTTP_CODE != "200" ] ; then echo "$IMAGEMAGICK_RPM_URL does not exist" && exit 1 ; fi
@matchilling
matchilling / README.md
Last active May 3, 2020 09:24
Setting autogenerated Id manually in Hibernate

Setting auto-generated Ids manually with Hibernate

In this tutorial, you will learn how to implement a custom IdentifierGenerator to support auto-generated and manually assigned Ids using Hibernate.

Continue reading ...

@matchilling
matchilling / ObjectMapper.java
Last active December 12, 2020 17:25
IntelliJ Debugger - View object as JSON
new com.fasterxml.jackson.databind.ObjectMapper()
.setSerializationInclusion(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
.writeValueAsString(this);