This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img src="data:image/*;base64, | |
/9j/4AAQSkZJRgABAQAAAQABAAD//gA8Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcg | |
SlBFRyB2NjIpLCBxdWFsaXR5ID0gMTAwCv/bAEMAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB | |
AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/bAEMBAQEBAQEBAQEBAQEBAQEB | |
AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIALIA | |
sgMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQD | |
BQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygp | |
KjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJma | |
oqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/ | |
xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class UpdateHashMap { | |
public static void main(String [] args) { | |
Map<String, String[]> formParameters = new HashMap<>(); | |
String[] a = new String[1]; | |
a[0] = "done"; | |
String[] b = new String[1]; | |
b[0] = "lua_çêéóú.JPG"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Exemplo que recebe uma lista de ids no Controller, vindo de um form JQuery | |
* | |
* @param ids businessFiles | |
* @return modelAndView | |
* @throws BusinessFileAccessDeniedException | |
*/ | |
@RequestMapping(method = RequestMethod.POST, value = MultiAssetsSelectionView.METADATA_EDIT_ROUTE) | |
@RolesAllowed({"visto.dam.asset.multiselection.multi.edition.edit"}) | |
public ModelAndView loadForm(@Valid final @RequestParam("ids") List<String> ids) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $form = $('<form method="post" action="'+baseUrl+'/dam/asset/multi-selection/metadata/multi/edit">'); | |
//Aqui meus ids estavam armazenados no localStorage, ai só iterei e concatenei nos inputs | |
for (var i in window.localStorage) { | |
if (i.indexOf('_v-') === -1) { | |
continue; | |
} | |
businessFiles[index] = i.replace('_v-', ''); | |
$form.append('<input type="hidden" name = "ids" value="'+businessFiles[index] +'"/>'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Configurando informações sobre o autor dos commits: | |
git config --global user.name "Felipe Lima" | |
git config --global user.email "felipebizz@gmail.com" | |
É possível alterar essas informações no arquivo ~/.gitconfig | |
#Criando um repositório local: | |
cd meuprojeto | |
git init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create file: | |
sudo vim /usr/share/applications/intellij.desktop | |
// add the following | |
[Desktop Entry] | |
Version=13.0 | |
Type=Application | |
Terminal=false | |
Icon[en_US]=/opt/idea/bin/idea.png | |
Name[en_US]=IntelliJ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Felipe Lima | |
email = felipe.lima@arizona.com.br | |
[core] | |
excludesfile = ~/.gitignore_global | |
editor = /usr/bin/vim | |
# Mergetool for mac os env | |
# [mergetool "sourcetree"] |
NewerOlder