Skip to content

Instantly share code, notes, and snippets.

View mager19's full-sized avatar

Mario Germán Reyes C mager19

View GitHub Profile
@Verkalets
Verkalets / shows.json
Created March 31, 2020 17:39
shows.json
[
{
"show_title": "Stranger Things",
"show_title_url": "https://reelgood.com/show/stranger-things-2016",
"show_maturity_rating": "Rated: 14+ (TV-14)",
"show_genre": "Drama, Fantasy, Horror, Mystery, Science Fiction, Thriller, Action & Adventure",
"show_length": "30m",
"show_year": 2016,
"show_imdb": "8,8",
"show_description": "When a young boy vanishes, a small town uncovers a mystery involving secret experiments, terrifying supernatural forces, and one strange little girl.",
@techslides
techslides / github-gist-api.js
Last active January 1, 2022 23:03
GitHub API to make Gists with Ajax
/*
Assuming jQuery Ajax instead of vanilla XHR
*/
//Get Github Authorization Token with proper scope, print to console
$.ajax({
url: 'https://api.github.com/authorizations',
type: 'POST',
beforeSend: function(xhr) {
xhr.setRequestHeader("Authorization", "Basic " + btoa("USERNAME:PASSWORD"));