This file contains 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
@echo off | |
setlocal enabledelayedexpansion | |
SET DestinationDrive=Z | |
SET TotalDuplicated=0 | |
call :source "%~1" | |
rem echo source set to %source% from %~1 | |
call :destination "%~2" %source% | |
rem echo destination set to %destination% from %~2 and %source% |
This file contains 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
@echo off | |
setlocal enabledelayedexpansion | |
SET DestinationDrive=Z | |
call :source "%~1" | |
rem echo source set to %source% from %~1 | |
call :destination "%~2" %source% | |
rem echo destination set to %destination% from %~2 and %source% |
This file contains 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
# Type(<scope>): <subject> | |
# Type: core, feat, fix, docs, style, refactor, test, chore, git, merge, composer | |
# Git Operations (Prefix with): Cherry-Pick To Develop: <cpd!>, Squash|Fixup|Skip|Split: <squash!|fixup!|skip!|split!>, Temp: <tmp!|temp!> | |
# For Cherry-Pick (Prefix with): cpick(<branch>) | |
# Scope: controllers, models, repositories | |
# Subject: (This commit) <verb: 'add, fix, delete, modify'> subject | |
# <body> |
This file contains 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
@echo off | |
setlocal enabledelayedexpansion | |
setlocal | |
set DestinationDrive=Z | |
set includeDir= | |
goto :include | |
:main |
This file contains 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 | |
# Author: Juan Antonio Tubio <[email protected]> | |
# GitHub: https://github.com/jatubio | |
# Twitter: @jatubio | |
# | |
# | |
# Special git cherry-pick with a git rebase interactive | |
# To use on branch with the last-commit | |
# |
This file contains 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 | |
/** | |
* Generates human-readable string. | |
* | |
* @param string $length Desired length of random string. | |
* | |
* retuen string Random string. | |
*/ | |
function readable_random_string($length = 6) |
This file contains 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 | |
function sumMins($ihour, $imin, $iminutes) | |
{ | |
$hours=floor($iminutes/60); | |
$mins=$iminutes%60; | |
echo("Se suman $hours h + $mins m\n"); | |
$rhours=$ihour+$hours; |
This file contains 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 | |
function subMins($ihour, $imin, $iminutes) | |
{ | |
$hours=floor($iminutes/60); | |
$mins=$iminutes%60; | |
echo("Se restan $hours h + $mins m\n"); | |
$rhours=$ihour-$hours; |
This file contains 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 | |
function diffMins($ihour, $imin, $ehour, $emin) | |
{ | |
if($ehour>=$ihour) | |
{ | |
$hours=$ehour-$ihour; | |
} | |
else | |
{ |
This file contains 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
let jspdf = document.createElement("script"); | |
jspdf.onload = function () { | |
let pdf = new jsPDF(); | |
let elements = document.getElementsByTagName("img"); | |
for (let i in elements) { | |
let img = elements[i]; | |
console.log("add img ", img); | |
if (!/^blob:/.test(img.src)) { | |
console.log("invalid src"); | |
continue; |