This file contains hidden or 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
| var gulp = require("gulp"), | |
| sass = require("gulp-sass"), | |
| uglify = require("gulp-uglify"), | |
| rename = require("gulp-rename"), | |
| ignore = require("gulp-ignore"); | |
| var sassInput = "sources/stylesheets/**/*.scss"; | |
| var sassOutput = "public/stylesheets"; | |
| var jsInput = "sources/javascripts/*.js"; | |
| var jsOutput = "public/javascripts"; |
This file contains hidden or 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
| // By CSS-Tricks (SASS-ed by me) | |
| $bgImage: "path/to/image.jpg"; | |
| html { | |
| background: url($bgImage) no-repeat center center fixed; | |
| -webkit-background-size: cover; | |
| -moz-background-size: cover; | |
| -o-background-size: cover; | |
| background-size: cover; | |
| } |
This file contains hidden or 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 | |
| // Setting up the timezone | |
| date_default_timezone_set("America/Sao_Paulo"); | |
| // Grabbing the date and time | |
| $now = date("YmdHis"); | |
| // Converting the date into a MD5 hash, reducing it to 8 characters, "shuffling" it and type-casting as string (why not?!) | |
| $password = (string) str_shuffle(substr(md5($now), 0, 8)); |
This file contains hidden or 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
| // Conexoes | |
| #define TRIGGER_PIN 12 | |
| #define ECHO_PIN 13 | |
| #define IN1 4 | |
| #define IN2 5 | |
| #define IN3 6 | |
| #define IN4 7 | |
| // Configs | |
| int distanciaMaxima = 15; |
This file contains hidden or 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 | |
| $name = filter_var($_POST["name"], FILTER_SANITIZE_STRING); | |
| $email = filter_var($_POST["email"], FILTER_SANITIZE_EMAIL); | |
| $message = filter_var($_POST["message"], FILTER_SANITIZE_STRING); | |
| $to = "contact@yourcompany.com"; | |
| $subject = "YourCompany - Contact Message"; | |
| $msg = '<h3 style="font-family: sans-serif">Sender\'s info:</h3> |
This file contains hidden or 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
| <select id="uf" name="uf"> | |
| <option value="AC">Acre</option> | |
| <option value="AL">Alagoas</option> | |
| <option value="AP">Amapá</option> | |
| <option value="AM">Amazonas</option> | |
| <option value="BA">Bahia</option> | |
| <option value="CE">Ceará</option> | |
| <option value="DF">Distrito Federal</option> | |
| <option value="ES">Espirito Santo</option> | |
| <option value="GO">Goiás</option> |
This file contains hidden or 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
| #!/bin/bash | |
| function die { | |
| declare MSG="$@" | |
| echo "$0: Error: $MSG">&2 | |
| exit 1 | |
| } |
This file contains hidden or 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
| # Change $PORT with the port you want to scan | |
| sudo lsof -i -P | grep LISTEN | grep :$PORT |
OlderNewer