ESPN's hidden API endpoints
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
| const interval = (callback, delay) => { | |
| const tick = now => { | |
| if (now - start >= delay) { | |
| start = now; | |
| callback(); | |
| } | |
| requestAnimationFrame(tick); | |
| }; | |
| let start = performance.now(); | |
| requestAnimationFrame(tick); |
| /** | |
| * Rotates coordinate system for velocities | |
| * | |
| * Takes velocities and alters them as if the coordinate system they're on was rotated | |
| * | |
| * @param Object | velocity | The velocity of an individual particle | |
| * @param Float | angle | The angle of collision between two objects in radians | |
| * @return Object | The altered x and y velocities after the coordinate system has been rotated | |
| */ |
| let mix = require("laravel-mix"); | |
| let tailwindcss = require("tailwindcss"); | |
| let glob = require("glob-all"); | |
| let PurgecssPlugin = require("purgecss-webpack-plugin"); | |
| /** | |
| * Custom PurgeCSS Extractor | |
| * https://github.com/FullHuman/purgecss | |
| * https://github.com/FullHuman/purgecss-webpack-plugin | |
| */ |
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
| // https://davidpiesse.github.io/tailwind-md-colours/ | |
| // | |
| //Notes | |
| // | |
| //All colours are generated from Material Design Docs | |
| //Colours have a base, a set of shades (50-900) accent colours | |
| //In addition a companion set of contrast colours are included for colouring text / icons | |
| // Example usage | |
| // class="w-full bg-red-600 text-red-600-constrast" |
| <?php | |
| use PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| 'array_indentation' => true, | |
| 'array_syntax' => ['syntax' => 'short'], | |
| 'binary_operator_spaces' => [ | |
| 'default' => 'single_space', |
| import * as React from "react"; | |
| import { useMousePosition } from "~/hooks/useMousePosition"; | |
| /** Component to cover the area between the mouse cursor and the sub-menu, to allow moving cursor to lower parts of sub-menu without the sub-menu disappearing. */ | |
| export function MouseSafeArea(props: { parentRef: React.RefObject<HTMLDivElement> }) { | |
| const { x = 0, y = 0, height: h = 0, width: w = 0 } = props.parentRef.current?.getBoundingClientRect() || {}; | |
| const [mouseX, mouseY] = useMousePosition(); | |
| const positions = { x, y, h, w, mouseX, mouseY }; | |
| return ( | |
| <div |
| // Expo SDK40 | |
| // expo-blur: ~8.2.2 | |
| // expo-haptics: ~8.4.0 | |
| // react-native-gesture-handler: ~1.8.0 | |
| // react-native-reanimated: ^2.0.0-rc.0 | |
| // react-native-safe-area-context: 3.1.9 | |
| import React, { useState } from 'react'; | |
| import { | |
| Image, |
| #!/bin/sh | |
| # Installs Laravel Sail into an existing project | |
| # The official Laravel Sail docs[1] provide instructions for installing Sail | |
| # into an existing PHP application. But the official method requires invoking | |
| # Composer locally. Part of Sail's appeal is that it removes the need to | |
| # install PHP on your host machine. | |
| # This script is lifted from laravel.build[2], and thus uses the same method |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| const configPlugins = require("@expo/config-plugins"); | |
| const withAppDelegate = (config) => { //refactor this part? | |
| return configPlugins.withAppDelegate(config, async config => { | |
| let res = config.modResults | |
| // ROLLBAR import |