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
import Foundation | |
import SwiftUI | |
for _ in 1...100 { | |
let color = Color( | |
red: .random(in: 0...1), | |
green: .random(in: 0...1), | |
blue: .random(in: 0...1) | |
) |
// | |
// RoundedPolygon.swift | |
// | |
// Created by Nate on 2022-10-17. | |
// | |
import SwiftUI | |
struct RoundedPolygon: Shape { | |
lane :connect_feedback do | |
fastlane_require 'spaceship' | |
Spaceship::Tunes.login | |
Spaceship::Tunes.select_team | |
# Gets app | |
app = Spaceship::ConnectAPI::App.find(ENV["TEST_APP_BUNDLE"]) | |
# Gets feedback for an app (default includes screenshots and tester info) |
<?php | |
function base64url_encode($binary_data) { return strtr(rtrim(base64_encode($binary_data), '='), '+/', '-_'); } | |
function apns_jwt_token($team_id, $key_id, $private_key_pem_str) | |
{ | |
if (! function_exists('openssl_get_md_methods') || ! in_array('sha256', openssl_get_md_methods())) throw new Exception('Requires openssl with sha256 support'); | |
$private_key = openssl_pkey_get_private($private_key_pem_str); | |
if (! $private_key) throw new Exception('Cannot decode private key'); |
import Foundation | |
extension Locale { | |
func localizedCurrencySymbol(forCurrencyCode currencyCode: String) -> String? { | |
guard let languageCode = languageCode, let regionCode = regionCode else { return nil } | |
/* | |
Each currency can have a symbol ($, £, ¥), | |
but those symbols may be shared with other currencies. | |
For example, in Canadian and American locales, |
import Combine | |
final class Keyboard: ObservableObject { | |
// MARK: - Published Properties | |
@Published var state: Keyboard.State = .default | |
// MARK: - Private Properties | |
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