Skip to content

Instantly share code, notes, and snippets.

View stgogm's full-sized avatar
Always at work

Santiago "Momo" Marín stgogm

Always at work
View GitHub Profile
/**
* 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.
*
@stgogm
stgogm / install-dev-stack.sh
Last active April 25, 2020 17:42
Install, update and configure Git, Node.JS, MongoDB, VS Code and Redis Server in Ubuntu
#!/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
@jayj
jayj / flexbox.less
Last active June 23, 2024 01:14
CSS3 Flexbox - LESS Mixins
// --------------------------------------------------
// Flexbox LESS mixins
// The spec: http://www.w3.org/TR/css3-flexbox
// --------------------------------------------------
// Flexbox display
// flex or inline-flex
.flex-display(@display: flex) {
display: ~"-webkit-@{display}";
display: ~"-ms-@{display}box"; // IE10 uses -ms-flexbox
@kmansoft
kmansoft / drawable_convert.py
Created May 22, 2012 21:39
A simple script to create lower-resolution Android drawables from higher-resolution ones.
#!/usr/bin/python
import sys
import argparse
import os
import re
'''
A simple script to create lower-resolution Android drawables from higher-resolution ones.