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
| /** | |
| * Shuffles array in place. | |
| * | |
| * @param {Array} a items The array containing the items. | |
| */ | |
| function shuffle(a) { | |
| var j, x, i; | |
| for (i = a.length; i; i--) { | |
| j = Math.floor(Math.random() * i); |
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
| function gri(min, max) { | |
| return Math.floor(Math.random() * (max - min + 1)) + min; | |
| } |
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
| function PasswordsVisible(listener, fields) { | |
| this.obscure = true; | |
| this.fields = fields; | |
| this.listener = $('#' + listener); | |
| this.length = 0; | |
| this.init(); | |
| } | |
| PasswordsVisible.prototype = { | |
| init : function() { |
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 | |
| clear | |
| # Install and update/upgrade dependencies | |
| printf "Updating and installing dependencies...\n" | |
| sudo apt update | |
| sudo apt upgrade -y | |
| sudo apt install -y build-essential curl git vim wget gnupg |
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
| /** | |
| * Fixed aspect containers. | |
| * | |
| * Credit: Nicolas Gallagher and SUIT CSS. | |
| */ | |
| .fixed-aspect { | |
| position: relative; | |
| display: block; | |
| height: 0; |
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
| /^([a-z\u00C0-\u02AB'´`]{1,}\.?\s?)([a-z\u00C0-\u02AB'´`]?\.?\s?)+$/i |
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
| avconv -i $INPUT_FILE -strict experimental -map 0:v -map 0:a -c:a aac -b:a 768k -c:v copy $OUTPUT_FILE |
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
| [Unit] | |
| Description=High-performance, schema-free document-oriented database | |
| After=network.target | |
| Documentation=https://docs.mongodb.org/manual | |
| [Service] | |
| User=mongodb | |
| Group=mongodb | |
| ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf |
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
| /** | |
| * Scores a password's strength. | |
| * | |
| * It scores a password according to several factors like character variation, | |
| * repetition and length. The passwords are scored in a numeric point scale that | |
| * varies from less than 0 to 100 and more. A safe password score should be | |
| * considered as 49 points or more. | |
| * | |
| * @param {String} pwd The password string to score. | |
| * |
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 mixinsDef = /\.([\w-]+)\(([\w-;\$\s]*)\)\s+?{/i; // Replace with: @mixin $1($2) { | |
| var mixinsCall = /\.([\w-]+)\(([\w-;\$\s]*)\);/i; // Replace with: @include $1($2); |
OlderNewer