- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
#!/bin/bash | |
# find the file prettier is trying to prettify | |
file=${BASH_ARGV[0]:="."} | |
# optionally set where the real prettier command can be found | |
prettier=`which prettier` | |
# try to see if there is a project-specific `prettier` to use | |
node_modules=`npm root` |
diff --git a/Source/cmake/WebKitMacros.cmake b/Source/cmake/WebKitMacros.cmake | |
index 4c54c1c5de1..858e2e47d8d 100644 | |
--- a/Source/cmake/WebKitMacros.cmake | |
+++ b/Source/cmake/WebKitMacros.cmake | |
@@ -265,6 +265,8 @@ macro(WEBKIT_FRAMEWORK _target) | |
${${_target}_HEADERS} | |
${${_target}_SOURCES} | |
${${_target}_DERIVED_SOURCES} | |
+ ${${_target}_PRIVATE_HEADERS} | |
+ ${${_target}_PUBLIC_HEADERS} |
diff --git a/Source/WebKit/PlatformQt.cmake b/Source/WebKit/PlatformQt.cmake | |
index 909efc00dba..59f8f7eab45 100644 | |
--- a/Source/WebKit/PlatformQt.cmake | |
+++ b/Source/WebKit/PlatformQt.cmake | |
@@ -410,11 +410,19 @@ generate_header("${FORWARDING_HEADERS_DIR}/QtWebKit/QtWebKitDepends" | |
#endif | |
") | |
+if (MACOS_BUILD_FRAMEWORKS) | |
+ set(WebKit_INCLUDE_DESTINATION "${LIB_INSTALL_DIR}/QtWebKit.framework/Versions/5/Headers") |
diff --git a/Source/WebCore/platform/network/qt/ResourceRequestQt.cpp b/Source/WebCore/platform/network/qt/ResourceRequestQt.cpp | |
index b7f9447bc..b14c53e9f 100644 | |
--- a/Source/WebCore/platform/network/qt/ResourceRequestQt.cpp | |
+++ b/Source/WebCore/platform/network/qt/ResourceRequestQt.cpp | |
@@ -37,7 +37,7 @@ namespace WebCore { | |
// and 2 ready to re-fill the pipeline. | |
unsigned initializeMaximumHTTPConnectionCountPerHost() | |
{ | |
- return 6 * (1 + 3 + 2); | |
+ return 5000; |
diff --git a/qtbase/src/network/access/qhttpnetworkconnection.cpp b/qtbase/src/network/access/qhttpnetworkconnection.cpp | |
index e6a15ccfc4..d635930bf7 100644 | |
--- a/qtbase/src/network/access/qhttpnetworkconnection.cpp | |
+++ b/qtbase/src/network/access/qhttpnetworkconnection.cpp | |
@@ -67,10 +67,10 @@ | |
QT_BEGIN_NAMESPACE | |
-const int QHttpNetworkConnectionPrivate::defaultHttpChannelCount = 6; | |
+const int QHttpNetworkConnectionPrivate::defaultHttpChannelCount = 1000; |
diff --git a/qtbase/src/gui/painting/qcoregraphics.mm b/qtbase/src/gui/painting/qcoregraphics.mm | |
index 98fdd7f35e..c4fb8afc64 100644 | |
--- a/qtbase/src/gui/painting/qcoregraphics.mm | |
+++ b/qtbase/src/gui/painting/qcoregraphics.mm | |
@@ -72,17 +72,8 @@ CGImageRef qt_mac_toCGImageMask(const QImage &image) | |
image.bytesPerLine(), dataProvider, NULL, false); | |
} | |
-OSStatus qt_mac_drawCGImage(CGContextRef inContext, const CGRect *inBounds, CGImageRef inImage) | |
+void qt_mac_drawCGImage(CGContextRef inContext, const CGRect *inBounds, CGImageRef inImage) |
// `data` array contains 10 million random values | |
// and we want to a) determine whether or not a value is in the array, | |
// and b) determine the value before and after | |
// tell us how long a function takes to run | |
function profile(name, fn) { | |
console.log(`profiling ${name}`); | |
let start = new Date(); | |
let out = fn(); | |
out && console.log(out); |
Create a game in the style of Space Clicker / Clicking Bad (http://clickingbad.nullism.com/).
You start off, and you have an app running on one server. It's on fire.
You're working for a revenue-generating company (right? right?) so every request you serve makes you money. $10 CPM.
If you maintain good uptime and low response times, traffic will increase. Similar to production and distribution in Clicking Bad, you need both to make maximum revenue.
To bootstrap yourself, you can answer requests by hand by clicking (hence the "clicker" part) to more quickly get money and level up. You'll pretty quickly leave that part behind, though.
#!/usr/bin/env ruby | |
require 'mechanize' | |
require 'yaml' | |
unless ARGV[0] =~ /^http/ && ARGV[1] =~ /(now|[\d\/]+)/ | |
puts "Usage: scraper.rb [streeteasy search URL] [date(s)]" | |
puts " streeteasy search url: just perform a search on streeteasy.com" | |
puts " and grab the URL from the location bar" | |
puts "" |