These steps should have been mentioned in the prerequisites of the Laravel Installation Guide, since I'm surely not the only person trying to get Laravel running on macOS.
Install Mcrypt using Homebrew and PECL (comes with PHP)
# PHP 7.3
var HashHack = { | |
PREFIX: '#hhMessage=', | |
aCallbacks: [], | |
sLastHash: '', | |
handleInterval: function() { | |
var sHash = window.location.hash, | |
sDecodedHash, sMessage, i; | |
if (sHash !== HashHack.sLastHash) { |
var HashHack = { | |
PREFIX: '#hhMessage=', | |
postMessage: function(el, sMessage) { | |
if ('string' === typeof el) { | |
el = document.getElementById(el); | |
} | |
var sUrl = el.src.replace(/#.*/, ''); | |
el.src = sUrl + HashHack.PREFIX + encodeURIComponent(sMessage); |
# Feel free to change this path of course (and keys_zone value as well, but also change the usage of it below). | |
proxy_cache_path /var/www/cache/resized levels=1:2 keys_zone=resizedimages:10m max_size=1G; | |
# Gzip was on in another conf file of mine...You may need to uncomment the next line. | |
#gzip on; | |
gzip_disable msie6; | |
gzip_static on; | |
gzip_comp_level 4; | |
gzip_proxied any; | |
# Again, be careful that you aren't overwriting some other setting from another config's http {} section. |
public class HttpRequest { | |
private String requestId; | |
private HttpRequestsCache httpRequestsCache; | |
public HttpRequest(final HttpRequestsCache httpRequestsCache, final String prefix, final WSRequestHolder holder) { | |
this.requestId = prefix.concat(":").concat(UUID.randomUUID().toString()); | |
this.httpRequestsCache = httpRequestsCache.addRequest(requestId, holder); | |
} |
import scala.util._ | |
import java.nio.ByteBuffer | |
import org.apache.commons.codec.binary.{Base64, Hex} | |
import org.jboss.netty.buffer.ChannelBuffers | |
import org.joda.time.format.ISODateTimeFormat | |
import org.joda.time.{ DateTime, DateTimeZone } | |
import reactivemongo.api.collections._ |
These steps should have been mentioned in the prerequisites of the Laravel Installation Guide, since I'm surely not the only person trying to get Laravel running on macOS.
Install Mcrypt using Homebrew and PECL (comes with PHP)
# PHP 7.3
// Gulp 4 | |
var gulp = require('gulp'); | |
var using = require('gulp-using'); | |
var grep = require('gulp-grep'); | |
var changed = require('gulp-changed'); | |
var del = require('del'); | |
var coffee = require('gulp-coffee'); | |
var less = require('gulp-less'); | |
var coffeelint = require('gulp-coffeelint'); | |
var sourcemaps = require('gulp-sourcemaps'); |
<?php | |
// Based on <https://github.com/mecha-cms/x.minify> | |
namespace x\minify\_ { // start namespace | |
$n = __NAMESPACE__; | |
\define($n . "\\token_boolean", '\b(?:true|false)\b'); | |
\define($n . "\\token_number", '-?(?:(?:\d+)?\.)?\d+'); |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
package controllers | |
import play.api.http.{ContentTypes, ContentTypeOf} | |
import upickle.Js | |
import upickle.default._ | |
import play.api.mvc._ | |
import scala.concurrent.Future | |
import scala.concurrent.ExecutionContext.Implicits.global |