Generated from CodeTour
This file has been truncated, but you can view the full file.
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> | |
<!-- saved from url=(0052)https://www.espn.com/nba/boxscore/_/gameId/401585418 --> | |
<html lang="en" data-react-helmet="lang"> | |
<head class="at-element-marker"> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<script | |
async="" | |
src="./Grizzlies 113-110 Bucks (Feb 15, 2024) Box Score - ESPN_files/P31187EE2-AC6E-46CB-BB54-D07591BED067.js" | |
></script> | |
<style type="text/css" class="bc-style-j8Fbje7Qq-default"> |
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
from textual.app import App | |
from textual.reactive import reactive | |
from textual.widget import Widget | |
from textual.widgets import Footer, Header, Input, Label, ListItem, ListView, Static | |
""" | |
My naive expectation was that, when I update Numbers#term, the ListView would | |
re-render. But it doesn't. | |
I am almost positive I understand why. If term was used in a render method, it would smart refresh. |
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
{ | |
"components": { | |
"parameters": { | |
"owner": { | |
"name": "owner", | |
"description": "The account owner of the repository. The name is not case sensitive.", | |
"in": "path", | |
"required": true, | |
"schema": { | |
"type": "string" |
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
export const NUM_BOARDS = 16; | |
export const NUM_GUESSES = 21; | |
export const START_DATE = (() => { | |
// Use this method so that the start date is offset by current timezone offset | |
// Old method had problems with the start date being before DST | |
const utcDate = new Date("2022-02-14T00:00:00Z").getTime(); | |
const offset = new Date().getTimezoneOffset(); | |
return new Date(utcDate + offset * 60 * 1000); |
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
{ | |
"openapi": "3.0.1", | |
"info": { | |
"title": "API for modeling Orgs, Projects, and Users", | |
"description": "", | |
"version": "0.0.1" | |
}, | |
"servers": [ | |
{ | |
"url": "https://api.liveramp.com/orgs" |
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
/* global describe, it, beforeEach */ | |
import expect from "expect"; | |
import { create } from "../src/microstates"; | |
function isStateType(obj, T) { | |
return obj.constructor.name === `Microstate<${T}>`; | |
} | |
function withInitBehavior(T, f) { |
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
/* global describe, it, beforeEach */ | |
import expect from "expect"; | |
import Identity from "../src/identity"; | |
import { create } from "../src/microstates"; | |
import { TodoMVC } from "./todomvc"; | |
import Promise from "bluebird"; | |
export default class FetchAttr { |
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
1 Caligo Skin-Witch | |
1 Knight of Malice | |
1 Sporecrown Thallid | |
1 Yavimaya Sapherd | |
1 Baloth Gorger | |
1 Kwende, Pride of Femeref | |
2 Academy Journeymage | |
1 Cloudreader Sphinx | |
1 Muldrotha, the Gravetide | |
1 Fungal Infection |
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
import React from "react"; | |
import { Consumer } from "@microstates/react"; | |
import { map } from "microstates"; | |
export default class Blog extends React.Component { | |
render() { | |
return ( | |
<Consumer> | |
{blog => { | |
return ( |
NewerOlder