July 29, 2015
Find this document here:
July 29, 2015
Find this document here:
function pullJSON() { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheets = ss.getSheets(); | |
var sheet = ss.getActiveSheet(); | |
var url="http://example.com/feeds?type=json"; // Paste your JSON URL here | |
var response = UrlFetchApp.fetch(url); // get feed | |
var dataAll = JSON.parse(response.getContentText()); // |
body, td, div, span, p { | |
font: 12px Monaco, "Courier New", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace !important; | |
} | |
.gist-highlight { | |
padding: 1em 0 !important; | |
} | |
.gist-syntax { background: #ffffff; !important } |
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){ |
Ning inurl:profiles/blog/list -inurl:ning.com |
$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( |
## 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` |
/* | |
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 |
<?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" |