Skip to content

Instantly share code, notes, and snippets.

View avaz's full-sized avatar
🎯
Focusing

A Vaz avaz

🎯
Focusing
View GitHub Profile
@avaz
avaz / ExtraInformation.java
Last active June 21, 2022 16:29
Example of how to map a MySQL SQL JSON column to a Java Map in JPA
package net.taus.corporate.model.persistence.entities;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;

Keybase proof

I hereby claim:

  • I am avaz on github.
  • I am andersonvaz (https://keybase.io/andersonvaz) on keybase.
  • I have a public key whose fingerprint is DB05 17CF 4307 0CEA DB43 0BD8 85EB DD6D EC13 B594

To claim this, I am signing this object:

@avaz
avaz / alert-box-button.template.hbs
Created December 18, 2015 15:58
ContextualComponentsTriggerAction
{{#if hasBlock}}
{{yield}}
{{else}}
X
{{/if}}
@avaz
avaz / App.java
Last active August 29, 2015 14:21 — forked from treo/App.java
import javax.script.Invocable;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Random;
import java.util.function.Supplier;
public class App
@avaz
avaz / index.js
Created October 30, 2014 18:26
An approach to Bootstrap Modals in EmberJS using Mixins
import Ember from 'ember';
import ModalSupport from '../mixins/modal-support';
export default Ember.Controller.extend(ModalSupport, {
actions: {
tryModal: function() {
var _this = this;
_this.modalFor({template: 'some-template',
title: 'Some Title'})