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
<?php | |
echo $_FILES['arquivo']['name']; | |
if(isset($_FILES['arquivo'])){ | |
$diretorio = "dist/"; | |
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
/* BOGUS */ | |
input:checked { | |
/* Adds a 5px border to bottom of this element */ | |
border-bottom: 5px solid green; | |
} | |
/* BEAUTIFUL */ | |
input:checked { | |
/* Adds "selected" indicator to this element */ | |
border-bottom: 5px solid green; |
To install Atom in Ubuntu 14.04, 13.10 or 12.04 (64bits only!) and derivatives (Linux Mint, elementary OS, etc.), use the following commands:
$ [sudo] add-apt-repository ppa:webupd8team/atom
$ [sudo] apt-get update
$ [sudo] apt-get install atom
Before installing Atom, remember that it's still in beta so you may find bugs or missing / incomplete features!
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
// Straightforward + simple. | |
$("button").on("click", function(event) { | |
event.preventDefault(); | |
var button = $(this); | |
var numberElem = button.find(".number"); | |
var number = Number(numberElem.text()) - 1; | |
numberElem.text(number); | |
if (number === 0) { | |
button.prop("disabled", true); | |
button.off("click"); |