RegExp:
^<a [a-z0-9=:/\._"]* href="http://blip.pl/users/([a-z0-9]*)/dashboard" [a-z0-9=:/\._"]*>[a-z0-9]*</a>
Format:
<a href="http://blip.pl/users/$1/dashboard"><img border="0" src="http://blip.pl/users/$1/avatar/femto.jpg" title="$1" />$1</a>
Na wstępie:
node-canvas miażdży gm :)
var cornersY = [779, 2606, 4433], | |
cornerX = 546, | |
size = [2394-546, 2166-779]; //x, y | |
var fs = require('fs'), | |
path = require('path'); | |
Canvas = require('canvas'), | |
Image = Canvas.Image, | |
spawnSync = require('child_process').spawnSync; |
import java.io.Console; | |
public class ConsoleHelper { | |
static Console console = System.console(); | |
public static int askQuestion(String question, String... answers) { | |
System.out.println(question); | |
for (int i = 0; i < answers.length; i++) { | |
System.out.println("\t "+(i+1)+". "+answers[i]); | |
} | |
while(true) { |
# Based on: | |
# https://web.archive.org/web/20200212121848/http://www.zackarychapple.guru/chrome/2016/08/24/chrome-headless.html | |
# https://www.chromium.org/developers/how-tos/get-the-code | |
# https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md | |
apt-get update | |
apt-get install -y curl git htop man unzip vim wget python | |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
export PATH=$PATH:`pwd`/depot_tools | |
mkdir Chromium && cd Chromium |
{ | |
"packages": { | |
"wp-premium/gravityforms": { | |
"dev-master": { | |
"name": "wp-premium/gravityforms", | |
"version": "dev-master", | |
"type": "wordpress-plugin", | |
"source": { | |
"url": "https://github.com/wp-premium/gravityforms.git", | |
"type": "git", |
/** | |
* @fileoverview Runs `prettier` as an ESLint rule. | |
* @author Andres Suarez | |
*/ | |
'use strict'; | |
// ------------------------------------------------------------------------------ | |
// Requirements | |
// ------------------------------------------------------------------------------ |
// | |
// **** Kitchen Sink Tests **** | |
// | |
// This app was developed to demonstrate | |
// how to write tests in Cypress utilizing | |
// all of the available commands | |
// | |
// Feel free to modify this spec in your | |
// own application as a jumping off point |