Skip to content

Instantly share code, notes, and snippets.

View TS000's full-sized avatar

TylerS TS000

View GitHub Profile
@TS000
TS000 / discogs-oauth.php
Created December 10, 2016 17:15 — forked from morecchia/discogs-oauth.php
Example OAuth access to the Discogs API
<?php
// This example uses a fork of the OAuthSimple library for PHP
// found here: https://github.com/tonefolder/oauthsimple/tree/master/php
//
// For more information about the OAuth process for applications
// accessing Discogs API, read:
// http://www.discogs.com/developers
require 'oauth.php';
$oauthObject = new OAuthSimple();
$scope = 'http://api.discogs.com';
@TS000
TS000 / title_changing_stuff.js
Created February 28, 2016 08:52 — forked from molovo/title_changing_stuff.js
Quick bit of JS to change page title when the user navigates away from the tab
( function () {
// This function does the dirty work of finding the event type and setting the appropriate title
var updatePageTitle = function ( evt ) {
var v = "This text should match your <title> element", // The title when tab is visible
h = "I Miss You! ❤", // The title when tab is hidden
evtMap = {
focus: v,
focusin: v,
pageshow: v,