Skip to content

Instantly share code, notes, and snippets.

Working from home

Alexander J. Rodriguez D. AlexR1712

Working from home
Block or report user

Report or block AlexR1712

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
AlexR1712 /
Last active Aug 28, 2019
Rename files based on the modified date, add incremental number to the begining of the filename.
ls -1rt | cat -n | while read n f; do mv -n "$f" "$n""_""$f"; done
AlexR1712 / checkSession.php
Last active May 28, 2019 — forked from lukas-buergi/checkSession.php
Check whether sessions work in php
View checkSession.php
error_reporting( E_ALL );
ini_set( 'display_errors', 1);
die('Param is missing. Look at the <a href="">source</a>.');
switch($_GET['action']) {
AlexR1712 / !WhatsApp On Web
Last active Dec 13, 2018 — forked from parthpower/!WhatsApp On Web
Simple JS to monitor offline and online time of a contact.
View !WhatsApp On Web

WhatsApp On Web Monitor

What It does

It gives notifications when someone goes online or offline or typing. Open chat of the contact you want to monitor and start script.

Simple Way

AlexR1712 / activity.js
Last active Jun 2, 2018
Time Activity
View activity.js
// Script for track user activity in page and out the page
var timeActiveOnSite = 0; // seconds
var timeInactive = 0; // seconds
var lastActivityDatetime;
if(document['visibilityState'] === 'visible'){
lastActivityDatetime =;
} else {
AlexR1712 / levenshtein.php
Created Mar 19, 2018
levenshtein. without native function
View levenshtein.php
// Distancia Levenshtein en PHP (Sin usar la funciona nativa)
function lev($s,$t) {
$m = strlen($s);
$n = strlen($t);
for($i=0;$i<=$m;$i++) $d[$i][0] = $i;
for($j=0;$j<=$n;$j++) $d[0][$j] = $j;
AlexR1712 /
Created Feb 12, 2018
Sequelize + Express + Migrations + Seed Starter
AlexR1712 / getElemClicked.js
Last active Jan 18, 2018
Get element clicked
View getElemClicked.js
document.addEventListener('click', function(e) {
e = e || window.event;
var target = || e.srcElement,
text = target.textContent || text.innerText;
}, false);
// Version Two
if (document.addEventListener){
document.addEventListener("click", function(event){
var targetElement = || event.srcElement;
AlexR1712 / printMousePos.js
Created Jan 18, 2018
print Mouse Position
View printMousePos.js
function printMousePos(event) {
document.body.textContent =
"clientX: " + event.clientX +
" - clientY: " + event.clientY;
document.addEventListener("click", printMousePos);
AlexR1712 / bancos
Created Dec 27, 2017 — forked from xombra/bancos
Codigo y Bancos correspondientes de Venezuela
View bancos
<select name="banco">
<option value=""></option>
<option value="0156">100%BANCO</option>
<option value="0196">ABN AMRO BANK</option>
<option value="0172">BANCAMIGA BANCO MICROFINANCIERO, C.A.</option>
<option value="0171">BANCO ACTIVO BANCO COMERCIAL, C.A.</option>
<option value="0166">BANCO AGRICOLA</option>
<option value="0175">BANCO BICENTENARIO</option>
<option value="0128">BANCO CARONI, C.A. BANCO UNIVERSAL</option>
View .gitlab-ci.yml
- test
- build
- deploy
stage: test
script: echo "Running tests"
You can’t perform that action at this time.