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
| <?php | |
| namespace App; | |
| class Composer extends \Illuminate\Support\Composer | |
| { | |
| public function run(array $command) | |
| { |
| <?php | |
| function getFormattedNumber( | |
| $value, | |
| $locale = 'en_US', | |
| $style = NumberFormatter::DECIMAL, | |
| $precision = 2, | |
| $groupingUsed = true, | |
| $currencyCode = 'USD', | |
| ) { |
| <?php | |
| namespace Src\Csv; | |
| use Illuminate\Http\Response; | |
| use Symfony\Component\HttpFoundation\StreamedResponse; | |
| /** | |
| * Class DownloadLargeCsv | |
| * |
| <?php | |
| // This can be found in the Symfony\Component\HttpFoundation\Response class | |
| const HTTP_CONTINUE = 100; | |
| const HTTP_SWITCHING_PROTOCOLS = 101; | |
| const HTTP_PROCESSING = 102; // RFC2518 | |
| const HTTP_OK = 200; | |
| const HTTP_CREATED = 201; | |
| const HTTP_ACCEPTED = 202; |
| /* | |
| Initial concept from: https://seesparkbox.com/foundry/how_to_code_an_SVG_pie_chart | |
| Vue.js component by Darius Babcock | |
| */ | |
| <template> | |
| <div class="pie_chart_svg_container"> | |
| <svg | |
| :height="diameter" | |
| :width="diameter" |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| class GoogleDriveServiceProvider extends ServiceProvider | |
| { | |
| /** | |
| * Bootstrap the application services. |
| <?php | |
| namespace App\Providers; | |
| class FilesystemMockProvider extends ServiceProvider | |
| { | |
| public function boot() | |
| { | |
| if (App::isProduction()) { | |
| return; |
| <?php | |
| if( ! function_exists('pipe')) { | |
| function pipe($payload, $steps = []) | |
| { | |
| return app(\Illuminate\Pipeline\Pipeline::class) | |
| ->send($payload) | |
| ->through($steps) |
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 { ref,watch,shallowRef,unref } from 'vue' | |
| export function useSpeechRecognition({lang,continuous,interimResults}) { | |
| const isListening = ref(false) | |
| const isFinal = ref(false) | |
| const result = ref('') | |
| const error = shallowRef(undefined) | |
| const SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition |