Skip to content

Instantly share code, notes, and snippets.

@airtonGit
airtonGit / arraySortBigToLowe.js
Created May 15, 2019 13:27
Javascript Sort Descrescente
//Array de exemplo desordenado
let listValuesArray = [2010,2009,2015,2011,2019]
//Array chama metodo sort com função para ordenar
listValuesArray.sort( (a, b) => {
if (a > b){
return -1
}else if(a < b){
return 1
}else{
return 0
@airtonGit
airtonGit / README.md
Created July 17, 2016 15:44 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.container{
position: absolute;
display: inline-block;
background-color: green;