This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function is_valid_mf2_json($input) { | |
// Input to this function must be an array | |
if(!is_array($input)) | |
return false; | |
// Keys type and properties are required at a minimum and must be arrays | |
if(!isset($input['type']) || !is_array($input['type'])) | |
return false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#========================================================================================== | |
# Original Script from Clemens Lang, neverpanic.de | |
# https://neverpanic.de/blog/2014/03/19/downloading-google-web-fonts-for-local-hosting/ | |
# Modified by Chris Jung, campino2k.de | |
# * Rename Files to be compatible with Windows File System (remove spaces and colon) | |
# * Add "local()" to src like Google does to skip downloading if System has font installed | |
# Modified by Robert | |
# * Fix Mac execution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Google XAuth Demo</title> | |
<script type="text/javascript" src="http://xauth.org/xauth.js"></script> | |
<script type="text/javascript"> | |
function doLogin(doneUrl) { | |
/* Tell XAuth.org that a user has just signed into Google on this browser. */ | |
XAuth.extend({ | |
// Just reveals "someone is logged into Google" but no personally identifiable info. |