-
Certain pages will stop loading at a certain point and sit idle for anywhere from 3s to a full minute. The time is often suspiciously close to a multiple of 10s.
-
This is largely a problem because a bunch of JS that actually makes the damn page work doesn't fire until after the delay.
-
While idle, Firefox is responsive, but the throbber (swirly loading animation on the tab) is active, and the "status bar" says "Waiting for" the name of some CDN. Sometimes it says "Read" or "Reading data from". I suspect this might be a red herring, and Firefox is just showing the last relevant network message for some reason.
-
It looks like something is delaying script execution, which delays
DOMContentLoaded
, which delays a bunch of stuff from running. In the case of GitHub, some profiling revealed that the only script on the page doesn't actually run (sometimes!) until 20 seconds have passed. The script downloads almost instantly, but it doesn't actually execute.
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
%TAG !dex! tag:veekun.com,2005:pokedex/ | |
--- !!omap | |
- bulbasaur: !dex!pokemon | |
name: BULBASAUR | |
types: | |
- grass | |
- poison | |
base-stats: | |
attack: 49 | |
defense: 49 |
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
%TAG !dex! tag:veekun.com,2005:pokedex/ | |
--- !!omap | |
- bulbasaur: !dex!pokemon | |
name: BULBIZARRE | |
types: | |
- grass | |
- poison | |
base-stats: | |
attack: 49 | |
defense: 49 |
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
%TAG !dex! tag:veekun.com,2005:pokedex/ | |
--- !!omap | |
- bulbasaur: !dex!pokemon | |
name: BULBASAUR | |
types: | |
- grass | |
- poison | |
base-stats: | |
attack: 49 | |
defense: 49 |
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
// Hex! | |
// By Eevee | |
// Started Feb 10, 2003 | |
/* THINGS TO DO: | |
* - make it check for a win DONE! | |
* - add an option for changing board size NO | |
* - player stats/color DONE! | |
* - make menu less crappy DONE! | |
* - save options somewhere NO |
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
DECLARE SUB Change (C AS INTEGER, D AS INTEGER, R AS INTEGER) | |
DECLARE FUNCTION Round$ (N!, D AS INTEGER) | |
DIM SHARED A AS SINGLE, A2 AS INTEGER | |
SCREEN 12 | |
DO | |
CLS | |
COLOR 15 | |
PRINT "How much did you spend ($0 - 100)? "; | |
COLOR 14: INPUT "", A | |
DO WHILE A < 0 OR A > 100 |
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
10 B$="PRE-COMPUTER" | |
20 PRINT "I AM "; B$ | |
30 INPUT "WHAT IS YOUR NAME"; N$ | |
40 PRINT "HELLO "; N$ | |
50 INPUT "HOW OLD ARE YOU"; A | |
60 PRINT "SO "; N$; " YOU ARE" | |
70 PRINTA; "YEARS OLD" | |
80 PRINT "I HOPE" : PRINT "WE HAVE FUN!!" | |
90 END |
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
Lua 5.3.2 Copyright (C) 1994-2015 Lua.org, PUC-Rio | |
> mt = {__index = function(t, k) print("[" .. k .. "]") end} | |
> x = 3 | |
> debug.setmetatable(x, mt) | |
3 | |
> x.hello | |
[hello] | |
nil |
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
"""Perlin noise implementation.""" | |
# Licensed under ISC | |
from itertools import product | |
import math | |
import random | |
def smoothstep(t): | |
"""Smooth curve with a zero derivative at 0 and 1, making it useful for | |
interpolating. |
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
# script to extract music from a pico-8 | |
# requires exporting sounds from the pico-8 first! | |
# run as: python extract-music.py mygame.p8 sound%d.wav music%d.wav | |
# by eevee, do what you like with this code | |
from __future__ import print_function | |
import argparse | |
import struct | |
import wave | |