Build the docker image and start the container.
Start Xvfb
in the container via
$ /etc/init.d/xvfb start
Run Chrome with working WebGL in kiosk mode
Build the docker image and start the container.
Start Xvfb
in the container via
$ /etc/init.d/xvfb start
Run Chrome with working WebGL in kiosk mode
<html> | |
<head> | |
<style> | |
body { | |
counter-reset: n; | |
} | |
div:before { | |
counter-increment: n; | |
content: counter(n); | |
} |
This gist is deprecated in favor of https://github.com/ninenines/cowboy/blob/master/doc/src/guide/specs.asciidoc which has a formatted version at https://ninenines.eu/docs/en/cowboy/2.0/guide/specs/
Navigation and Resource Timing provides timing data for the fetch, but currently there is no interoperable way for the server to communicate own timing information to the client. For example:
<!--Page generated in X.X seconds.-->
, and many sites provide more detailed stats (cache, db, generation) to enable performance debugging.Instead of relying on arbitrary HTML comments, we can define an HTTP header that can be used to send key-value pairs in a well defined format. Making this data available via a well defined interface would...
Fiction
More Technical
#!/usr/bin/env bash | |
if [ $# -ne 2 ] | |
then | |
echo "Usage: erl_new <type> <project_name>" | |
exit 1 | |
fi | |
TYPE=$1 | |
PROJECT_NAME=$2 |
%%% Prime number sieve code with lazy evaluation by Joe Armstrong | |
%%% (very slightly modified for syntax check) | |
%%% http://erlang.org/pipermail/erlang-questions/1999-March/000176.html | |
-module(p3). | |
-export([from/1,filter/2,sift/2,sieve/1,primes/0, first/1]). | |
%% This generates a lazy sequence starting from K. | |
%% from(K) -> |
# You will need to make this file executable (chmod u+x) and run it with sudo | |
apt-get update | |
apt-get --fix-missing -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc default-jdk | |
mkdir -p /src/erlang | |
cd /src/erlang | |
wget http://www.erlang.org/download/otp_src_R15B01.tar.gz | |
tar -xvzf otp_src_R15B01.tar.gz | |
chmod -R 777 otp_src_R15B01 | |
cd otp_src_R15B01 | |
./configure |
##How Homakov hacked GitHub and the line of code that could have prevented it
Please note: THIS ARTICLE IS NOT WRITTEN BY THE GITHUB TEAM or in any way associated with them. It's simply hosted as a Gist because the markdown formatting is excellent and far clearer than anything I could manage on my personal Tumblr at peternixey.com.
If you'd like to follow me on twitter my handle is @peternixey
%% @doc Uses SAX to convert an XML document into a simple nested-tuple | |
%% structure. Ignores namespaces. | |
-module(xmlsimple). | |
-export([file/1, | |
string/1, | |
emit/1, | |
emit_file/2]). | |
-include_lib("xmerl/include/xmerl.hrl"). |