QbGRoj ('-' * 6)
Forked from Mikael Hallgren's Pen lDKBn.
<div id="jquery_check">Versions of jQuery that are working in Google Sites HTML Box as of </div> | |
<script> | |
var div = document.getElementById('jquery_check'); | |
div.innerHTML = div.innerHTML + new Date; | |
</script> | |
<script src='http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js'></script> | |
<script> | |
var div = document.getElementById('jquery_check'); |
<?php | |
/* | |
GeoRSS formatted output for Google Maps | |
Authors: Alastair Mucklow, Chris Toppon | |
*/ | |
//header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); | |
//$more = 1; | |
echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'" standalone="yes"?'.'>'; ?> |
<?xml version="1.0" encoding="UTF-8"?> | |
<Module> | |
<!-- See http://uservoice.com for Uservoice service description --> | |
<ModulePrefs | |
title="Uservoice for Google Sites" | |
title_url="https://code.google.com/p/google-sites-uservoice/" | |
description="Add support and feedback features provided by Uservoice service to your Google Site" | |
directory_title="Uservoice for Google Sites" | |
thumbnail="https://google-sites-uservoice.googlecode.com/git/gsuv-logo.png" | |
screenshot="https://google-sites-uservoice.googlecode.com/git/screen.png" |
/* | |
Turn any webpage back into a wireframe with "lorem ipsum" text. | |
1. Bookmark this page | |
2. Edit the bookmark, and change the link into | |
javascript:(function(u){ c=document;b=c.body;s=c.createElement('script');s.src=u+'?r='+(new Date()).getTime();b.appendChild(s);})('https://raw.github.com/gist/585708/ac1961130915ed2aef0e67bc97d35ead08513aba/loremipsumizer.js');void(0); | |
3. Visit any webpage | |
4. Click on the bookmark |
## MAC OSX users, please note that following codes won't work with BSD based sed implementation. | |
## You can get GNU Mac- `brew install gnu-sed --default-names` | |
sed -i -e '1s/^.//' ning* | |
sed -i -e '$s/.$//' ning* | |
sed -i -e 's/}{/},{/g' ning* | |
sed -i -e 's/}]{/},{/g' ning* | |
## extra: to verify if files are valid JSON filesmm run jsonlint | |
## To install `npm install jsonlint -g` |
$feeds_importer = new stdClass(); | |
$feeds_importer->disabled = FALSE; /* Edit this to true to make a default feeds_importer disabled initially */ | |
$feeds_importer->api_version = 1; | |
$feeds_importer->id = 'ning_users'; | |
$feeds_importer->config = array( | |
'name' => 'Ning Users', | |
'description' => 'port over ning users', | |
'fetcher' => array( | |
'plugin_key' => 'FeedsFileFetcher', | |
'config' => array( |
Ning inurl:profiles/blog/list -inurl:ning.com |
var DOC_ID = '1K5IJLwK7qBUfLAG-tic9hOK3L8x4qUIQgd3gryHNE6Y'; | |
function doGet() { | |
var doc =SpreadsheetApp.openById(DOC_ID); | |
var auth_user = doc.getViewers(); | |
var auth = auth_user.map(function(user) { | |
return String(user); | |
}); | |
var user = Session.getActiveUser().getEmail(); | |
if (auth.indexOf(user) > -1){ |