Skip to content

Instantly share code, notes, and snippets.

View noamr's full-sized avatar

Noam Rosenthal noamr

  • Google
  • United Kingdom
  • 11:22 (UTC +01:00)
  • X @nomsternom
View GitHub Profile
javascript:(function() { var script = document.createElement("SCRIPT"); script.setAttribute('src', 'http://172.31.8.138:8080/target/target-script-min.js'); document.body.appendChild(script); })()
<!DOCTYPE html>
<html>
<body>
<svg style="stroke:black; stroke-width: 4; overflow: visible; height: 32px; width: 32px">
<g style="stroke-linecap: round">
<line x2="100%" />
<line y1="50%" y2="50%" x2="100%" />
<line y1="100%" y2="100%" x2="100%" />
</g>
FROM debian:jessie
RUN apt-get update && apt-get install -y zlib1g libssl1.0.0 libcurl3-gnutls nodejs libstdc++6
COPY ${DEB_FILE} /tmp/vobadk.deb
RUN dpkg -i --force-all /tmp/vobadk.deb; rm -rf /var/lib/apt/lists; rm /tmp/*; apt-get purge; apt-get autoremove -y
FROM ubuntu:14.04
COPY vobadk.deb /tmp/
RUN apt-get update
RUN dpkg -i --force-depends /tmp/vobadk.deb
RUN apt-get -f -y install
ENTRYPOINT /usr/local/vobadk/bin/adk-controller
auto curl = curl_easy_init();
static const char* modes[] = { "collection", "monitoring", "lowPower", "fitness", "calibration"};
auto url = std::string("http://localhost:2700/tools/mode");
LOGE("URL :%s %s", url.c_str(), modes[mode]);
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, modes[mode]);
curl_easy_perform(curl);
curl_easy_cleanup(curl);
auto curl = curl_easy_init();
static const char* modes[] = { "collection", "monitoring", "lowPower", "fitness", "calibration"};
curl_easy_setopt(curl, CURLOPT_URL, (std::string("http://localhost:2700/tools/mode?mode=") + modes[mode]).c_str());
curl_easy_setopt(curl, CURLOPT_POST, 1);
curl_easy_perform(curl);
curl_easy_cleanup(curl);
<html>
<head>
<title>https://www.facebook.com</title>
<meta name="viewport" content="ya-title=#3b5998,ya-dock=#000000" />
<style>
* {
font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif;
font-weight: bold;
}
input {
diff --git a/Source/WebCore/platform/network/soup/ClientCertificateManager.cpp b/Source/WebCore/platform/network/soup/ClientCertificateManager.cpp
new file mode 100644
index 0000000..23d9e50
--- /dev/null
+++ b/Source/WebCore/platform/network/soup/ClientCertificateManager.cpp
@@ -0,0 +1,54 @@
+#include "config.h"
+#include "ClientCertificateManager.h"
+
+#include <wtf/text/CString.h>
diff --git a/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp b/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
index a0e916f..f173da7 100644
--- a/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
+++ b/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
@@ -954,11 +954,11 @@ Color CoordinatedGraphicsLayer::tiledBackingStoreBackgroundColor() const
return contentsOpaque() ? Color::white : Color::transparent;
}
-PassOwnPtr<GraphicsContext> CoordinatedGraphicsLayer::beginContentUpdate(const IntSize& size, uint32_t& atlas, IntPoint& offset)
+bool CoordinatedGraphicsLayer::paintToSurface(const IntSize& size, uint32_t& atlas, IntPoint& offset, CoordinatedSurface::Client* client)