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
function isOnScreen(el) { | |
var win = $(window); | |
var winTop = win.scrollTop(); | |
var winBottom = winTop + win.height(); | |
var elTop = el.offset().top; | |
var elBottom = elTop + el.height(); | |
return winTop <= elBottom && winBottom >= elTop; |
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
* { margin: 0; padding: 0; } | |
.content-modal { | |
width: 800px; | |
height: 400px; | |
background: #fff; | |
margin-left: -400px; | |
margin-top: -200px; | |
position: absolute; | |
left: 50%; |
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
import java.math.BigInteger; | |
import java.security.*; | |
public static void main(String[] args) { | |
String texto = "admin"; | |
Criptografar(texto); | |
} | |
public static void Criptografar(String str) { | |
try { |
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
import java.util.regex.*; | |
public static void main(String[] args) { | |
String texto = "_Java Netbeans_"; | |
String regex = "[\\W_]"; // Expressao Regular ([\W_] = Não é permitido caracter especial) | |
Pattern p = Pattern.compile(regex); | |
if(!"".equals(texto)) { | |
for(int i = 0; i < texto.length(); i++) { | |
char c = texto.charAt(i); | |
String conversao = Character.toString(c); |
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
import java.sql.*; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
import javax.swing.JOptionPane; | |
public class Connect { | |
public Statement stm; // Responsavel por preparar e realizar pesquisas no banco de dados; | |
public ResultSet rs; // Responsavel por armazenar o resultado de um pesquisa passada para o statement; | |
private String driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; | |
private String caminho = "jdbc:sqlserver://localhost:1433;databaseName=control"; // O "control" representa a minha database |
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
Bibliotecas > Adicionar Biblioteca > Driver JDBC do PostgreSQL |
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
function setDimensions(){ | |
var windowsWidth = $(window).width(); | |
$('.content img').css('width', windowsWidth + 'px'); | |
} | |
$(document).ready(function() { | |
setDimensions(); | |
}); | |
$(window).resize(function() { |
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
http://www.fontsquirrel.com/tools/webfont-generator | |
@font-face { | |
font-family: 'NewJuneRegular'; | |
src: url('fonts/regular/newjuneregular-webfont.eot'); | |
src: url('fonts/regular/newjuneregular-webfont.eot?#iefix') format('embedded-opentype'), | |
url('fonts/regular/newjuneregular-webfont.woff2') format('woff2'), | |
url('fonts/regular/newjuneregular-webfont.woff') format('woff'), | |
url('fonts/regular/newjuneregular-webfont.ttf') format('truetype'), | |
url('fonts/regular/newjuneregular-webfont.svg#newjuneregularregular') format('svg'); |
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
Plugins: | |
Emmet | |
autocomplete-paths | |
/-- | |
File > Settings > Keybindings > "your keymap file" | |
'atom-text-editor': |
NewerOlder