Skip to content

Instantly share code, notes, and snippets.

@pyfisch
pyfisch / script.py
Created December 1, 2018 16:09
Wikidata FischBot Task 6
import logging
import pywikibot
import csv
site = pywikibot.Site('wikidata', 'wikidata')
def load_data():
with open('data.csv', newline='') as csvfile:
return list(csv.DictReader(csvfile))
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//! Builds display lists from flows and fragments.
//!
//! Other browser engines sometimes call this "painting", but it is more accurately called display
//! list building, as the actual painting does not happen here—only deciding *what* we're going to
//! paint.
{"thread": "MainThread", "level": "DEBUG", "pid": 11830, "component": "vcs", "source": "web-platform-tests", "time": 1537217745292, "action": "log", "message": "git rev-parse --show-toplevel"}
{"thread": "MainThread", "level": "DEBUG", "pid": 11830, "component": "vcs", "source": "web-platform-tests", "time": 1537217745295, "action": "log", "message": "git rev-parse --show-cdup"}
{"thread": "MainThread", "level": "DEBUG", "pid": 11830, "component": "vcs", "source": "web-platform-tests", "time": 1537217745299, "action": "log", "message": "git rev-parse HEAD"}
{"source": "web-platform-tests", "thread": "MainThread", "time": 1537217750089, "action": "log", "message": "Using 4 client processes", "level": "INFO", "pid": 11830}
{"thread": "MainThread", "level": "INFO", "pid": 11852, "source": "web-platform-tests", "time": 1537217750659, "action": "log", "message": "Starting http server on 127.0.0.1:8000"}
{"thread": "MainThread", "level": "INFO", "pid": 11854, "source": "web-platform-tests", "time": 1537217750670, "
@pyfisch
pyfisch / awwy
Created January 25, 2018 23:33
http://www.arewewebyet.org/ display list dump
This file has been truncated, but you can view the full file.
// Display List from Epoch(0)
((0, 1), (1024, 1967.5834), [
(
item: PushStackingContext((
stacking_context: (
scroll_policy: Scrollable,
transform: None,
transform_style: Flat,
perspective: None,
mix_blend_mode: Normal,
@pyfisch
pyfisch / dl.txt
Last active January 21, 2018 15:36
// Display List from Epoch(1)
((0, 1), (600, 400), [
(
item: PushStackingContext((
stacking_context: (
scroll_policy: Scrollable,
transform: None,
transform_style: Flat,
perspective: None,
mix_blend_mode: Normal,
Error running mach:
['clean-cargo-cache']
The error occurred in the implementation of the invoked mach command.
This should never occur and is likely a bug in the implementation of that
command. Consider filing a bug for this issue.
If filing a bug, please include the full output of mach, including this error
for (int i = 0; i < q; i++) {
for (int j = 0; j < q; j++) {
int I = q * coords[0] + i;
int J = q * coords[1] + j;
mat[i * q + j] = I * dim + J;
}
}
<!DOCTYPE html>
<style>
#foo {
width: 200px;
height: 200px;
border: solid;
background: linear-gradient(to bottom right, transparent 50%, #36c 50%);
background-size: 30px 30px;
background-position: 10px 10px;
$ ./mach build --dev -v
cargo build --manifest-path /home/michael/Dokumente/git/servo/ports/servo/Cargo.toml -v
Fresh either v1.1.0
Fresh lazycell v0.4.0
Fresh cfg-if v0.1.2
Fresh same-file v0.1.3
Fresh size_of_test v0.0.1 (file:///home/michael/Dokumente/git/servo/components/size_of_test)
Fresh khronos_api v2.0.0
Fresh rustc-serialize v0.3.24
Fresh half v1.0.0
<!doctype html>
<style>
#button {
background-image: linear-gradient(-180deg, rgb(52, 208, 88) 0%, rgb(40, 167, 69) 90%);
border-color: rgba(27, 31, 35, 0.2);
border-radius: 6px;
border-style: solid;
border-width: 0.633333px;
color: rgb(255, 255, 255);
display: block;