###1. Put this web.config in laravel root diretory
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
QObject::connect(ui->webView, SIGNAL(loadFinished(bool)), this, SLOT(loadedWebView(bool))); | |
... | |
void Form::loadedWebView(const bool a) { | |
Q_UNUSED(a); | |
QString scriptContent = "function TEST() { alert(1); }"; | |
QString injectionJS = "(function() { var newdom = document.createElement('script');"; |
<!doctype html> | |
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
<html> | |
<head> | |
<title>iOS 8 web app</title> | |
<!-- CONFIGURATION --> |
Install Whoops (prefer version 2)
cd projectfolder
composer require filp/whoops
Or edite composer.json and set require values, like this:
#!/usr/bin/env bash | |
SCRIPT_PATH=$(realpath "$0") | |
CALLING_FROM=$(pwd) | |
if [ -d "$CALLING_FROM" ]; then | |
CALLING_DIR=$CALLING_FROM | |
else | |
CALLING_DIR=$(dirname "$CALLING_FROM") | |
fi |
#include "wallacewindow.h" | |
#include <QApplication> | |
int main(int argc, char *argv[]) | |
{ | |
QApplication a(argc, argv); | |
WallaceWindow w; | |
w.show(); | |
return a.exec(); |
// ==UserScript== | |
// @name UxHomologation | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Ajuda a detectar se esta em que ambiente baseado no domínio | |
// @author Guilherme Nascimento | |
// @match *://dominio-do-ambiente-de-homologação.com.br/* | |
// @grant none | |
// ==/UserScript== |
<?php | |
/* | |
* http://pt.stackoverflow.com/a/197684/3635 | |
*/ | |
$imagem = array(); | |
$items = simplexml_load_file("http://cidades.gov.br/ultimas-noticias?format=feed&type=rss")->channel->item; | |
$doc = new DOMDocument; |
1. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam nunc mi, euismod id dapibus sed, sodales id mi. | |
<!-- begin snippet: js hide: false console: true babel: false --> | |
<!-- language: lang-html --> | |
teste 1 | |
<!-- end snippet --> |