Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo| /* Created by AlexR1712 */ | |
| function getImg (str) { | |
| var m, | |
| urls = [], | |
| rex = /<img[^>]+src="(http:\/\/[^">]+)"/g; | |
| while ( m = rex.exec( str ) ) { | |
| urls.push( m[1] ); | |
| } | |
| return urls; | |
| } |
| <?php | |
| $loadFile = 'https://c1.staticflickr.com/5/4094/4809804115_40f52c8f25_b.jpg'; | |
| $image = imagecreatefromstring(file_get_contents($loadFile)); | |
| if ($image !== false) { | |
| $face = imagecrop($image, ['x' => 152, 'y' => 568, 'width' => 199, 'height' => 199]); |
| <?php namespace App\Services; | |
| /** | |
| * A PHP version of the Enigma machine. | |
| * Wikipedia: http://en.wikipedia.org/wiki/Enigma_machine | |
| * | |
| * This might not be an accurate representation. I have never seen, nor used an enigma machine. | |
| * This class was created by reading the article at http://enigma.louisedade.co.uk/howitworks.html. | |
| * | |
| * Usage: |
| stages: | |
| - test | |
| - build | |
| - deploy | |
| test: | |
| stage: test | |
| script: echo "Running tests" | |
| build: |
| Banco: | |
| <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> |
| function printMousePos(event) { | |
| document.body.textContent = | |
| "clientX: " + event.clientX + | |
| " - clientY: " + event.clientY; | |
| } | |
| document.addEventListener("click", printMousePos); |
| document.addEventListener('click', function(e) { | |
| e = e || window.event; | |
| var target = e.target || e.srcElement, | |
| text = target.textContent || text.innerText; | |
| }, false); | |
| // Version Two | |
| if (document.addEventListener){ | |
| document.addEventListener("click", function(event){ | |
| var targetElement = event.target || event.srcElement; |
Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo| <?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; | |