This file contains hidden or 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
#ler uma matriz e calcular seu determinante | |
matriz2x2 = [[-1,2],[3,1]] | |
print(matriz2x2) | |
#calcula a diagonal principal | |
diagonal_principal = matriz2x2[0][0] * matriz2x2[1][1] | |
#calcula a diagonal secundaria | |
diagonal_secundaria = matriz2x2[0][1] * matriz2x2[1][0] |
This file contains hidden or 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
/home/residentes01/imersao/biserver-ce-4.8.0-stable/data-integration | |
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/events/DisposeListener | |
at java.lang.ClassLoader.defineClass1(Native Method) | |
at java.lang.ClassLoader.defineClass(ClassLoader.java:643) | |
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) | |
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) | |
at java.net.URLClassLoader.access$000(URLClassLoader.java:73) | |
at java.net.URLClassLoader$1.run(URLClassLoader.java:212) | |
at java.security.AccessController.doPrivileged(Native Method) | |
at java.net.URLClassLoader.findClass(URLClassLoader.java:205) |
This file contains hidden or 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
def show | |
@post = current_manager.post.find(params[:id]) | |
unless @post | |
flash[:error] = 'Você não permissão para acessar essa página' | |
redirect_to manager_root_path | |
end | |
add_breadcrumb "Post ##{@post.id}", request.url | |
end |