Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| $(window).resize(function () { | |
| var h = $(window).height(), | |
| offsetTop = 60; // Calculate the top offset | |
| $('#map').css('height', (h - offsetTop)); | |
| }).resize(); |
| //Validar datas: | |
| //Quando abre o datapicker seleciona a menor data para ser o dia de hoje now(). | |
| var now = new Date(), | |
| minDateJS = now.toISOString().substring(0,10); | |
| //Seleciona a data de entrega do produto. | |
| //Aplica a data now (hoje) para ser a menor data selecionavel para a entrega do produto | |
| //Aplica a data de entrega do produto para ser a menor data possivel do evento | |
| $('#dt_entregaProd').datepicker({ |
| Usando xampp (apache) no windows: | |
| 0-NOTA: Melhor desligar o apache antes de fazer essas alteralcoes, ou ele podera causar erro quando for incializado novamente. | |
| 1-URL localhost aponta para o IP 127.0.0.1. Isso pode ser encontrado em C:\Windows\System32\drivers\etc\hosts ===> 127.0.0.1 localhost. | |
| 2-Fisicamente localhost aponta para C:\xampp\htdocs que vai abrir o arquivo index.php que se encontra l[a. | |
| 3-Se abrirmos o arquivo C:\Windows\System32\drivers\etc\hosts e escrevermos uma linha 127.0.0.1 test, estamos instruindo o servidor para apontar para a mesma pasta que o localhost. Ent'ao test vai apontar fisicamente para C:\Windows\System32\drivers\etc\hosts. | |
| 4-A prova disso [e se formos na URL e digitarmos test/ vai abrir a mesma p[agina que localhost/. | |
| 5-Temos que editar o arquivo C:/xampp/apache/conf/extra/httpd-vhosts.conf. Diferentes versoes do apache, dependendo do sistema operacional e a empresa que instalou o programa (xampp no caso) pode escolher um arquivo diferente para guaradar informacoes do virtu |
| //Temos o seguinte código HTML que gera um objeto de upload. | |
| <form action="upload.php" method="post" enctype="multipart/form-data"> | |
| Select image to upload: | |
| <input type="file" name="fileToUpload" id="fileToUpload"> | |
| <input type="submit" value="Upload Image" name="submit"> | |
| </form> | |
| Note o "id" do elemento input type "file". | |
| De maneira estática o id seria: id="fileToUpload". | |
| De maneira dinâmica podemos adicionar uma primary key ou identificador de uma database. Entáo ficaria assim: |
| http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html#toc3 | |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| <img class="bg" src="assets/img/HomePage_Photo.jpg" alt="" style="width: 100%; height: auto; position: fixed;top: 0;left: 0;"><!-- Dislay full image https://css-tricks.com/perfect-full-page-background-image/--> |
| Route::get('/', array('as'=>'URL',function () { | |
| $Env = substr(URL::route('URL'), 7, 2); | |
| $str ="ENV is $Env" ; | |
| return $str; | |
| })); |
| //Html code | |
| <form method="post" action="#"> .... //Set action to action="#" | |
| //Submit form using JS --------------------------------------------------------------------------------------------------------------- | |
| $('.btn_submit').on( 'click', function() { | |
| //alert("myTest"); | |
| //return false; // That will stop the flow to the next lines. | |
| var objectEvent=$(this); |
| *********************************************************************************************** | |
| {Linux + NginX + MariaDb + PHP7} | |
| *********************************************************************************************** | |
| ************************ # ####### ## ## ####### ************************ | |
| ************************ # # # # # # # # ************************ | |
| ************************ # ####### # # # # ####### ************************ | |
| ************************ # # # # # # # ************************ | |
| ************************ ####### ####### # # # # ************************ | |
| *********************************************************************************************** | |
| by igoralves1 |