Skip to content

Instantly share code, notes, and snippets.

@trentwiles
Created July 23, 2020 19:20
Show Gist options
  • Save trentwiles/7e75bb6a3a6535f4998131851ddd5413 to your computer and use it in GitHub Desktop.
Save trentwiles/7e75bb6a3a6535f4998131851ddd5413 to your computer and use it in GitHub Desktop.
echo "<br><h2>Glitch Support Forum</h2>";
$supp = file_get_contents("https://support.glitch.com/u/RiversideRocks.json");
$supp_dec = json_decode($supp, true);
echo "<h4>Read " . round($supp_dec['user']['time_read']/86400) . " days. <i>(" . round($supp_dec['user']['time_read']/3600) . " hours)</h4></i>";
$likes = file_get_contents("https://support.glitch.com/u/riversiderocks/summary.json");
$likes_dec = json_decode($likes, true);
echo "<h4>Given " . $likes_dec['user_summary']['likes_received'] . " <i class='fas fa-heart'></i>'s</h4>";
echo "<h4>Gave " . $likes_dec['user_summary']['likes_given'] . " <i class='fas fa-heart'></i>'s</h4>";
echo "<h4>Solved " . $likes_dec['user_summary']['solved_count'] . " problems. <i class='far fa-check-square'></i></h4>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment