This file contains hidden or 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 | |
//clearly client_id should = something other than XXXXXXXXXXXXXXXXXXXXXXX | |
$search = 'ecig'; | |
$url = 'https://api.instagram.com/v1/tags/' . $search .'/media/recent?client_id=XXXXXXXXXXXXXXXXXXXXXXX'; | |
$json = file_get_contents($url); | |
$obj = json_decode($json); | |
date_default_timezone_set('EST'); | |
$list = array(); | |
foreach ($obj->data as $media) { |
This file contains hidden or 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
function addTitles() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
// sets up the header row for the sheet | |
sheet.appendRow(['User Name', 'Likes Count', 'Comment Count', 'URL', 'Caption', 'Filter', 'Created Time']); | |
} | |
// attempt to loop to get next_url |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Tools and Tips for 1:1</title> | |
<meta name="generator" content="BBEdit 11.1" /> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script> | |
This file contains hidden or 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 | |
/* | |
Plugin Name: URL counter | |
Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates | |
Description: This describes my plugin in a short sentence | |
Version: 1.5 | |
Author: Tom Woodward | |
Author URI: http://bionicteaching.com | |
License: GPL2 | |
License URI: https://www.gnu.org/licenses/gpl-2.0.html |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Embed All the Things</title> | |
<!-- CSS bar graph from http://geoffgraham.me/css-bar-chart-using-html5-progress/ --> | |
<meta name="generator" content="BBEdit 11.1" /> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script> | |
<script type="text/javascript" src="https://code.angularjs.org/1.2.0-rc.3/angular-sanitize.js"></script> |
This file contains hidden or 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
//adapted from https://www.considerednormal.com/2014/04/adding-a-google-calendar-event-using-google-forms/ | |
//this is the ID of the calendar where you want the event to show up, this is found on the calendar settings page of the calendar in question | |
var calendarId = "YOUR_SECRET_CALENDAR_ID_GOES_HERE"; | |
//below are the column ids that represents the values used in the spreadsheet (these start with 1 rather than 0 like on some things) | |
//start date - make sure you also check the time box in the Google form (that's new- at least to me) | |
var startDtId = 5; | |
//end date - make sure you check the time box in the Google form | |
var endDtId = 7; |
This file contains hidden or 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
javascript: var cur_arr = []; | |
function what_to_click() { | |
if (cur_arr.length) { | |
return cur_arr.pop(); | |
} else { | |
cur_arr = [].slice.call(document.getElementsByClassName("UFIPagerLink")); | |
if (cur_arr.length) { | |
return cur_arr.pop(); | |
} else { |
This file contains hidden or 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
/* modified from @hubgit and http://stackoverflow.com/questions/30328636/google-apps-script-count-files-in-folder | |
for this stackexchange question http://webapps.stackexchange.com/questions/86081/insert-image-from-google-drive-into-google-sheets by @twoodwar | |
*/ | |
function listFilesInFolder(folderName) { | |
//writes the headers for the spreadsheet | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
sheet.appendRow(["Name", "Date", "Size", "URL", "Download", "Description", "Image"]); | |
var folderId = "YOUR_FOLDER_ID_GOES_HERE"; | |
var folder = DriveApp.getFolderById(folderId); |
This file contains hidden or 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
/* | |
Welcome to Custom CSS! | |
To learn how this works, see http://wp.me/PEmnE-Bt | |
*/ | |
.highlight { | |
padding: 2px 4px; | |
font-size: 90%; | |
color: #3a87ad; | |
background-color: #D9EDF7; |