This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%matplotlib inline | |
import matplotlib.pyplot as plt | |
import httplib2 | |
import json | |
import urllib | |
query = [ | |
("source_type", "skp"), | |
("config", "8888"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "Load SkiaPerf Data" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<meta charset="utf-8" /> | |
<script src="templating.js" type="text/javascript" charset="utf-8"></script> | |
</head> | |
<body> | |
<template id=t> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Tracking mouse position on canvas</title> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=egde,chrome=1"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
</head> | |
<body> | |
<canvas id=traces width=500 height=500> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A quick and hacky HTTP server in Julia to execute Julia, which gets around the | |
startup and JIT delays when running Julia scripts from the command line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Since glog emits to stderr you'll need to run this through: | |
# 2>&1 | colorlogs | |
awk ' | |
/^I/ {print "\033[32m" $0 "\033[39m"} | |
/^W/ {print "\033[33m" $0 "\033[39m"} | |
/^E/ {print "\033[31m" $0 "\033[39m"} | |
' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2017 The Chromium Authors. All rights reserved. | |
// | |
// Redistribution and use in source and binary forms, with or without | |
// modification, are permitted provided that the following conditions are | |
// met: | |
// | |
// * Redistributions of source code must retain the above copyright | |
// notice, this list of conditions and the following disclaimer. | |
// * Redistributions in binary form must reproduce the above | |
// copyright notice, this list of conditions and the following disclaimer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var dup = (o) => JSON.parse(JSON.stringify(o)); | |
var $ = (id) => document.getElementById(id); | |
var canvas = document.querySelector("canvas"), | |
ctx = canvas.getContext("2d"), | |
width = canvas.width, | |
height = canvas.height; | |
var rules = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<label for=length>Length:</label> | |
<input type=range name=length id=length min=1 max=10 /> | |
<span style="padding: 0 10px;" id=lengthDisplay></span> | |
<br> | |
<label for=angle>Angle:</label> | |
<input type=range name=angle id=angle min=0.01 max=1 step=0.01 /> | |
<span style="padding: 0 10px;" id=angleDisplay></span> | |
<br> | |
<canvas width=600 height=600></canvas> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let dup = (o) => JSON.parse(JSON.stringify(o)); | |
let canvas = document.querySelector("canvas"), | |
ctx = canvas.getContext("2d"), | |
width = canvas.width, | |
height = canvas.height; | |
let rules = { | |
"X": "F-[[X]+X]+F[+FX]-X", | |
"F": "FF", |
OlderNewer