Skip to content

Instantly share code, notes, and snippets.

View carlosanders's full-sized avatar

Carlos Anders carlosanders

  • Rio de Janeiro
  • 02:56 (UTC -03:00)
View GitHub Profile
@carlosanders
carlosanders / jeasyui.combobox.getrow.js
Last active February 12, 2017 15:18
Plugin para retornar a row do item selecionado na combobox do jQuery EasyUI
/**
* @description The plugin returns the JSON of the combobox the jQuery EasyUI
* @author Carlos Anders
* @link http://www.andershost.com.br
*/
(function ($) {
$.extend($.fn.combobox.methods, {
/**
* The method returns the data in the JSON object of the
* selected item in the combobox
We couldn’t find that file to show.
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="http://code.jquery.com/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.16/vue.js"></script>
<title>JS Bin</title>
</head>

Comandos Docker

docker --version
docker ps
docker ps -a
docker rm 0b3bbe2214ac
docker image rm f2a91732366c
docker images
docker run -d nginx
#
# Project specific excludes
#
tomcat
#
# Default excludes
# link: https://github.com/github/gitignore
#
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
# Encrypt the repository
# Remove/modify this line if the repository is meant to be open-source
*.* filter=git-crypt diff=git-crypt
.gitattributes !filter !diff
# These files are text and should be normalized (Convert crlf => lf)
*.php text
*.css text
*.js text
*.htm text
#https://gist.github.com/pksunkara/988716
[user]
name = Anders
email = [email protected]
[core]
#editor = subl.exe
editor = 'C:/Microsoft VS Code/Code.exe' -w
[http]
sslverify = false
[mergetool]
@carlosanders
carlosanders / macosx_remove_java9.sh
Last active September 29, 2017 00:33 — forked from schnell18/macosx_remove_java9.sh
MacOS X remove Java 9
# remove java9 mac
# fonte: https://www.java.com/pt_BR/download/help/mac_uninstall_java.xml
sudo rm -fr /Library/Java/JavaVirtualMachines/jdk-9.jdk/
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -fr /Library/LaunchAgents/com.oracle.java.Java-Updater.plist
sudo rm -fr /Library/LaunchDaemons/com.oracle.java.Helper-Tool.plist
sudo rm -fr /Library/Preferences/com.oracle.java.Helper-Tool.plist
sudo rm -fr ~/Library/Application\ Support/Java
...
catch (Exception e) {
// e.printStackTrace();
throw e;
// throw new Exception(e);
}
...
copyWorker.setOnFailed(evt -> {
System.out.println("Task failed!");
if (copyWorker.getException() instanceof IndexOutOfBoundsException) {