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.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
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
* { 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
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
Plugins: | |
Emmet | |
autocomplete-paths | |
/-- | |
File > Settings > Keybindings > "your keymap file" | |
'atom-text-editor': |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<form id="myform" method="post"> | |
<input type="text" id="nome" name="nome" placeholder="nome"> |
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
$('form').submit(function(){ | |
$(this)[0].reset(); | |
}); |
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
$tablet: 768px; | |
@mixin tablet { | |
@media (max-width: #{$tablet}) { | |
@content; | |
} | |
} | |
p { | |
font-size: 18px; |
OlderNewer