ron-swanson-quotes
cat-facts
ron-swanson-quotes | cat-facts | |
---|---|---|
4 | 4 | |
295 | 428 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | 6 months ago | |
TypeScript | JavaScript | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ron-swanson-quotes
-
15 unorthodox APIs to Elevate Your Project 🔥
If you're a fan of the TV show Parks and Recreation, you'll love this API. It provides a collection of quotes from the character Ron Swanson, guaranteed to bring a smile to your face. Ron Swanson Quotes API
- What are some interesting APIs you used while learning?
-
(React)ion news : Easy As Pie
import {useState} from "react"; import './quotes.css'; function Quote() { let [quoteText, setQuote] = useState(""); function getText() {try{ fetch('https://ron-swanson-quotes.herokuapp.com/v2/quotes') .then(response => response.json()) .then((data) => setQuote(data)); } catch(err){ console.log(err); } } return ( Random Swanson Quotes getText(quoteText)}>Sage Wisdom < hr/> {quoteText} );} export default Quote
-
Fun API's For Your Project
Ron Swanson Quotes
cat-facts
-
Intro to REST API with powershell
#Make sure to replace the URL values as it makes sense to match your scenario" $url_base = "https://cat-fact.herokuapp.com" $url_endpoint = "/facts" $url = $url_base + $url_endpoint $response = Invoke-RestMethod -uri $url -Method Get -ContentType "application/json" -headers $header #option 1 for display/utilization foreach($item in $response.all) { $item } #option 2 for display/utilization $response | ConvertTo-Json #-Depth 4
-
How to use PSR HTTP standards to upgrade your code
declare(strict_types=1); namespace Rocksheep\CatFacts; use Exception; use Http\Discovery\Psr17FactoryDiscovery; use Http\Discovery\Psr18ClientDiscovery; use JsonException; use Psr\Http\Client\ClientExceptionInterface; use Psr\Http\Client\ClientInterface; use Psr\Http\Message\RequestFactoryInterface; class HttpClient { private ClientInterface $client; private RequestFactoryInterface $requestFactory; protected string $baseUrl = 'https://cat-fact.herokuapp.com'; public function __construct( ?ClientInterface $client = null, ?RequestFactoryInterface $requestFactory = null ) { $this->client = $client ?: Psr18ClientDiscovery::find(); $this->requestFactory = $requestFactory ?: Psr17FactoryDiscovery::findRequestFactory(); } /** * @throws JsonException * @throws Exception */ public function sendRequest(string $method, string $uri): array { $request = $this->requestFactory->createRequest($method, sprintf('%s/%s', $this->baseUrl, ltrim($uri, '/'))); try { $response = $this->client->sendRequest($request); } catch (ClientExceptionInterface $e) { throw new Exception('Oh well'); } if ($response->getStatusCode() >= 400) { throw new Exception('Too bad'); } $responseBody = (string) $response->getBody(); return json_decode($responseBody, false, 512, JSON_THROW_ON_ERROR); } }
-
15 unorthodox APIs to Elevate Your Project 🔥
Whether you're a cat person or not, everyone can appreciate a daily dose of feline fun. This API sends out a daily cat fact to keep your users purr-fectly entertained. Cat Facts API
-
I got Goated
There is a script that calls some web request with task scheduler if you're into cat facts https://github.com/alexwohlbruck/cat-facts
What are some alternatives?
best-poker-hand - finds the best hand in a selection of five cards from a freshly shuffled deck
rickroll - Rick-Roll your friends right from Windows Powershell with ASCII visuals and audio!
Hacker News API - Documentation and Samples for the Official HN API
Thanos.sh - if you are Thanos(root), this command could delete half your files randomly
OACAPI - Open Astronomy Catalog API
PowerShell-Troll - A PowerShell module that contains different functions that can be used for pranking your fellow co-worker or anyone else for that matter.
tacofancy-api - Making an API for https://github.com/sinker/tacofancy
office-pranks - Compilation of assorted pranks designed for Windows OS. Most require admin privileges only, or access to a users pc while they are away.
Be-Like-Bill - Be Like Bill meme generator and API created with PHP, Using this API you can include customised version of "Be like Bill" meme on your website.
AdminToolbox - Repository for the AdminToolbox PowerShell Modules
Cenafy - A Google Chrome Extension has a 1/100 chance of injecting John Cena on every new page load.
CME-PowerShell-Scripts - A collection of modifed PowerShell Scripts for CrackMapExec (https://github.com/byt3bl33d3r/CrackMapExec)