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; |
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 | |
:::: Commands :::: | |
:: DosKey :: | |
:: Creates a new alias | |
doskey dk=doskey $* | |
:: Lists current aliases | |
doskey dkm=doskey /macros |
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
# Ini files | |
# Replacing a value in a key inside a section sample | |
# | |
# http://stackoverflow.com/questions/29688299/powershell-and-regex-how-to-replace-a-ini-name-value-pair-inside-a-named-sectio/29688435#29688435 | |
# | |
$Path="c:\temp\test.ini" | |
@" | |
# This line have a white line after and before |
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/sh | |
# | |
# An example hook script to prepare the commit log message. | |
# Called by "git commit" with the name of the file that has the | |
# commit message, followed by the description of the commit | |
# message's source. The hook's purpose is to edit the commit | |
# message file. If the hook fails with a non-zero status, | |
# the commit is aborted. | |
# | |
# To enable this hook, rename this file to "prepare-commit-msg". |
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 | |
REM Installs Composer as portable and setup home folder as composer global config folder and local folder as internal cache | |
REM v.2.0 - 01/05/2015 | |
REM jatubio@gmail.com | |
REM Set Home folder as Composer Global Configuration Folder | |
SET COMPOSER_HOME=%~dp0Home | |
if not exist %COMPOSER_HOME% md "%COMPOSER_HOME%" | |
php -r "readfile('https://getcomposer.org/installer');" | php |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.3; | |
//import Open Zepplins ERC-20 contract | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol"; | |
//create a sample token that inherits Open Zepplins ERC-20 contract | |
contract WATER is ERC20 { | |
uint public amountAllowed = 1000000000000000000; |
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
### Tags | |
# Return date of tag. (To use in another alias) | |
tag-date = "!git show $1 | awk '{ if ($1 == \"Date:\") { print substr($0, index($0,$3)) }}' | tail -2 | head -1 #" | |
# Show tag message | |
tag-message = "!git show $1 | awk -v capture=0 '{ if(capture) message=message\"\\n\"$0}; BEGIN {message=\"\"}; { if ($1 == \"Date:\" && length(message)==0 ) {capture=1}; if ($1 == \"commit\" ) {capture=0} }; END { print message }' | sed '$ d' | cat -s #" | |
# Get hash of tag commit | |
tag-commit = "!git show $1 | awk '{ if ($1 == \"commit\") { print $2 }}' #" | |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<!-- Quitar los slash '/' del final de la ruta --> | |
<rule name="RewriteRequestsToPublic"> | |
<match url="^(.*)$" /> | |
<conditions logicalGrouping="MatchAll" trackAllCaptures="false"> | |
</conditions> |
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
javascript:document.body.innerHTML=' | |
<h1>Right-click Link Below To Open In Incognito Window</h1> | |
<img src="https://www.technojudo.com/wp-content/uploads/2019/03/Right-click-For-Incognito.jpg" alt="Right-click Link For Incognito Window"> | |
<br> | |
<p><a href='+location.href+'>'+location.href+'</a></p> | |
<img src="http://technoju.do/3MAhv"> | |
<p style="font-size:11px">© 2019 Paul Luckett, <a href="http://technoju.do/4Nspl">TechnoJudo.com</a></p>'; |
NewerOlder